org.apache.ddlutils.platform.oracle
Class Oracle8ModelReader

java.lang.Object
  extended byorg.apache.ddlutils.platform.JdbcModelReader
      extended byorg.apache.ddlutils.platform.oracle.Oracle8ModelReader
Direct Known Subclasses:
Oracle10ModelReader

public class Oracle8ModelReader
extends JdbcModelReader

Reads a database model from an Oracle 8 database.

Version:
$Revision: $
Author:
Thomas Dudziak

Constructor Summary
Oracle8ModelReader(PlatformInfo platformInfo)
          Creates a new model reader for Oracle 8 databases.
 
Method Summary
protected  Column readColumn(DatabaseMetaDataWrapper metaData, Map values)
          Extracts a column definition from the result set.
protected  Collection readIndices(DatabaseMetaDataWrapper metaData, String tableName)
          Determines the indices for the indicated table.
 
Methods inherited from class org.apache.ddlutils.platform.JdbcModelReader
determineAutoIncrementFromResultSetMetaData, getColumnsForColumn, getColumnsForFK, getColumnsForIndex, getColumnsForPK, getColumnsForTable, getConnection, getDatabase, getDatabase, getDefaultCatalogPattern, getDefaultSchemaPattern, getDefaultTablePattern, getDefaultTableTypes, getPlatformInfo, initColumnsForColumn, initColumnsForFK, initColumnsForIndex, initColumnsForPK, initColumnsForTable, isInternalForeignKeyIndex, isInternalPrimaryKeyIndex, matches, readColumns, readForeignKey, readForeignKeys, readIndex, readPrimaryKeyName, readPrimaryKeyNames, readTable, readTables, removeInternalForeignKeyIndex, removeInternalPrimaryKeyIndex, removeSystemIndices, setDefaultCatalogPattern, setDefaultSchemaPattern, setDefaultTablePattern, setDefaultTableTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Oracle8ModelReader

public Oracle8ModelReader(PlatformInfo platformInfo)
Creates a new model reader for Oracle 8 databases.

Parameters:
platformInfo - The platform specific settings
Method Detail

readColumn

protected Column readColumn(DatabaseMetaDataWrapper metaData,
                            Map values)
                     throws SQLException
Extracts a column definition from the result set.

Overrides:
readColumn in class JdbcModelReader
Parameters:
metaData - The database meta data
values - The column meta data values as defined by JdbcModelReader.getColumnsForColumn()
Returns:
The column
Throws:
SQLException

readIndices

protected Collection readIndices(DatabaseMetaDataWrapper metaData,
                                 String tableName)
                          throws SQLException
Determines the indices for the indicated table.

Overrides:
readIndices in class JdbcModelReader
Parameters:
metaData - The database meta data
tableName - The name of the table
Returns:
The list of indices
Throws:
SQLException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.