org.objectweb.jorm.mapper.rdb.generator
Class RdbViewGenInfos.ExtentMappingInfos
java.lang.Object
org.objectweb.jorm.mapper.rdb.generator.RdbViewGenInfos.ExtentMappingInfos
- Enclosing class:
- RdbViewGenInfos
- public class RdbViewGenInfos.ExtentMappingInfos
- extends java.lang.Object
This class is used to construct extent mapping information when calculating
views (see getNonFinalClassExtent) and that will then be used to
generate the appropriate union of select/from/where clauses
Method Summary |
void |
addProjection(java.lang.String tableName,
java.lang.String columnName,
java.lang.String aliasName,
int position)
|
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 RdbViewDefinition.vm when generating the
view definition |
boolean |
hasJoins()
|
boolean |
isEmpty()
|
boolean |
mappingDone(int pos)
|
void |
setName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
getFilters
public java.util.HashSet getFilters()
getMainTable
public RdbTable getMainTable()
getJoins
public java.util.HashSet getJoins()
isEmpty
public boolean isEmpty()
addProjection
public void addProjection(java.lang.String tableName,
java.lang.String columnName,
java.lang.String aliasName,
int position)
getSelectParameter
public 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 RdbViewDefinition.vm when generating the
view definition
- Parameters:
adapterName
- the name of the adapter in the generated code
- Returns:
- a string to include as the first parameter of the call to
getQuery in the generated code
mappingDone
public boolean mappingDone(int pos)
hasJoins
public boolean hasJoins()