org.apache.ojb.tools.mapping.reversedb
Class DBTable
java.lang.Object
org.apache.ojb.tools.mapping.reversedb.DBTable
- All Implemented Interfaces:
- MetadataNodeInterface, PropertySheetModel, javax.swing.tree.TreeNode
- public class DBTable
- extends java.lang.Object
- implements MetadataNodeInterface, javax.swing.tree.TreeNode, PropertySheetModel
- Version:
- $Id: DBTable.java,v 1.7 2003/12/12 16:37:16 brj Exp $
- Author:
- Florian Bruckner
Constructor Summary |
DBTable(java.sql.DatabaseMetaData pdbMeta,
DBSchema paSchema,
java.lang.String pstrTableName)
Creates a new instance of DBTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DBTable
public DBTable(java.sql.DatabaseMetaData pdbMeta,
DBSchema paSchema,
java.lang.String pstrTableName)
- Creates a new instance of DBTable
hasDynamicProxy
public boolean hasDynamicProxy()
setDynamicProxy
public void setDynamicProxy(boolean b)
getConversionStrategyClass
public java.lang.String getConversionStrategyClass()
setConversionStrategyClass
public void setConversionStrategyClass(java.lang.String s)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean b)
isTreeEnabled
public boolean isTreeEnabled()
getColumn
public DBColumn getColumn(java.lang.String colName)
getTableName
public java.lang.String getTableName()
getFQTableName
public java.lang.String getFQTableName()
getClassName
public java.lang.String getClassName()
setClassName
public void setClassName(java.lang.String s)
getPackageName
public java.lang.String getPackageName()
setPackageName
public void setPackageName(java.lang.String s)
getFQClassName
public java.lang.String getFQClassName()
getDBSchema
public DBSchema getDBSchema()
read
public void read()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addColumn
public void addColumn(java.lang.String strColumnName,
int iDataType,
java.lang.String strTypeName,
int iColumnSize,
int iNullable)
addPrimaryKeyColumn
public void addPrimaryKeyColumn(java.lang.String strColumnName)
generateReferences
public void generateReferences()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt(int param)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode treeNode)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
toString
public java.lang.String toString()
getPropertySheetClass
public java.lang.Class getPropertySheetClass()
- Specified by:
getPropertySheetClass
in interface PropertySheetModel
getXML
public java.lang.String getXML()
- Specified by:
getXML
in interface MetadataNodeInterface
writeXML
public void writeXML(java.io.PrintWriter pw)
- Specified by:
writeXML
in interface MetadataNodeInterface
generateJava
public void generateJava(java.io.File aFile,
java.lang.String strHeader,
java.lang.String strFooter)
throws java.io.IOException,
java.io.FileNotFoundException
- Specified by:
generateJava
in interface MetadataNodeInterface
- Throws:
java.io.IOException
java.io.FileNotFoundException
setPackage
public void setPackage(java.lang.String packageName)
- Specified by:
setPackage
in interface MetadataNodeInterface
disableClassesWithRegex
public void disableClassesWithRegex(org.apache.regexp.RE aRegexp)
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