| org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaCatalogNode
DBMetaCatalogNode | public class DBMetaCatalogNode extends ReverseDbTreeNode implements java.io.Serializable(Code) | | This node represents a catalog of the database. Its children are DBMetaSchemaNode
objects.
author: Florian Bruckner version: $Id: DBMetaCatalogNode.java,v 1.1.2.1 2005/12/21 22:32:42 tomdz Exp $ |
Constructor Summary | |
public | DBMetaCatalogNode(java.sql.DatabaseMetaData pdbMeta, DatabaseMetaDataTreeModel pdbMetaTreeModel, DBMetaRootNode prootNode, String pstrCatalogName) Creates a new instance of DBMetaCatalogNode.
Parameters: pdbMeta - DatabaseMetaData implementation where this node gets its data from. Parameters: pdbMetaTreeModel - The TreeModel this node is associated to. Parameters: prootNode - The parent node for this node. Parameters: pstrCatalogName - The name of the catalog this node is representing. |
Method Summary | |
protected boolean | _load() Loads the schemas associated to this catalog. | public boolean | getAllowsChildren() | public String | getCatalogName() Convenience access method for the catalog name. | public Class | getPropertyEditorClass() | public boolean | isLeaf() | public String | toString() If the catalog name is specified, returns the catalog name,
otherwise a constant string indicating that the catalog name
is emtpy (which is legal for some databases, e.g. |
ATT_CATALOG_NAME | final public static String ATT_CATALOG_NAME(Code) | | Attribute key for the accessing the catalog name
|
serialVersionUID | final static long serialVersionUID(Code) | | |
DBMetaCatalogNode | public DBMetaCatalogNode(java.sql.DatabaseMetaData pdbMeta, DatabaseMetaDataTreeModel pdbMetaTreeModel, DBMetaRootNode prootNode, String pstrCatalogName)(Code) | | Creates a new instance of DBMetaCatalogNode.
Parameters: pdbMeta - DatabaseMetaData implementation where this node gets its data from. Parameters: pdbMetaTreeModel - The TreeModel this node is associated to. Parameters: prootNode - The parent node for this node. Parameters: pstrCatalogName - The name of the catalog this node is representing. Some databases do not supportscatalogs, therefore null values are allowed for this parameter |
_load | protected boolean _load()(Code) | | Loads the schemas associated to this catalog.
|
getCatalogName | public String getCatalogName()(Code) | | Convenience access method for the catalog name. Accesses the
attributes HashMap to retrieve the value.
|
getPropertyEditorClass | public Class getPropertyEditorClass()(Code) | | |
toString | public String toString()(Code) | | If the catalog name is specified, returns the catalog name,
otherwise a constant string indicating that the catalog name
is emtpy (which is legal for some databases, e.g. Oracle)
See Also: Object.toString |
|
|