| org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaSchemaNode
DBMetaSchemaNode | public class DBMetaSchemaNode extends ReverseDbTreeNode implements java.io.Serializable(Code) | | This node represents a schema of the database. Its children are DBMetaTableNode
objects. Not all databases support schemas (e.g. MySQL), so the schema name
may be null.
author: Florian Bruckner version: $Id: DBMetaSchemaNode.java,v 1.1.2.1 2005/12/21 22:32:42 tomdz Exp $ |
Constructor Summary | |
public | DBMetaSchemaNode(java.sql.DatabaseMetaData pdbMeta, DatabaseMetaDataTreeModel pdbMetaTreeModel, DBMetaCatalogNode pcatalogNode, String pstrSchemaName) Creates a new instance of DBMetaSchemaNode
Parameters: pdbMeta - DatabaseMetaData implementation where this node gets its data from. Parameters: pdbMetaTreeModel - The TreeModel this node is associated to. Parameters: pcatalogNode - The parent node for this node. Parameters: pstrSchemaName - The name of the schema this node is representing. |
ATT_SCHEMA_NAME | final public static String ATT_SCHEMA_NAME(Code) | | Key for accessing the schema name in the attributes Map
|
serialVersionUID | final static long serialVersionUID(Code) | | |
DBMetaSchemaNode | public DBMetaSchemaNode(java.sql.DatabaseMetaData pdbMeta, DatabaseMetaDataTreeModel pdbMetaTreeModel, DBMetaCatalogNode pcatalogNode, String pstrSchemaName)(Code) | | Creates a new instance of DBMetaSchemaNode
Parameters: pdbMeta - DatabaseMetaData implementation where this node gets its data from. Parameters: pdbMetaTreeModel - The TreeModel this node is associated to. Parameters: pcatalogNode - The parent node for this node. Parameters: pstrSchemaName - The name of the schema this node is representing. Some databases do not supportschemas, therefore null values are allowed for this parameter |
_load | protected boolean _load()(Code) | | Fills the children list with the tables this schema contains.
|
getCatalog | public DBMetaCatalogNode getCatalog()(Code) | | Convenience access method to the catalog this schema is associated to.
|
getPropertyEditorClass | public Class getPropertyEditorClass()(Code) | | |
getSchemaName | public String getSchemaName()(Code) | | Convenience access method for the schema name. Accesses the
attributes HashMap to retrieve the value.
|
toString | public String toString()(Code) | | If the schema name is specified, returns the schema name,
otherwise a constant string indicating that the schema name
is emtpy (which is legal for some databases, e.g. MySQL)
See Also: Object.toString |
|
|