org.objectweb.jorm.mapper.rdb.generator
Class RdbGenTable

java.lang.Object
  extended byorg.objectweb.jorm.mapper.rdb.generator.RdbGenTable

public class RdbGenTable
extends java.lang.Object

Defines one of the table that is used to mapped a particular JORM class. In case of the reference table (see RdbGenInfos), no join information is defined.

Author:
P. Dechamboux

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.
 RdbFilter filter
          The filter.
 boolean generateUpdate
           
 RdbGenInfos genInfos
           
 java.util.List inheritedColumns
          The list of inherited columns of this table used in this mapping.
 boolean isMainTable
           
 java.util.Map jn2join
           
 java.util.List joins
           
 boolean readOnly
           
 java.util.List tableColumns
          The list of columns of this table used in this mapping.
 java.lang.String tableName
          The name of the table involved in this mapping.
 
Constructor Summary
RdbGenTable()
           
RdbGenTable(RdbExternalTable mo, RdbGenTable mainTable)
           
RdbGenTable(RdbTable mo)
           
 
Method Summary
 java.util.List getColocatedColumns()
           
 boolean getColocatedTable()
           
 RdbGenColumn getColumn(java.lang.String name)
           
 boolean getGenerateUpdate()
           
 RdbGenInfos getGenInfos()
           
 java.util.List getInheritedColumns()
           
 java.util.List getJoins()
           
 boolean getReadOnly()
           
 java.util.List getTableColumns()
           
 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.
 void setGenerateUpdate(RdbGenInfos rgi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genInfos

public RdbGenInfos genInfos

tableName

public java.lang.String tableName
The name of the table involved in this mapping.


tableColumns

public java.util.List tableColumns
The list of columns of this table used in this mapping.


inheritedColumns

public java.util.List inheritedColumns
The list of inherited columns of this table used in this mapping.


filter

public RdbFilter filter
The filter.


colocatedColumns

public 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.


colocatedTable

public boolean colocatedTable
Tells that this table stores colocated objects.


joins

public java.util.List joins

jn2join

public java.util.Map jn2join

readOnly

public boolean readOnly

generateUpdate

public boolean generateUpdate

isMainTable

public boolean isMainTable
Constructor Detail

RdbGenTable

public RdbGenTable()

RdbGenTable

public RdbGenTable(RdbExternalTable mo,
                   RdbGenTable mainTable)
            throws PException

RdbGenTable

public RdbGenTable(RdbTable mo)
            throws PException
Method Detail

setGenerateUpdate

public void setGenerateUpdate(RdbGenInfos rgi)

getGenerateUpdate

public boolean getGenerateUpdate()

getReadOnly

public boolean getReadOnly()

getJoins

public java.util.List getJoins()

getGenInfos

public RdbGenInfos getGenInfos()

getTableName

public java.lang.String getTableName()

getTableNameNoDot

public java.lang.String getTableNameNoDot()

getTableColumns

public java.util.List getTableColumns()

getInheritedColumns

public java.util.List getInheritedColumns()

getColocatedColumns

public java.util.List getColocatedColumns()

getColocatedTable

public boolean getColocatedTable()

isMainTable

public boolean isMainTable()

preparedStatementMandatory

public boolean preparedStatementMandatory()
Tells if only PreparedStatement can be used to store data associated with this table.

Returns:
true if the use of PreparedStatement is mandatory.

getColumn

public RdbGenColumn getColumn(java.lang.String name)