org.apache.ojb.tools.mapping.reversedb
Class DBMeta

java.lang.Object
  extended byorg.apache.ojb.tools.mapping.reversedb.DBMeta
All Implemented Interfaces:
MetadataNodeInterface, PropertySheetModel, javax.swing.tree.TreeNode

public class DBMeta
extends java.lang.Object
implements MetadataNodeInterface, javax.swing.tree.TreeNode, PropertySheetModel

Version:
$Id: DBMeta.java,v 1.5 2003/06/21 10:31:45 florianbruckner Exp $
Author:
Florian Bruckner

Constructor Summary
DBMeta(java.sql.DatabaseMetaData pDbMeta)
           
DBMeta(java.lang.String pCatalogPattern, java.lang.String pSchemaPattern, java.sql.DatabaseMetaData pDbMeta)
          Creates a new instance of DBSchema
 
Method Summary
 java.util.Enumeration children()
           
 void debug()
           
 void disableClassesWithRegex(org.apache.regexp.RE aRegexp)
           
 void generateJava(java.io.File aFile, java.lang.String strHeader, java.lang.String strFooter)
           
 void generateReferences()
           
 boolean getAllowsChildren()
           
 DBCatalog getCatalog(java.lang.String catalogName)
           
 java.lang.String getCatalogSeparator()
           
 java.lang.String getCatalogTerm()
           
 javax.swing.tree.TreeNode getChildAt(int param)
           
 int getChildCount()
           
 java.lang.String getDatabaseProductName()
           
 java.lang.String getDatabaseProductVersion()
           
 int getIndex(javax.swing.tree.TreeNode treeNode)
           
 boolean getIsCatalogAtStart()
           
 javax.swing.tree.TreeNode getParent()
           
 java.lang.Class getPropertySheetClass()
           
 java.lang.String getSchemaPattern()
           
 java.lang.String getSchemaTerm()
           
 boolean getSupportsCatalogsInDataManipulation()
           
 boolean getSupportsCatalogsInIndexDefinitions()
           
 boolean getSupportsCatalogsInPrivilegeDefinitions()
           
 boolean getSupportsCatalogsInProcedureCalls()
           
 boolean getSupportsCatalogsInTableDefinitions()
           
 java.lang.String getXML()
           
 boolean isEnabled()
           
 boolean isLeaf()
           
 void read()
           
 void setEnabled(boolean b)
           
 void setPackage(java.lang.String packageName)
           
 java.lang.String toString()
           
 void writeXML(java.io.PrintWriter pw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBMeta

public DBMeta(java.lang.String pCatalogPattern,
              java.lang.String pSchemaPattern,
              java.sql.DatabaseMetaData pDbMeta)
       throws java.sql.SQLException
Creates a new instance of DBSchema


DBMeta

public DBMeta(java.sql.DatabaseMetaData pDbMeta)
       throws java.sql.SQLException
Method Detail

getSchemaPattern

public java.lang.String getSchemaPattern()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean b)

getDatabaseProductVersion

public java.lang.String getDatabaseProductVersion()

getDatabaseProductName

public java.lang.String getDatabaseProductName()

getSupportsCatalogsInIndexDefinitions

public boolean getSupportsCatalogsInIndexDefinitions()

getSupportsCatalogsInDataManipulation

public boolean getSupportsCatalogsInDataManipulation()

getSupportsCatalogsInPrivilegeDefinitions

public boolean getSupportsCatalogsInPrivilegeDefinitions()

getSupportsCatalogsInProcedureCalls

public boolean getSupportsCatalogsInProcedureCalls()

getSupportsCatalogsInTableDefinitions

public boolean getSupportsCatalogsInTableDefinitions()

getCatalogTerm

public java.lang.String getCatalogTerm()

getSchemaTerm

public java.lang.String getSchemaTerm()

getCatalogSeparator

public java.lang.String getCatalogSeparator()

getIsCatalogAtStart

public boolean getIsCatalogAtStart()

getCatalog

public DBCatalog getCatalog(java.lang.String catalogName)

read

public void read()
          throws java.sql.SQLException
Throws:
java.sql.SQLException

generateReferences

public void generateReferences()
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

debug

public void debug()

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