Class Table
- java.lang.Object
-
- org.apache.torque.templates.model.Table
-
public class Table extends Object
The model of the table tag in a Torque schema file.- Version:
- $Id: $
-
-
Field Summary
Fields Modifier and Type Field Description Boolean_abstractWhether the data object class is abstract.String_interfaceSpecifies an interface that the generated data object class implements.StringbaseBeanClassNameThe class name of the data object bean base class.StringbaseBeanPackageThe package of the data object bean base class.StringbaseClassThe base class of the data object class.StringbaseDbObjectClassNameThe class name of the data object base class.StringbaseDbObjectPackageThe package of the data object base class.StringbaseManagerClassNameThe class name of the manager base class.StringbaseManagerPackageThe package of the manager base class.StringbasePeerThe base class of the peer class.StringbasePeerClassNameThe class name of the peer static wrapper base class.StringbasePeerImplClassNameThe class name of the peer implementation base class.StringbasePeerPackageThe package of the peer base class.StringbaseRecordMapperClassNameThe class name of the record mapper base class.StringbaseRecordMapperPackageThe package of the record mapper base class.StringbeanClassNameThe class name of the data object bean class.StringbeanPackageThe package of the data object bean class.List<Column>columnListThe columns of this table.StringdbObjectClassNameThe class name of the data object class.StringdbObjectPackageThe package of the data object class.StringdescriptionA description of the table.List<ForeignKey>foreignKeyListThe foreign keys of this table.StringidMethodThe id method to use.List<IdMethodParameter>idMethodParameterListThe id method parameters for this table.List<Index>indexListThe index list for this table.StringjavaNameThe unqualified name of the data object class.StringmanagerClassNameThe class name of the manager class.StringmanagerPackageThe package of the manager class.StringnameThe table's name.StringoptimisticLockingModeThe optimistic Locking mode to use.List<Option>optionListThe options for this table.DatabaseparentThe database to which this table belongs.StringpeerClassNameThe class name of the peer static wrapper class.StringpeerImplClassNameThe class name of the peer implementation class.StringpeerInterfaceThe interface for the peer class.StringpeerPackageThe package of the peer class.StringprimaryKeyColumnNamesThe attribute contains all primary key columns in a comma-separated String.StringprimaryKeyConstraintNameThe name of the constraint defining the primary key of a table.List<Column>primaryKeyListContains all primary key columns of the table.StringrecordMapperClassNameThe class name of the record mapper class.StringrecordMapperPackageThe package of the record mapper class.BooleansaveMethodsInDbObjectsWhether the save method resides in the data objects (default is it is in the peer).StringsequenceNameThe name of the sequence from which the primary key of the table is generated.BooleanskipSqlWhether sql generation should be skipped.List<Unique>uniqueListThe list of unique indices for this table.StringunqualifiedNameThe unqualified part of the table name, omitting schema and database information.BooleanuseManagersOverride flag whether manager classes are used in this table.
-
Constructor Summary
Constructors Constructor Description Table()
-
-
-
Field Detail
-
parent
public Database parent
The database to which this table belongs.
-
foreignKeyList
public List<ForeignKey> foreignKeyList
The foreign keys of this table.
-
idMethodParameterList
public List<IdMethodParameter> idMethodParameterList
The id method parameters for this table.
-
name
public String name
The table's name.
-
_interface
public String _interface
Specifies an interface that the generated data object class implements. If this is a fully qualified class name (i. e. the string contains dots), the interface will simply be implemented by the data object class. If the interface is a simple class name (without dots), an empty interface file will be generated in the data object package. When this attribute is used, all peer methods that normally would return the data object type will now return the interface type.
-
baseClass
public String baseClass
The base class of the data object class.
-
basePeer
public String basePeer
The base class of the peer class.
-
idMethod
public String idMethod
The id method to use. Valid values are "idbroker", "native", "none" or null.
-
_abstract
public Boolean _abstract
Whether the data object class is abstract.
-
javaName
public String javaName
The unqualified name of the data object class. If null, the class name will be determined from the name attribute.
-
skipSql
public Boolean skipSql
Whether sql generation should be skipped.
-
description
public String description
A description of the table.
-
dbObjectClassName
public String dbObjectClassName
The class name of the data object class.
-
baseDbObjectClassName
public String baseDbObjectClassName
The class name of the data object base class.
-
peerClassName
public String peerClassName
The class name of the peer static wrapper class.
-
basePeerClassName
public String basePeerClassName
The class name of the peer static wrapper base class.
-
peerImplClassName
public String peerImplClassName
The class name of the peer implementation class.
-
basePeerImplClassName
public String basePeerImplClassName
The class name of the peer implementation base class.
-
beanClassName
public String beanClassName
The class name of the data object bean class.
-
baseBeanClassName
public String baseBeanClassName
The class name of the data object bean base class.
-
managerClassName
public String managerClassName
The class name of the manager class.
-
baseManagerClassName
public String baseManagerClassName
The class name of the manager base class.
-
recordMapperClassName
public String recordMapperClassName
The class name of the record mapper class.
-
baseRecordMapperClassName
public String baseRecordMapperClassName
The class name of the record mapper base class.
-
dbObjectPackage
public String dbObjectPackage
The package of the data object class.
-
baseDbObjectPackage
public String baseDbObjectPackage
The package of the data object base class.
-
peerPackage
public String peerPackage
The package of the peer class.
-
basePeerPackage
public String basePeerPackage
The package of the peer base class.
-
recordMapperPackage
public String recordMapperPackage
The package of the record mapper class.
-
baseRecordMapperPackage
public String baseRecordMapperPackage
The package of the record mapper base class.
-
managerPackage
public String managerPackage
The package of the manager class.
-
baseManagerPackage
public String baseManagerPackage
The package of the manager base class.
-
beanPackage
public String beanPackage
The package of the data object bean class.
-
baseBeanPackage
public String baseBeanPackage
The package of the data object bean base class.
-
optimisticLockingMode
public String optimisticLockingMode
The optimistic Locking mode to use. Valid values are "selectForUpdate", "simpleSelect".
-
useManagers
public Boolean useManagers
Override flag whether manager classes are used in this table.
-
saveMethodsInDbObjects
public Boolean saveMethodsInDbObjects
Whether the save method resides in the data objects (default is it is in the peer).
-
peerInterface
public String peerInterface
The interface for the peer class.
-
unqualifiedName
public String unqualifiedName
The unqualified part of the table name, omitting schema and database information.
-
primaryKeyConstraintName
public String primaryKeyConstraintName
The name of the constraint defining the primary key of a table.
-
sequenceName
public String sequenceName
The name of the sequence from which the primary key of the table is generated.
-
primaryKeyColumnNames
public String primaryKeyColumnNames
The attribute contains all primary key columns in a comma-separated String.
-
-