A class for holding application data structures.
author: John McNally author: Daniel Rall author: Greg Monroe version: $Id: Database.java 473814 2006-11-11 22:30:30Z tv $
Constructor Summary
public
Database(String databaseType) Creates a new instance for the specified database type.
getDefaultJavaNamingMethod() Get the value of defaultJavaNamingMethod which specifies the
method for converting schema names for table and column to Java names.
getOptions() Gets the full ordered hashtable array of items specified by XML option
statements under this element.
Note, this is not thread save but since it's only used for
generation which is single threaded, there should be minimum
danger using this in Velocity.
An Map of all options.
getTableByJavaName(String javaName) Return the table with the specified javaName.
Parameters: javaName - name of the java object representing the table A Table object.
requiresIdTable() Determines if this database will be using the
IDMethod.ID_BROKER to create ids for torque OM
objects.
true if there is at least one table in this database thatuses the IDMethod.ID_BROKER method of generatingids.
Add an XML Specified option key/value pair to this element's option set.
Parameters: key - the key of the option. Parameters: value - the value of the option.
Get the value of defaultJavaNamingMethod which specifies the
method for converting schema names for table and column to Java names.
The default naming conversion used by this database.
Get the base name to use when creating related Java Classes.
A Java syntax capatible version of the dbName using the methoddefined by the defaultJavaNamingMethod XML value.
Gets the full ordered hashtable array of items specified by XML option
statements under this element.
Note, this is not thread save but since it's only used for
generation which is single threaded, there should be minimum
danger using this in Velocity.
An Map of all options. Will not be null but may be empty.
Convert dbName to a Java compatible name by the JavaName method only
(ignores the defaultJavaNamingMethod).
The current dbName converted to a standard format that canbe used as part of a Java Object name.
Return the table with the specified javaName.
Parameters: javaName - name of the java object representing the table A Table object. If it does not exist it returns null
Determines if this database will be using the
IDMethod.ID_BROKER to create ids for torque OM
objects.
true if there is at least one table in this database thatuses the IDMethod.ID_BROKER method of generatingids. returns false otherwise.