org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel
Class DBMetaColumnNode
java.lang.Object
org.apache.ojb.tools.mapping.reversedb2.propertyEditors.EditableTreeNodeWithProperties
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.ReverseDbTreeNode
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel.DBMetaColumnNode
- All Implemented Interfaces:
- PropertyEditorTarget, java.io.Serializable, javax.swing.tree.TreeNode
- public class DBMetaColumnNode
- extends ReverseDbTreeNode
- implements java.io.Serializable
This class represents a columns of a table
- Version:
- $Id: DBMetaColumnNode.java,v 1.3 2004/01/07 11:41:20 thma Exp $
- Author:
- Florian Bruckner
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ATT_COLUMN_NAME
Key for accessing the column name in the attributes Map |
(package private) static long |
serialVersionUID
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
ATT_COLUMN_NAME
public static final java.lang.String ATT_COLUMN_NAME
- Key for accessing the column name in the attributes Map
- See Also:
- Constant Field Values
DBMetaColumnNode
public DBMetaColumnNode(java.sql.DatabaseMetaData pdbMeta,
DatabaseMetaDataTreeModel pdbMetaTreeModel,
DBMetaTableNode ptableNode,
java.lang.String pstrColumnName)
- Creates a new instance of DBMetaSchemaNode
- Parameters:
pdbMeta
- DatabaseMetaData implementation where this node gets its data from.pdbMetaTreeModel
- The TreeModel this node is associated to.pstrColumnName
- The name of the column this node is representing.
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
- Specified by:
getAllowsChildren
in class ReverseDbTreeNode
- See Also:
ReverseDbTreeNode.isLeaf()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
- Specified by:
isLeaf
in class ReverseDbTreeNode
- See Also:
ReverseDbTreeNode.getAllowsChildren()
toString
public java.lang.String toString()
- See Also:
Object.toString()
getPropertyEditorClass
public java.lang.Class getPropertyEditorClass()
- Description copied from interface:
PropertyEditorTarget
- Return the property editor class for this PropertyEditorTarget. Depending
on the GUI implementation this could for example be an extension of
JPanel. The Property editor is responsible for the layout, so the property
editor has to know which properties this target has.
- Specified by:
getPropertyEditorClass
in interface PropertyEditorTarget
_load
protected boolean _load()
- Do nothing as there are no children for a column.
- Specified by:
_load
in class ReverseDbTreeNode
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14