|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
org.ujoframework.implementation.quick.QuickUjo
org.ujoframework.orm.AbstractMetaModel
org.ujoframework.orm.metaModel.MetaTable
public final class MetaTable
DB table or view meta-model.
| Field Summary | |
|---|---|
static Property<MetaTable,java.lang.String> |
ALIAS
The unique table/view name over all Databases in scope one OrmHandler |
static ListProperty<MetaTable,MetaColumn> |
COLUMNS
Table Columns (no relations) |
static Property<MetaTable,MetaDatabase> |
DATABASE
Database |
static Property<MetaTable,RelationToMany> |
DB_PROPERTY
Database relative property (a base definition of table) |
static Property<MetaTable,java.lang.String> |
ID
The meta-model id |
static Property<MetaTable,java.lang.String> |
NAME
DB table name |
static Property<MetaTable,MetaPKey> |
PK
Unique Primary Key |
static ListProperty<MetaTable,MetaRelation2Many> |
RELATIONS
Table relations to many |
static Property<MetaTable,java.lang.String> |
SELECT
SQL SELECT statement |
static Property<MetaTable,MetaSelect> |
SELECT_MODEL
SQL SELECT model. |
static Property<MetaTable,java.lang.String> |
SEQUENCE
Name of DB sequence. |
static Property<MetaTable,java.lang.String> |
SCHEMA
Name of table schema. |
static Property<MetaTable,java.lang.Boolean> |
VIEW
Is it a model of a database view or table ? |
| Constructor Summary | |
|---|---|
MetaTable()
No parameter constructor. |
|
MetaTable(MetaDatabase database,
RelationToMany dbProperty,
MetaTable parTable)
Create new MetaTable. |
|
| Method Summary | |
|---|---|
void |
assignPrimaryKey(OrmUjo bo,
Session session)
Assign a PK from framework |
OrmUjo |
createBO()
Returns a new instance or the BO. |
boolean |
equals(java.lang.Object obj)
Compare object by the same instance. |
java.lang.String |
getAlias()
Returns a unique table name over all Databases of the one OrmHandler. |
MetaDatabase |
getDatabase()
Returns the database |
MetaColumn |
getFirstPK()
Returns the first PK |
java.util.List<MetaColumn> |
getForeignColumns()
Get all foreign columns |
java.util.Collection<MetaIndex> |
getIndexCollection()
Create a collection of the table indexes. |
UjoSequencer |
getSequencer()
UJO sequencer |
java.lang.Class<OrmUjo> |
getType()
Returns a base table class. |
boolean |
isPersistent()
Is the instance a database relation model? |
boolean |
isSelectModel()
Is the query from a SQL select model ? |
boolean |
isTable()
Is the instance a database persistent table? |
boolean |
isView()
Is the instance a database relation model? |
void |
setNotPersistent()
Database model is not persistent. |
| Methods inherited from class org.ujoframework.orm.AbstractMetaModel |
|---|
get, changeDefault, checkReadOnly, isUsable, isUsable, readAuthorization, readOnly, setReadOnly, writeValue |
| Methods inherited from class org.ujoframework.implementation.quick.QuickUjo |
|---|
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue |
| Methods inherited from class org.ujoframework.extensions.AbstractUjo |
|---|
clone, init, init, readProperties, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Property<MetaTable,java.lang.String> ID
public static final Property<MetaTable,java.lang.String> NAME
public static final Property<MetaTable,java.lang.String> ALIAS
public static final Property<MetaTable,java.lang.String> SCHEMA
public static final Property<MetaTable,java.lang.String> SEQUENCE
public static final ListProperty<MetaTable,MetaColumn> COLUMNS
public static final ListProperty<MetaTable,MetaRelation2Many> RELATIONS
public static final Property<MetaTable,java.lang.Boolean> VIEW
public static final Property<MetaTable,java.lang.String> SELECT
public static final Property<MetaTable,MetaSelect> SELECT_MODEL
public static final Property<MetaTable,MetaPKey> PK
public static final Property<MetaTable,RelationToMany> DB_PROPERTY
public static final Property<MetaTable,MetaDatabase> DATABASE
| Constructor Detail |
|---|
public MetaTable()
public MetaTable(MetaDatabase database,
RelationToMany dbProperty,
MetaTable parTable)
database - Database for the tabledbProperty - Configuration propertyparTable - Configuration data from a XML file| Method Detail |
|---|
public void assignPrimaryKey(OrmUjo bo,
Session session)
public OrmUjo createBO()
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic final java.lang.Class<OrmUjo> getType()
public MetaColumn getFirstPK()
public boolean isPersistent()
public boolean isView()
public boolean isTable()
public boolean isSelectModel()
public void setNotPersistent()
public java.lang.String getAlias()
public final MetaDatabase getDatabase()
public boolean equals(java.lang.Object obj)
equals in class AbstractUjopublic java.util.List<MetaColumn> getForeignColumns()
public UjoSequencer getSequencer()
public java.util.Collection<MetaIndex> getIndexCollection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||