com.agimatec.sql.meta.oracle
Class OracleJdbcSqlMetaFactory

java.lang.Object
  extended by com.agimatec.sql.meta.oracle.OracleJdbcSqlMetaFactory
All Implemented Interfaces:
SqlMetaFactory

public class OracleJdbcSqlMetaFactory
extends Object
implements SqlMetaFactory

Description: Builds a CatalogDescription by reading the Schema-Catalog tables of an oracle database.

Author:
Roman Stumm

Constructor Summary
OracleJdbcSqlMetaFactory(JdbcDatabase aDatabase)
          create an instance
 
Method Summary
 CatalogDescription buildCatalog()
          load the catalog for ALL USER_TABLES!
 CatalogDescription buildCatalog(String[] tables)
          create a CatalogDescription
 JdbcDatabase getDatabase()
           
 boolean isColumns()
           
 boolean isComments()
           
 boolean isForeignKeys()
           
 boolean isIndices()
           
 boolean isPrimaryKeys()
           
 boolean isSequences()
           
 void setColumns(boolean aColumns)
           
 void setComments(boolean aComments)
           
 void setForeignKeys(boolean aForeignKeys)
           
 void setIndices(boolean aIndices)
           
 void setPrimaryKeys(boolean aPrimaryKeys)
           
 void setSequences(boolean aSequences)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleJdbcSqlMetaFactory

public OracleJdbcSqlMetaFactory(JdbcDatabase aDatabase)
create an instance

Parameters:
aDatabase - - to get the database connection from (no mappings required)
Method Detail

isSequences

public boolean isSequences()

setSequences

public void setSequences(boolean aSequences)

isIndices

public boolean isIndices()

setIndices

public void setIndices(boolean aIndices)

isPrimaryKeys

public boolean isPrimaryKeys()

setPrimaryKeys

public void setPrimaryKeys(boolean aPrimaryKeys)

isColumns

public boolean isColumns()

setColumns

public void setColumns(boolean aColumns)

isForeignKeys

public boolean isForeignKeys()

setForeignKeys

public void setForeignKeys(boolean aForeignKeys)

isComments

public boolean isComments()

setComments

public void setComments(boolean aComments)

buildCatalog

public CatalogDescription buildCatalog()
                                throws SQLException,
                                       IOException,
                                       SAXException
load the catalog for ALL USER_TABLES!

Throws:
SQLException
IOException
SAXException

buildCatalog

public CatalogDescription buildCatalog(String[] tables)
                                throws SQLException,
                                       IOException
create a CatalogDescription

Throws:
SQLException
IOException

getDatabase

public JdbcDatabase getDatabase()


Copyright © 2008-2011. All Rights Reserved.