public final class MetaPKey extends AbstractMetaModel
Modifier and Type | Field and Description |
---|---|
static ListKey<MetaPKey,MetaColumn> |
COLUMNS
DB columns
|
static Key<MetaPKey,MetaTable> |
TABLE
DB table
|
Modifier and Type | Method and Description |
---|---|
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()
A String representation.
|
clearReadOnly, get, changeDefault, checkReadOnly, lock, readAuthorization, readOnly, setReadOnly, writeValue
newCamelFactory, newFactory, newSnakeCaseFactory, readValue
clone, equals, init, init, readKeys, readUjoManager, readValueString, writeValueString
public static final ListKey<MetaPKey,MetaColumn> COLUMNS
public MetaPKey(MetaTable table)
public String toString()
SuperAbstractUjo
toString
in class SuperAbstractUjo
public boolean assignPrimaryKey(OrmUjo bo, Session session) throws IllegalUjormException
IllegalArgumentException
- The PK can't be assigned.IllegalUjormException
protected final long nextValue(Session session)
public MetaColumn getFirstColumn()
public MetaColumn getColumn(int i)
public int getCount()
Copyright 2015, Pavel Ponec