1 package org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel; 2 16 17 22 public class DBMetaColumnNode extends ReverseDbTreeNode 23 implements java.io.Serializable 24 { 25 static final long serialVersionUID = -7694494988930854647L; 26 27 public static final String ATT_COLUMN_NAME = "Column Name"; 28 29 35 public DBMetaColumnNode(java.sql.DatabaseMetaData pdbMeta, 36 DatabaseMetaDataTreeModel pdbMetaTreeModel, 37 DBMetaTableNode ptableNode, String pstrColumnName) 38 { 39 super(pdbMeta, pdbMetaTreeModel, ptableNode); 40 this.setAttribute(ATT_COLUMN_NAME, pstrColumnName); 41 } 42 43 46 public boolean getAllowsChildren() 47 { 48 return false; 49 } 50 51 54 public boolean isLeaf() 55 { 56 return true; 57 } 58 59 60 63 public String toString() 64 { 65 return this.getAttribute(ATT_COLUMN_NAME).toString(); 66 } 67 68 public Class getPropertyEditorClass() 69 { 70 return org.apache.ojb.tools.mapping.reversedb2.propertyEditors.JPnlPropertyEditorDBMetaColumn.class; 71 } 72 73 74 77 protected boolean _load () 78 { 79 return true; 80 } 81 } 82 | Popular Tags |