|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.info.TableInfo
org.castor.cpa.persistence.sql.engine.info.EntityTableInfo
public final class EntityTableInfo
Class representing a table for an entity.
| Constructor Summary | |
|---|---|
protected |
EntityTableInfo(String tableName)
Constructor taking tableName in order to construct table that holds his name only. |
| Method Summary | |
|---|---|
protected void |
addExtendingTable(EntityTableInfo table)
Add table that is extending this one. |
protected void |
addForeignKey(ForeignKeyInfo foreignKey)
Add foreign key. |
protected void |
addForeignReference(ForeignReferenceInfo foreignReference)
Add foreign reference. |
protected void |
addPrimaryKeyColumn(String fieldName,
String name,
int type,
TypeConvertor convertFrom)
Add primary key column. |
protected void |
addSimpleColumn(int fieldIndex,
String fieldName,
String name,
int type,
TypeConvertor convertFrom,
boolean store,
boolean dirty)
Add simple column. |
EntityTableInfo |
getExtendedTable()
Method returning extendedTable currently set. |
List<EntityTableInfo> |
getExtendingTables()
Method returning list of tables extending this one. |
List<ForeignKeyInfo> |
getForeignKeys()
Method returning foreign keys currently set. |
List<ForeignReferenceInfo> |
getForeignReferences()
Method returning foreign references currently set. |
List<ColumnInfo> |
getPrimaryKeyColumns()
Method returning columns currently set. |
List<ColumnInfo> |
getSimpleColumns()
Method returning columns currently set. |
protected void |
setExtendedTable(EntityTableInfo table)
Set table extended by this one. |
List<ColumnValue> |
toSQL(Identity identity)
Method appending values from passed identity to corresponding columns. |
List<ColumnValue> |
toSQL(Object[] input)
Method appending values from passed array to corresponding columns. |
| Methods inherited from class org.castor.cpa.persistence.sql.engine.info.TableInfo |
|---|
getTableName, toSQL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EntityTableInfo(String tableName)
tableName - Name of the table to be constructed.| Method Detail |
|---|
protected void setExtendedTable(EntityTableInfo table)
table - Table extended by this one.protected void addExtendingTable(EntityTableInfo table)
table - Extending table to add.
protected void addPrimaryKeyColumn(String fieldName,
String name,
int type,
TypeConvertor convertFrom)
fieldName - Name of field in mapping.name - Name of this column.type - SQL type of this column.convertFrom - Converter to convert value of this column.
protected void addSimpleColumn(int fieldIndex,
String fieldName,
String name,
int type,
TypeConvertor convertFrom,
boolean store,
boolean dirty)
fieldIndex - Index of the field in array of field values.fieldName - Name of field in mapping.name - Name of this column.type - SQL type of this column.convertFrom - Converter to convert value of this column.store - Flag telling if column is persistent or not.dirty - Flag telling if this column was changed or not.protected void addForeignKey(ForeignKeyInfo foreignKey)
foreignKey - Foreign key to add.protected void addForeignReference(ForeignReferenceInfo foreignReference)
foreignReference - Foreign reference to add.public EntityTableInfo getExtendedTable()
public List<EntityTableInfo> getExtendingTables()
public List<ColumnInfo> getPrimaryKeyColumns()
public List<ColumnInfo> getSimpleColumns()
public List<ForeignKeyInfo> getForeignKeys()
public List<ForeignReferenceInfo> getForeignReferences()
public List<ColumnValue> toSQL(Identity identity)
identity - Identity containing values to be assigned to corresponding columns.
public List<ColumnValue> toSQL(Object[] input)
input - Identity containing values to be assigned to corresponding columns.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||