liquibase.database.structure
Class MySqlDatabaseSnapshot

java.lang.Object
  extended by liquibase.database.structure.SqlDatabaseSnapshot
      extended by liquibase.database.structure.MySqlDatabaseSnapshot
All Implemented Interfaces:
DatabaseSnapshot

public class MySqlDatabaseSnapshot
extends SqlDatabaseSnapshot


Field Summary
 
Fields inherited from class liquibase.database.structure.SqlDatabaseSnapshot
columns, columnsMap, database, databaseMetaData, foreignKeys, indexes, log, primaryKeys, sequences, tables, tablesMap, uniqueConstraints, views, viewsMap
 
Constructor Summary
MySqlDatabaseSnapshot()
          Creates an empty database snapshot
MySqlDatabaseSnapshot(Database database)
          Creates a snapshot of the given database with no status listeners
MySqlDatabaseSnapshot(Database database, java.util.Set<DiffStatusListener> statusListeners)
          Creates a snapshot of the given database.
MySqlDatabaseSnapshot(Database database, java.util.Set<DiffStatusListener> statusListeners, java.lang.String requestedSchema)
          Creates a snapshot of the given database.
MySqlDatabaseSnapshot(Database database, java.lang.String schema)
          Creates a snapshot of the given database with no status listeners
 
Method Summary
protected  java.lang.String convertPrimaryKeyName(java.lang.String pkName)
           
protected  void getColumnTypeAndDefValue(Column columnInfo, java.sql.ResultSet rs, Database database)
          MySQL specific implementation
 
Methods inherited from class liquibase.database.structure.SqlDatabaseSnapshot
convertFromDatabaseName, getColumn, getColumn, getColumns, getDatabase, getForeignKey, getForeignKeys, getIndex, getIndexes, getPrimaryKey, getPrimaryKeyForTable, getPrimaryKeys, getSchema, getSequence, getSequences, getTable, getTables, getUniqueConstraint, getUniqueConstraints, getView, getViews, hasDatabaseChangeLogTable, isPrimaryKey, readColumns, readForeignKeyInformation, readIndexes, readPrimaryKeys, readSequences, readTablesAndViews, readUniqueConstraints, updateListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlDatabaseSnapshot

public MySqlDatabaseSnapshot()
Creates an empty database snapshot


MySqlDatabaseSnapshot

public MySqlDatabaseSnapshot(Database database)
                      throws JDBCException
Creates a snapshot of the given database with no status listeners

Throws:
JDBCException

MySqlDatabaseSnapshot

public MySqlDatabaseSnapshot(Database database,
                             java.lang.String schema)
                      throws JDBCException
Creates a snapshot of the given database with no status listeners

Throws:
JDBCException

MySqlDatabaseSnapshot

public MySqlDatabaseSnapshot(Database database,
                             java.util.Set<DiffStatusListener> statusListeners)
                      throws JDBCException
Creates a snapshot of the given database.

Throws:
JDBCException

MySqlDatabaseSnapshot

public MySqlDatabaseSnapshot(Database database,
                             java.util.Set<DiffStatusListener> statusListeners,
                             java.lang.String requestedSchema)
                      throws JDBCException
Creates a snapshot of the given database.

Throws:
JDBCException
Method Detail

getColumnTypeAndDefValue

protected void getColumnTypeAndDefValue(Column columnInfo,
                                        java.sql.ResultSet rs,
                                        Database database)
                                 throws java.sql.SQLException,
                                        JDBCException
MySQL specific implementation

Overrides:
getColumnTypeAndDefValue in class SqlDatabaseSnapshot
Throws:
java.sql.SQLException
JDBCException

convertPrimaryKeyName

protected java.lang.String convertPrimaryKeyName(java.lang.String pkName)
                                          throws java.sql.SQLException
Overrides:
convertPrimaryKeyName in class SqlDatabaseSnapshot
Throws:
java.sql.SQLException