|
Ujorm release 1.22 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.extensions.AbstractUjo
org.ujorm.implementation.quick.QuickUjo
org.ujorm.orm.AbstractMetaModel
org.ujorm.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,java.lang.String> |
COMMENT
Comment of the database table |
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,Orm2ddlPolicy> |
ORM2DLL_POLICY
A policy to defining the database structure by a DDL. |
static Property<MetaTable,MetaPKey> |
PK
Unique Primary Key |
static Property<MetaTable,java.lang.Boolean> |
READ_ONLY
The state read-only for the database. |
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 |
assertChangeAllowed()
Asssert that the table may be changed. |
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. |
java.lang.String |
getComment()
Get a Comment from meta-model annotation. |
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. |
Orm2ddlPolicy |
getOrm2ddlPolicy()
Returns Orm2DDl policy |
OrmUjo |
getParent(OrmUjo bo)
Returns a parrent of the parameter or the null if no parent was not found. |
UjoSequencer |
getSequencer()
UJO sequencer |
java.lang.Class<OrmUjo> |
getType()
Returns a base table class. |
boolean |
isCommented()
Has the instance assigned a non empty comment? |
boolean |
isDefaultSchema()
Has this table assigned the database default database schema ? |
boolean |
isPersistent()
Is the instance a database relation model? |
boolean |
isReadOnly()
Have the table got a READ-ONLU mode ? |
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.ujorm.orm.AbstractMetaModel |
|---|
get, changeDefault, checkReadOnly, isFilled, isFilled, readAuthorization, readOnly, setReadOnly, writeValue |
| Methods inherited from class org.ujorm.implementation.quick.QuickUjo |
|---|
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue |
| Methods inherited from class org.ujorm.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.Boolean> READ_ONLY
public static final Property<MetaTable,Orm2ddlPolicy> ORM2DLL_POLICY
Parameter valuespublic static final Property<MetaTable,java.lang.String> SEQUENCE
public static final Property<MetaTable,java.lang.Boolean> VIEW
public static final Property<MetaTable,java.lang.String> SELECT
public static final Property<MetaTable,java.lang.String> COMMENT
public static final ListProperty<MetaTable,MetaColumn> COLUMNS
public static final ListProperty<MetaTable,MetaRelation2Many> RELATIONS
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 isDefaultSchema()
public boolean isView()
public boolean isTable()
public boolean isCommented()
public java.lang.String getComment()
Commentpublic 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()
public OrmUjo getParent(OrmUjo bo)
public boolean isReadOnly()
public void assertChangeAllowed()
public Orm2ddlPolicy getOrm2ddlPolicy()
|
Ujorm release 1.22 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||