Class Database
- java.lang.Object
-
- org.apache.torque.templates.model.Database
-
public class Database extends Object
The model of the database tag in a Torque schema file.- Version:
- $Id: $
-
-
Field Summary
Fields Modifier and Type Field Description List<Table>allTablesList of all tables, including the tables from loaded external-schema definitions.List<View>allViewsList of all views, including the views from loaded external-schema definitions.StringdefaultIdMethodThe default id method for this database.StringdefaultJavaTypeWhether the columns in this database will use primitive types if possible ("primitive") or will always use object types ("object").List<Domain>domainListThe List of domains for this database.List<ExternalSchema>externalSchemaListThe list of external schemas for this database.List<IncludeSchema>includeSchemaListThe list of included schemas for this database.StringnameThe name of the database.List<Option>optionListThe list of options for this database.StringrootDatabaseNameThe name of the root database.List<String>schemaNameListList of all schema names in the tables of the database.List<Table>tableListThe list of tables for this database.List<View>viewListThe list of views for this database.
-
Constructor Summary
Constructors Constructor Description Database()
-
-
-
Field Detail
-
includeSchemaList
public List<IncludeSchema> includeSchemaList
The list of included schemas for this database.
-
externalSchemaList
public List<ExternalSchema> externalSchemaList
The list of external schemas for this database.
-
tableList
public List<Table> tableList
The list of tables for this database. This may include the tables from included schemas, depending on whether included schemas were already resolved, but never includes the tables from external schemas.
-
viewList
public List<View> viewList
The list of views for this database. This may include the views from included schemas, depending on whether included schemas were already resolved, but never includes the views from external schemas.
-
name
public String name
The name of the database.
-
defaultJavaType
public String defaultJavaType
Whether the columns in this database will use primitive types if possible ("primitive") or will always use object types ("object").
-
defaultIdMethod
public String defaultIdMethod
The default id method for this database. One of "native", "idbroker" or "none".
-
rootDatabaseName
public String rootDatabaseName
The name of the root database. Either the name of of this database if this database was not included or referenced as external schema, or the name of the root inclusion or root external-schema database.
-
allTables
public List<Table> allTables
List of all tables, including the tables from loaded external-schema definitions.
-
allViews
public List<View> allViews
List of all views, including the views from loaded external-schema definitions.
-
-