liquibase.database.structure
Class SQLiteDatabaseSnapshot

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

public class SQLiteDatabaseSnapshot
extends SqlDatabaseSnapshot


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

Constructor Detail

SQLiteDatabaseSnapshot

public SQLiteDatabaseSnapshot()
Creates an empty database snapshot


SQLiteDatabaseSnapshot

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

Throws:
JDBCException

SQLiteDatabaseSnapshot

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

Throws:
JDBCException

SQLiteDatabaseSnapshot

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

Throws:
JDBCException

SQLiteDatabaseSnapshot

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

Throws:
JDBCException
Method Detail

readTablesAndViews

protected void readTablesAndViews(java.lang.String schema)
                           throws java.sql.SQLException,
                                  JDBCException
SQLite specific implementation

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

readForeignKeyInformation

protected void readForeignKeyInformation(java.lang.String schema)
                                  throws JDBCException,
                                         java.sql.SQLException
SQLite specific implementation

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

readPrimaryKeys

protected void readPrimaryKeys(java.lang.String schema)
                        throws JDBCException,
                               java.sql.SQLException
SQLite specific implementation

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

readColumns

protected void readColumns(java.lang.String schema)
                    throws java.sql.SQLException,
                           JDBCException
Overrides:
readColumns in class SqlDatabaseSnapshot
Throws:
java.sql.SQLException
JDBCException

readIndexes

protected void readIndexes(java.lang.String schema)
                    throws JDBCException,
                           java.sql.SQLException
Overrides:
readIndexes in class SqlDatabaseSnapshot
Throws:
JDBCException
java.sql.SQLException

readSequences

protected void readSequences(java.lang.String schema)
                      throws JDBCException
Overrides:
readSequences in class SqlDatabaseSnapshot
Throws:
JDBCException