org.apache.ddlutils.platform.mysql
Class MySql50ModelReader

java.lang.Object
  extended by org.apache.ddlutils.platform.JdbcModelReader
      extended by org.apache.ddlutils.platform.mysql.MySqlModelReader
          extended by org.apache.ddlutils.platform.mysql.MySql50ModelReader

public class MySql50ModelReader
extends MySqlModelReader

Reads a database model from a MySql 5 database.

Version:
$Revision: $

Constructor Summary
MySql50ModelReader(Platform platform)
          Creates a new model reader for MySql 5 databases.
 
Method Summary
protected  Column readColumn(DatabaseMetaDataWrapper metaData, Map values)
          Extracts a column definition from the result set.
 
Methods inherited from class org.apache.ddlutils.platform.mysql.MySqlModelReader
isInternalForeignKeyIndex, isInternalPrimaryKeyIndex, readTable
 
Methods inherited from class org.apache.ddlutils.platform.JdbcModelReader
determineAutoIncrementFromResultSetMetaData, determineSchemaOf, getColumnsForColumn, getColumnsForFK, getColumnsForIndex, getColumnsForPK, getColumnsForTable, getConnection, getDatabase, getDatabase, getDefaultCatalogPattern, getDefaultColumnPattern, getDefaultSchemaPattern, getDefaultTablePattern, getDefaultTableTypes, getPlatform, getPlatformInfo, initColumnsForColumn, initColumnsForFK, initColumnsForIndex, initColumnsForPK, initColumnsForTable, matches, readColumns, readColumns, readForeignKey, readForeignKeys, readIndex, readIndices, readPrimaryKeyName, readPrimaryKeyNames, readTables, removeInternalForeignKeyIndex, removeInternalPrimaryKeyIndex, removeSystemIndices, setDefaultCatalogPattern, setDefaultColumnPattern, setDefaultSchemaPattern, setDefaultTablePattern, setDefaultTableTypes, sortForeignKeys, unescape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySql50ModelReader

public MySql50ModelReader(Platform platform)
Creates a new model reader for MySql 5 databases.

Parameters:
platform - The platform that this model reader belongs to
Method Detail

readColumn

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

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


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.