public class MetaRelation2Many extends AbstractMetaModel
isColumn(),
isForeignKey(),
MetaColumn,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static org.ujorm.Key<MetaRelation2Many,String> |
ID
The meta-model ID.
|
static org.ujorm.Key<MetaRelation2Many,String> |
NAME
The database column name.
|
static org.ujorm.Key<MetaRelation2Many,MetaTable> |
TABLE
DB table
|
static org.ujorm.Key<MetaRelation2Many,org.ujorm.Key> |
TABLE_KEY
The direct table key
|
| Constructor and Description |
|---|
MetaRelation2Many() |
MetaRelation2Many(MetaTable table,
org.ujorm.Key tableKey,
MetaRelation2Many param)
Meta-model for a relation to many
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object relation)
Two models are the same if its key names are the same for the same domain type.
|
OrmHandler |
getHandler()
OrmHandler
|
String |
getId()
Returns the ID of the column
|
org.ujorm.Key |
getKey()
Returns a column direct key
|
MetaTable |
getTable()
Returns a table model
|
String |
getTableAlias()
Returns an alias of the table model
|
Class<OrmUjo> |
getTableClass()
Returns a class of column table.
|
Object |
getValue(org.ujorm.Ujo ujo)
Get key value
|
int |
hashCode() |
boolean |
isColumn()
It is a DB column (either a value of a foreign key),
not a relation to many.
|
boolean |
isCompositeKey()
Is it newer the composite Key
|
boolean |
isForeignKey()
Is it a Foreign Key ?
|
boolean |
isTypeOf(Class type)
Returns true if the key type is a type or subtype of the parameter class.
|
String |
toString()
Key name
|
clearReadOnly, get, changeDefault, checkReadOnly, lock, readAuthorization, readOnly, setReadOnly, writeValuenewCamelFactory, newFactory, newSnakeCaseFactory, readValueclone, init, init, readKeys, readUjoManager, readValueString, writeValueStringpublic static final org.ujorm.Key<MetaRelation2Many,String> ID
public static final org.ujorm.Key<MetaRelation2Many,String> NAME
public static final org.ujorm.Key<MetaRelation2Many,org.ujorm.Key> TABLE_KEY
public static final org.ujorm.Key<MetaRelation2Many,MetaTable> TABLE
public MetaRelation2Many()
public MetaRelation2Many(MetaTable table, org.ujorm.Key tableKey, MetaRelation2Many param)
table - Related TabletableKey - The direct Keyparam - XML contentpublic boolean isColumn()
public boolean isForeignKey()
public final String getId()
public final org.ujorm.Key getKey()
public final boolean isCompositeKey()
public final boolean isTypeOf(Class type)
public final MetaTable getTable()
public final String getTableAlias()
public final Object getValue(org.ujorm.Ujo ujo)
public OrmHandler getHandler()
public String toString()
toString in class org.ujorm.extensions.SuperAbstractUjopublic boolean equals(Object relation)
equals in class org.ujorm.extensions.SuperAbstractUjoCopyright 2013, Pavel Ponec