|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.extensions.SuperAbstractUjo
org.ujorm.extensions.AbstractUjo
org.ujorm.orm.AbstractMetaModel
org.ujorm.orm.metaModel.MetaPKey
public final class MetaPKey
The table primary key.
| Field Summary | |
|---|---|
static ListKey<MetaPKey,MetaColumn> |
COLUMNS
DB columns |
static Key<MetaPKey,MetaTable> |
TABLE
DB table |
| Constructor Summary | |
|---|---|
MetaPKey(MetaTable table)
|
|
| Method Summary | |
|---|---|
boolean |
assignPrimaryKey(OrmUjo bo,
Session session)
Assign a PK from framework in case the PK generator is type of MEMO_SEQUENCE. |
MetaColumn |
getColumn(int i)
Returns column on the selected position. |
int |
getCount()
Returns a count of the Primary Keys |
MetaColumn |
getFirstColumn()
Returns the first column. |
protected long |
nextValue(Session session)
Generate a next value |
String |
toString()
|
| Methods inherited from class org.ujorm.orm.AbstractMetaModel |
|---|
changeDefault, checkReadOnly, clearReadOnly, get, lock, readAuthorization, readOnly, setReadOnly, writeValue |
| Methods inherited from class org.ujorm.extensions.AbstractUjo |
|---|
newCamelFactory, newFactory, readValue |
| Methods inherited from class org.ujorm.extensions.SuperAbstractUjo |
|---|
clone, equals, init, init, readKeys, readUjoManager, readValueString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujorm.Ujo |
|---|
readKeys, readValue |
| Field Detail |
|---|
public static final Key<MetaPKey,MetaTable> TABLE
public static final ListKey<MetaPKey,MetaColumn> COLUMNS
| Constructor Detail |
|---|
public MetaPKey(MetaTable table)
| Method Detail |
|---|
public String toString()
toString in class SuperAbstractUjo
public boolean assignPrimaryKey(OrmUjo bo,
Session session)
throws IllegalArgumentException
IllegalArgumentException - The PK can't be assigned.protected final long nextValue(Session session)
public MetaColumn getFirstColumn()
public MetaColumn getColumn(int i)
public int getCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||