org.apache.ddlutils.platform.firebird
Class FirebirdModelReader

java.lang.Object
  extended byorg.apache.ddlutils.platform.JdbcModelReader
      extended byorg.apache.ddlutils.platform.firebird.FirebirdModelReader

public class FirebirdModelReader
extends JdbcModelReader

The Jdbc Model Reader for Firebird.

Version:
$Revision: $
Author:
Martin van den Bemt

Constructor Summary
FirebirdModelReader(PlatformInfo platformInfo)
          Creates a new model reader for Firebird databases.
 
Method Summary
protected  void determineAutoIncrementFromResultSetMetaData(Table table, Column[] columnsToCheck)
          Helper method that determines the auto increment status for the given columns via the ResultSetMetaData.isAutoIncrement(int) method.
protected  void readIndex(DatabaseMetaDataWrapper metaData, Map values, Map knownIndices)
          Reads the next index spec from the result set.
protected  Table readTable(DatabaseMetaDataWrapper metaData, Map values)
          Reads the next table from the meta data.
 
Methods inherited from class org.apache.ddlutils.platform.JdbcModelReader
getColumnsForColumn, getColumnsForFK, getColumnsForIndex, getColumnsForPK, getColumnsForTable, getConnection, getDatabase, getDatabase, getDefaultCatalogPattern, getDefaultSchemaPattern, getDefaultTablePattern, getDefaultTableTypes, getPlatformInfo, initColumnsForColumn, initColumnsForFK, initColumnsForIndex, initColumnsForPK, initColumnsForTable, isInternalForeignKeyIndex, isInternalPrimaryKeyIndex, matches, readColumn, readColumns, readForeignKey, readForeignKeys, readIndices, readPrimaryKeyName, readPrimaryKeyNames, 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

FirebirdModelReader

public FirebirdModelReader(PlatformInfo platformInfo)
Creates a new model reader for Firebird databases.

Parameters:
platformInfo - The platform specific settings
Method Detail

readIndex

protected void readIndex(DatabaseMetaDataWrapper metaData,
                         Map values,
                         Map knownIndices)
                  throws SQLException
Reads the next index spec from the result set.

Overrides:
readIndex in class JdbcModelReader
Parameters:
metaData - The database meta data
values - The index meta data as defined by JdbcModelReader.getColumnsForIndex()
knownIndices - The already read indices for the current table
Throws:
SQLException

readTable

protected Table readTable(DatabaseMetaDataWrapper metaData,
                          Map values)
                   throws SQLException
Reads the next table from the meta data.

Overrides:
readTable in class JdbcModelReader
Parameters:
metaData - The database meta data
values - The table metadata values as defined by JdbcModelReader.getColumnsForTable()
Returns:
The table or null if the result set row did not contain a valid table
Throws:
SQLException

determineAutoIncrementFromResultSetMetaData

protected void determineAutoIncrementFromResultSetMetaData(Table table,
                                                           Column[] columnsToCheck)
                                                    throws SQLException
Helper method that determines the auto increment status for the given columns via the ResultSetMetaData.isAutoIncrement(int) method.

Overrides:
determineAutoIncrementFromResultSetMetaData in class JdbcModelReader
Parameters:
table - The table
columnsToCheck - The columns to check (e.g. the primary key columns)
Throws:
SQLException


Copyright © 2005 Apache Software Foundation. All Rights Reserved.