liquibase.snapshot
Interface DatabaseSnapshotGenerator

All Known Implementing Classes:
DB2DatabaseSnapshotGenerator, DerbyDatabaseSnapshotGenerator, H2DatabaseSnapshotGenerator, HsqlDatabaseSnapshotGenerator, InformixDatabaseSnapshotGenerator, JdbcDatabaseSnapshotGenerator, MSSQLDatabaseSnapshotGenerator, MySQLDatabaseSnapshotGenerator, OracleDatabaseSnapshotGenerator, PostgresDatabaseSnapshotGenerator, SQLiteDatabaseSnapshotGenerator, StandardJdbcDatabaseSnapshotGenerator

public interface DatabaseSnapshotGenerator


Field Summary
static int PRIORITY_DATABASE
          Generator specific to database, higher priority.
static int PRIORITY_DEFAULT
          Default generator, lower priority.
 
Method Summary
 DatabaseSnapshot createSnapshot(Database database, String schema, Set<DiffStatusListener> listeners)
           
 Column getColumn(String schemaName, String tableName, String columnName, Database database)
           
 Table getDatabaseChangeLogLockTable(Database database)
           
 Table getDatabaseChangeLogTable(Database database)
           
 ForeignKey getForeignKeyByForeignKeyTable(String schemaName, String tableName, String fkName, Database database)
           
 List<ForeignKey> getForeignKeys(String schemaName, String tableName, Database database)
           
 int getPriority(Database database)
           
 Table getTable(String schemaName, String tableName, Database database)
           
 boolean hasDatabaseChangeLogLockTable(Database database)
           
 boolean hasDatabaseChangeLogTable(Database database)
           
 boolean hasIndex(String schemaName, String tableName, String indexName, Database database, String columnNames)
           
 boolean hasTable(String schemaName, String tableName, Database database)
           
 boolean hasView(String schemaName, String viewName, Database database)
           
 boolean supports(Database database)
           
 

Field Detail

PRIORITY_DEFAULT

static final int PRIORITY_DEFAULT
Default generator, lower priority.

See Also:
Constant Field Values

PRIORITY_DATABASE

static final int PRIORITY_DATABASE
Generator specific to database, higher priority.

See Also:
Constant Field Values
Method Detail

supports

boolean supports(Database database)

getPriority

int getPriority(Database database)

createSnapshot

DatabaseSnapshot createSnapshot(Database database,
                                String schema,
                                Set<DiffStatusListener> listeners)
                                throws DatabaseException
Throws:
DatabaseException

getDatabaseChangeLogTable

Table getDatabaseChangeLogTable(Database database)
                                throws DatabaseException
Throws:
DatabaseException

getDatabaseChangeLogLockTable

Table getDatabaseChangeLogLockTable(Database database)
                                    throws DatabaseException
Throws:
DatabaseException

getTable

Table getTable(String schemaName,
               String tableName,
               Database database)
               throws DatabaseException
Throws:
DatabaseException

getColumn

Column getColumn(String schemaName,
                 String tableName,
                 String columnName,
                 Database database)
                 throws DatabaseException
Throws:
DatabaseException

getForeignKeyByForeignKeyTable

ForeignKey getForeignKeyByForeignKeyTable(String schemaName,
                                          String tableName,
                                          String fkName,
                                          Database database)
                                          throws DatabaseException
Throws:
DatabaseException

getForeignKeys

List<ForeignKey> getForeignKeys(String schemaName,
                                String tableName,
                                Database database)
                                throws DatabaseException
Throws:
DatabaseException

hasIndex

boolean hasIndex(String schemaName,
                 String tableName,
                 String indexName,
                 Database database,
                 String columnNames)
                 throws DatabaseException
Throws:
DatabaseException

hasDatabaseChangeLogTable

boolean hasDatabaseChangeLogTable(Database database)

hasDatabaseChangeLogLockTable

boolean hasDatabaseChangeLogLockTable(Database database)

hasTable

boolean hasTable(String schemaName,
                 String tableName,
                 Database database)

hasView

boolean hasView(String schemaName,
                String viewName,
                Database database)


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.