public class RecordMeta<T extends PersistentRecord> extends SRecordMeta<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RECORD_NOUN_KEY |
static java.lang.String |
RECORD_NOUN_PLURAL_KEY |
quoteName
Constructor and Description |
---|
RecordMeta(java.lang.Class<T> userClass,
java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
void |
addRecordListener(IRecordListener<T> listener) |
static SFieldMeta |
getNameField(SRecordMeta<?> meta)
Returns the field for the record type that represents the record's name.
|
static java.lang.String |
getRecordDescription(SRecordInstance record)
Attempts to return the "description" of any given record instance, using heuristics to find
the name field (i.e.
|
int |
getRecordListenerCount() |
IRecordListener<T>[] |
getRecordListeners() |
static java.lang.String |
getRecordName(SRecordInstance record)
Attempts to return the "name" of any given record instance, using heuristics to find the name
field (i.e.
|
static java.lang.String |
getRecordNameIfExists(RecordInstanceForeignKey rfk)
Attempts to return the "name" of any given record instance, using heuristics to find the name
field (i.e.
|
static java.lang.String |
getRecordNameIfExists(SRecordInstance record)
Attempts to return the "name" of any given record instance, using heuristics to find the name
field (i.e.
|
java.lang.String |
getRecordTypeName(java.util.Locale locale) |
void |
removeRecordListener(IRecordListener<T> listener) |
RecordMeta<T> |
setNounKey(java.lang.String key) |
RecordMeta<T> |
setNounPluralKey(java.lang.String key) |
fieldsForMode, getAllScalarFields, getDescriptiveScalarFields, getField, getFieldMetas, getFieldNames, getPrimaryKeys, getQueriedScalarFields, getTableName, getUserClass, getUserProperties, getUserProperty, putUserProperty, readResolve, setQuoted, toLongerString, toString
public static final java.lang.String RECORD_NOUN_KEY
public static final java.lang.String RECORD_NOUN_PLURAL_KEY
public RecordMeta(java.lang.Class<T> userClass, java.lang.String tableName)
public void addRecordListener(IRecordListener<T> listener)
public void removeRecordListener(IRecordListener<T> listener)
public IRecordListener<T>[] getRecordListeners()
public int getRecordListenerCount()
public RecordMeta<T> setNounKey(java.lang.String key)
public RecordMeta<T> setNounPluralKey(java.lang.String key)
public static SFieldMeta getNameField(SRecordMeta<?> meta)
public static java.lang.String getRecordName(SRecordInstance record)
public static java.lang.String getRecordNameIfExists(SRecordInstance record)
public static java.lang.String getRecordNameIfExists(RecordInstanceForeignKey rfk)
rfk
- public static java.lang.String getRecordDescription(SRecordInstance record)
public java.lang.String getRecordTypeName(java.util.Locale locale)