|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jorm.mapper.rdb.generator.RdbGenInfos
This is the root class that contains all the required information for generating Java code specific to the RDB mapping. It allows the support of all elaborated mapping rules.
Field Summary | |
static CommonHelper |
commonHelper
|
RdbGenRef |
genId
The structure of the identifier of the related JORM object. |
java.util.Map |
genRefs
The set of references defined by the generated class. |
java.util.Map |
genTables
The set of all tables used to store the generated class. |
java.util.List |
readableColumns
The set of all columns used to store the generated class. |
RdbGenTable |
referenceTable
The reference table used in this mapping. |
Constructor Summary | |
RdbGenInfos()
|
Method Summary | |
boolean |
colInGenId(RdbGenColumn rgc)
Verifies if the given column is used in the identifier of this class, which is defined by genId. |
int |
getColumnPosition(RdbGenColumn irgc)
Gets the position (within [1..n] of the given column into the overall list defined into this RdbGenInfos. |
int |
getColumnPosition(RdbGenColumn irgc,
RdbGenJoin rgj)
|
java.lang.String |
getDeleteStatement(RdbGenJoin rgj)
|
java.lang.String |
getDeleteStatement(RdbGenTable rgt)
Constructs the string representing the SQL query used to delete the part of a JORM object stored into the given table. |
java.lang.String |
getExistStatement()
Constructs the string representing the SQL query used for testing the existence of a JORM object. |
java.lang.String |
getExtDeleteStatement(RdbGenJoin rgj)
Constructs the string representing the SQL query used to delete the part of a JORM object stored into the given table. |
RdbGenRef |
getGenId()
|
java.lang.String |
getGenRefFieldName(RdbGenRef gr)
Searches the name of the field which defines the given reference. |
RdbGenRef |
getGenRefOfColumn(RdbGenColumn rgc)
Searches the RdbGenRef object, from the genRefs list, which the given column belongs to. |
RdbGenRef |
getGenRefOfColumn(RdbGenColumn rgc,
RdbGenJoin rgj)
|
java.util.Map |
getGenRefs()
|
java.util.Map |
getGenTables()
|
java.lang.String |
getInsertStatement(RdbGenJoin rgj)
|
java.lang.String |
getInsertStatement(RdbGenTable rgt)
Constructs the string representing the SQL query used to insert the part of a JORM object stored into the given table. |
java.lang.String |
getPNameIteratorStatement()
Constructs the string representing the SQL query used to get the extent of a JORM class (the ID PName of all objects of this class). |
java.lang.String |
getPnFieldName(RdbGenColumn rgc)
Searches the name of the field in the composite name associated with the identifier, which is mapped to the given column. |
java.util.List |
getReadableColumns()
|
java.lang.String |
getReadStatement(RdbAdapter adapter)
Constructs the string representing the SQL query used to read a JORM object. |
RdbGenTable |
getReferenceTable()
|
java.util.List |
getTableCompositeGenRefs(RdbGenTable rgt)
Computes the list of references (i.e., their definition) stored into this particular table. |
java.util.List |
getTableCompositeGenRefs(RdbGenTable rgt,
RdbGenJoin rgj)
|
java.lang.String |
getUpdateNullStatement(RdbGenJoin rgj)
|
java.lang.String |
getUpdateNullStatement(RdbGenTable rgt)
|
java.lang.String |
getUpdateStatement(RdbGenJoin rgj)
|
java.lang.String |
getUpdateStatement(RdbGenTable rgt)
Constructs the string representing the SQL query used to update the part of a JORM object stored into the given table. |
java.lang.String |
setIdPnParam(java.lang.String cnfn,
int idx,
RdbAdapter adapter,
boolean isSpecific)
|
boolean |
updatable(RdbGenColumn rgc)
|
boolean |
updatable(RdbGenColumn rgc,
RdbGenJoin rgj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Map genTables
public RdbGenTable referenceTable
public java.util.List readableColumns
public RdbGenRef genId
public java.util.Map genRefs
public static CommonHelper commonHelper
Constructor Detail |
public RdbGenInfos()
Method Detail |
public java.util.Map getGenTables()
public RdbGenTable getReferenceTable()
public java.util.List getReadableColumns()
public RdbGenRef getGenId()
public java.util.Map getGenRefs()
public java.util.List getTableCompositeGenRefs(RdbGenTable rgt)
rgt
- The table for which to find the reference definitions.
public java.util.List getTableCompositeGenRefs(RdbGenTable rgt, RdbGenJoin rgj)
public int getColumnPosition(RdbGenColumn irgc)
irgc
- The column for which to search the position.
public int getColumnPosition(RdbGenColumn irgc, RdbGenJoin rgj)
public java.lang.String getExistStatement()
public java.lang.String getReadStatement(RdbAdapter adapter)
public java.lang.String getPNameIteratorStatement()
public java.lang.String getUpdateStatement(RdbGenTable rgt) throws PException
rgt
- The description of the table to be modified.
PException
public java.lang.String getUpdateStatement(RdbGenJoin rgj) throws PException
PException
public java.lang.String getUpdateNullStatement(RdbGenTable rgt) throws PException
PException
public java.lang.String getUpdateNullStatement(RdbGenJoin rgj) throws PException
PException
public java.lang.String getInsertStatement(RdbGenTable rgt)
rgt
- The description of the table to be modified.
public java.lang.String getInsertStatement(RdbGenJoin rgj)
public java.lang.String getDeleteStatement(RdbGenTable rgt) throws PException
rgt
- The description of the table to be modified.
PException
public java.lang.String getDeleteStatement(RdbGenJoin rgj) throws PException
PException
public java.lang.String getExtDeleteStatement(RdbGenJoin rgj) throws PException
rgj
- The description of the join between the external table and
the main table
PException
public java.lang.String setIdPnParam(java.lang.String cnfn, int idx, RdbAdapter adapter, boolean isSpecific) throws PException
PException
public RdbGenRef getGenRefOfColumn(RdbGenColumn rgc)
rgc
- The column for which to find a RdbGenRef.
public RdbGenRef getGenRefOfColumn(RdbGenColumn rgc, RdbGenJoin rgj)
public boolean colInGenId(RdbGenColumn rgc)
rgc
- The column for which to verify its belonging to the ID.
public java.lang.String getGenRefFieldName(RdbGenRef gr)
gr
- The reference definition.
public java.lang.String getPnFieldName(RdbGenColumn rgc)
rgc
- The column to search.
public boolean updatable(RdbGenColumn rgc)
public boolean updatable(RdbGenColumn rgc, RdbGenJoin rgj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |