|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.mapper.rdb.lib.RdbExtentMappingInfos
This class is used to construct extent mapping information when calculating extents (see getNonFinalClassExtent) and that will then be used to generate the appropriate union of select/from/where clauses
Field Summary | |
static boolean |
debug
|
static Logger |
logger
|
static java.lang.String |
NULL_COLUMN
|
Method Summary | |
void |
addJoin(RdbJoin join)
|
void |
addProjection(java.lang.String tableName,
java.lang.String columnName,
java.lang.String aliasName,
java.lang.String className,
int position)
|
java.lang.String |
getAliasName(int position)
|
Class |
getClazz()
|
java.util.Collection |
getColumnAliases(boolean prefetch,
java.lang.String primaryKey,
Class cl)
|
java.util.Collection |
getColumnAliasesPKAndFields(Class cl)
|
java.util.Collection |
getColumnClasses()
|
java.util.HashSet |
getFilters()
|
java.util.HashSet |
getJoins()
|
RdbTable |
getMainTable()
|
java.lang.String |
getName()
|
java.lang.String |
getSelectParameter(java.lang.String adapterName)
get a select parameter to give to the getQuery method of adapter this method is called in RdbExtentDefinition.vm when generating the extent definition |
java.lang.String |
getSelectPKAndFields(RdbAdapter adapter,
Class cl)
Returns a String of type "x1 as y1, x2 as y2, x3 as y3" for the pk and fields case, x1 and x2 composing the primary key, x3 being a field that belongs to the class or one of its super classes. |
java.lang.String |
getSelectPKOnly(RdbAdapter adapter,
java.lang.String primaryKey)
Returns a String of type "x1 as y1, x2 as y2" for the pk only case, x1 and x2 composing the primary key. |
java.lang.String |
getSelectPrefetch(RdbAdapter adapter,
Class cl)
Returns a String of type "x1 as y1, x2 as y2, x3 as y3" for the prefetch case. |
java.lang.String |
getWhereParameter(PClassMapping pcm)
|
boolean |
hasJoins()
|
boolean |
isEmpty()
|
boolean |
mappingDone(int pos)
|
boolean |
mappingNull(int pos)
|
void |
setMainTable(RdbTable mainTable)
|
void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NULL_COLUMN
public static Logger logger
public static boolean debug
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public Class getClazz()
public java.util.HashSet getFilters()
public RdbTable getMainTable()
public void setMainTable(RdbTable mainTable)
public java.util.HashSet getJoins()
public void addJoin(RdbJoin join)
public boolean isEmpty()
public void addProjection(java.lang.String tableName, java.lang.String columnName, java.lang.String aliasName, java.lang.String className, int position)
public java.lang.String getSelectParameter(java.lang.String adapterName)
adapterName
- the name of the adapter in the generated code
public java.lang.String getSelectPrefetch(RdbAdapter adapter, Class cl)
adapter
-
public java.lang.String getSelectPKOnly(RdbAdapter adapter, java.lang.String primaryKey)
adapter
- primaryKey
- the list of columns belonging to the primaryKey
public java.lang.String getSelectPKAndFields(RdbAdapter adapter, Class cl)
public java.lang.String getWhereParameter(PClassMapping pcm)
public java.lang.String getAliasName(int position)
public java.util.Collection getColumnAliases(boolean prefetch, java.lang.String primaryKey, Class cl)
prefetch
- primaryKey
- : the String representing the fields composing the primary keycl
- : if prefetch is true, this parameter is not used and the getColumnAliasesPrefetch method is called
else
if cl is null the getColumnAliasesPKOnly method is called
else the getColumnAliasesPKAndFields method is called
public java.util.Collection getColumnAliasesPKAndFields(Class cl)
public java.util.Collection getColumnClasses()
public boolean mappingDone(int pos)
public boolean mappingNull(int pos)
public boolean hasJoins()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |