Concrete implementation of SourceTable and SQLConnectableObject classes / interfaces,
representing table metadata and linking information for a target table.
author: Jonathan Giron version: $Revision$
createColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable) Convenience class to create SourceColumn instance (with the given column name, data
source name, JDBC type, scale, precision, and nullable), and add it to this
SourceTableImpl instance.
public boolean
equals(Object obj) Overrides default implementation to return value based on memberwise comparison.
toXMLString(String prefix, boolean tableOnly) Returns XML representation of table metadata.
Parameters: prefix - prefix for the xml. Parameters: tableOnly - flag for generating table only metadata.
Creates a new instance of AbstractDBTable, cloning the contents of the given
DBTable implementation instance.
Parameters: src - DBTable instance to be cloned
Creates a new instance of AbstractDBTable with the given name.
Parameters: aName - name of new DBTable instance Parameters: aSchema - schema of new DBTable instance; may be null Parameters: aCatalog - catalog of new DBTable instance; may be null
Sets the various member variables and collections using the given DBTable instance
as a source object. Concrete implementations should override this method, call
super.copyFrom(DBColumn) to pick up member variables defined in this class and then
implement its own logic for copying member variables defined within itself.
Parameters: source - DBTable from which to obtain values for member variables andcollections
createColumn
publicSourceColumn createColumn(String columnName, int jdbcType, int scale, int precision, boolean isPK, boolean isFK, boolean isIndexed, boolean nullable)(Code)
Convenience class to create SourceColumn instance (with the given column name, data
source name, JDBC type, scale, precision, and nullable), and add it to this
SourceTableImpl instance.
Parameters: columnName - Column name Parameters: jdbcType - JDBC type defined in SQL.Types Parameters: scale - Scale Parameters: precision - Precision Parameters: isPK - true if part of primary key, false otherwise Parameters: isFK - true if part of foreign key, false otherwise Parameters: isIndexed - true if indexed, false otherwise Parameters: nullable - Nullable new DBColumnImpl instance
Overrides default implementation to return value based on memberwise comparison.
Parameters: obj - Object against which we compare this instance true if obj is functionally identical to this SQLTable instance; falseotherwise
Overrides parent implementation to return SourceColumn, if any, that corresponds to
the given argument name.
Parameters: argName - argument name of linkable SQLObject linkable SQLObject corresponding to argName throws: BaseException - if argName is null See Also:SQLObject.getOutput(java.lang.String)
Gets the SourceColumn, if any, associated with the given name
Parameters: columnName - column name SourceColumn associated with columnName, or null if none exists
Overrides default implementation to compute hashCode value for those members used
in equals() for comparison.
hash code for this object See Also:java.lang.Object.hashCode
public void secondPassParse(Element element) throws BaseException(Code)
Parses elements which require a second pass to resolve their values.
Parameters: element - DOM element containing XML marshalled version of this SQLObjectinstance throws: BaseException - if element is null or error occurs during parsing
Returns XML representation of table metadata.
Parameters: prefix - prefix for the xml. XML representation of the table metadata. exception: BaseException - - exception
Returns XML representation of table metadata.
Parameters: prefix - prefix for the xml. Parameters: tableOnly - flag for generating table only metadata. XML representation of the table metadata. exception: BaseException - - exception