|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaSchemaNode
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.
Field Summary | |
static java.lang.String |
ATT_SCHEMA_NAME
Key for accessing the schema name in the attributes Map |
(package private) static long |
serialVersionUID
|
Fields inherited from class org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode |
alChildren |
Fields inherited from class org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties |
propertyChangeDelegate |
Constructor Summary | |
DBMetaSchemaNode(java.sql.DatabaseMetaData pdbMeta,
DatabaseMetaDataTreeModel pdbMetaTreeModel,
DBMetaCatalogNode pcatalogNode,
java.lang.String pstrSchemaName)
Creates a new instance of DBMetaSchemaNode |
Method Summary | |
protected boolean |
_load()
Fills the children list with the tables this schema contains. |
boolean |
getAllowsChildren()
|
DBMetaCatalogNode |
getCatalog()
Convenience access method to the catalog this schema is associated to. |
java.lang.Class |
getPropertyEditorClass()
Return the property editor class for this PropertyEditorTarget. |
java.lang.String |
getSchemaName()
Convenience access method for the schema name. |
boolean |
isLeaf()
|
java.lang.String |
toString()
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. |
Methods inherited from class org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode |
children, getChildAt, getChildCount, getDbMeta, getDbMetaTreeModel, getIndex, getParent, load, loadWait |
Methods inherited from class org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties |
addPropertyChangeListener, addPropertyChangeListener, getAttribute, removePropertyChangeListener, removePropertyChangeListener, setAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
public static final java.lang.String ATT_SCHEMA_NAME
Constructor Detail |
public DBMetaSchemaNode(java.sql.DatabaseMetaData pdbMeta, DatabaseMetaDataTreeModel pdbMetaTreeModel, DBMetaCatalogNode pcatalogNode, java.lang.String pstrSchemaName)
pdbMeta
- DatabaseMetaData implementation where this node gets its data from.pdbMetaTreeModel
- The TreeModel this node is associated to.pcatalogNode
- The parent node for this node.pstrSchemaName
- The name of the schema this node is representing. Some databases do not support
schemas, therefore null values are allowed for this parameterMethod Detail |
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class ReverseDbTreeNode
ReverseDbTreeNode.isLeaf()
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class ReverseDbTreeNode
ReverseDbTreeNode.getAllowsChildren()
public java.lang.String getSchemaName()
public java.lang.String toString()
Object.toString()
public DBMetaCatalogNode getCatalog()
public java.lang.Class getPropertyEditorClass()
PropertyEditorTarget
getPropertyEditorClass
in interface PropertyEditorTarget
protected boolean _load()
_load
in class ReverseDbTreeNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |