|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.mapper.rdb.generator.RdbGenTable
Defines one of the table that is used to mapped a particular JORM class. In case of the main table (see RdbGenInfos), no join information is defined.
Field Summary | |
java.util.List |
colocatedColumns
The list of columns of this table that are shared with a colocated object (i.e., an object stored into the same table along with this object. |
boolean |
colocatedTable
Tells that this table stores colocated objects. |
java.util.List |
columns
The list of columns of this table used in this mapping. |
RdbGenInfos |
genInfos
|
java.util.List |
inheritedColumns
The list of inherited columns of this table used in this mapping. |
boolean |
isMainTable
indicates if the table is the main table of a the class |
java.util.Map |
jn2join
|
java.util.List |
joins
|
boolean |
mustGenerateUpdate
indicates if code must be generated to update the table when updating an instance |
boolean |
readOnly
indicates if the table is a read-only table |
java.lang.String |
tableName
The name of the table involved in this mapping. |
Constructor Summary | |
RdbGenTable()
|
|
RdbGenTable(RdbExternalTable extTable,
RdbGenTable mainTable,
Class clazz,
RdbGenInfos genInfos)
Creates an RdbGenTable from an external table. |
|
RdbGenTable(RdbTable mainTable,
Class clazz,
RdbGenInfos genInfos)
Creates an RdbGenTable from a main table. |
Method Summary | |
void |
fixMustGenerateUpdate()
Fix the mustGenerateUpdate attribute. |
java.util.List |
getColocatedColumns()
|
boolean |
getColocatedTable()
|
RdbGenColumn |
getColumn(java.lang.String columnName)
get the genColumn corresponding to the given column columnName. |
java.util.List |
getColumns()
|
RdbGenInfos |
getGenInfos()
|
java.util.List |
getInheritedColumns()
|
java.util.List |
getJoins()
|
boolean |
getMustGenerateUpdate()
|
boolean |
getReadOnly()
|
java.lang.String |
getTableName()
|
java.lang.String |
getTableNameNoDot()
|
boolean |
isMainTable()
|
boolean |
preparedStatementMandatory()
Tells if only PreparedStatement can be used to store data associated with this table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public RdbGenInfos genInfos
public java.lang.String tableName
public java.util.List columns
public java.util.List inheritedColumns
public java.util.List colocatedColumns
public boolean colocatedTable
public java.util.List joins
public java.util.Map jn2join
public boolean readOnly
public boolean mustGenerateUpdate
public boolean isMainTable
Constructor Detail |
public RdbGenTable()
public RdbGenTable(RdbExternalTable extTable, RdbGenTable mainTable, Class clazz, RdbGenInfos genInfos) throws PException
extTable
- the external tablemainTable
- the associated main tableclazz
- the associated table
PException
public RdbGenTable(RdbTable mainTable, Class clazz, RdbGenInfos genInfos) throws PException
mainTable
- the associated main tableclazz
- the associated table
PException
Method Detail |
public void fixMustGenerateUpdate()
public boolean getMustGenerateUpdate()
public boolean getReadOnly()
public java.util.List getJoins()
public RdbGenInfos getGenInfos()
public java.lang.String getTableName()
public java.lang.String getTableNameNoDot()
public java.util.List getColumns()
public java.util.List getInheritedColumns()
public java.util.List getColocatedColumns()
public boolean getColocatedTable()
public boolean isMainTable()
public boolean preparedStatementMandatory()
public RdbGenColumn getColumn(java.lang.String columnName)
columnName
- the name of a column in the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |