liquibase.ext.hibernate.snapshot
Class HibernateDatabaseSnapshotGenerator

java.lang.Object
  extended by liquibase.ext.hibernate.snapshot.HibernateDatabaseSnapshotGenerator
All Implemented Interfaces:
liquibase.snapshot.DatabaseSnapshotGenerator

public class HibernateDatabaseSnapshotGenerator
extends Object
implements liquibase.snapshot.DatabaseSnapshotGenerator


Field Summary
 
Fields inherited from interface liquibase.snapshot.DatabaseSnapshotGenerator
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
HibernateDatabaseSnapshotGenerator()
           
 
Method Summary
 liquibase.snapshot.DatabaseSnapshot createSnapshot(liquibase.database.Database passed, String schema, Set<liquibase.diff.DiffStatusListener> listeners)
           
 liquibase.database.structure.Column getColumn(String schemaName, String tableName, String columnName, liquibase.database.Database database)
           
 liquibase.database.Database getDatabase()
           
 liquibase.database.structure.Table getDatabaseChangeLogLockTable(liquibase.database.Database database)
           
 liquibase.database.structure.Table getDatabaseChangeLogTable()
           
 liquibase.database.structure.Table getDatabaseChangeLogTable(liquibase.database.Database database)
           
 liquibase.database.structure.ForeignKey getForeignKeyByForeignKeyTable(String schemaName, String tableName, String fkName, liquibase.database.Database database)
           
 List<liquibase.database.structure.ForeignKey> getForeignKeys(String schemaName, String tableName, liquibase.database.Database database)
           
 int getPriority(liquibase.database.Database database)
           
 liquibase.database.structure.Table getTable(String schemaName, String tableName, liquibase.database.Database database)
           
 boolean hasDatabaseChangeLogLockTable()
           
 boolean hasDatabaseChangeLogLockTable(liquibase.database.Database database)
           
 boolean hasDatabaseChangeLogTable(liquibase.database.Database database)
           
 boolean hasIndex(String s, String s1, String s2, liquibase.database.Database database)
           
 boolean hasIndex(String s, String s1, String s2, liquibase.database.Database database, String s3)
           
 boolean hasTable(String schemaName, String tableName, liquibase.database.Database database)
           
 boolean hasView(String s, String s2, liquibase.database.Database database)
           
 boolean supports(liquibase.database.Database database)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateDatabaseSnapshotGenerator

public HibernateDatabaseSnapshotGenerator()
Method Detail

getDatabaseChangeLogTable

public liquibase.database.structure.Table getDatabaseChangeLogTable(liquibase.database.Database database)
                                                             throws liquibase.exception.DatabaseException
Specified by:
getDatabaseChangeLogTable in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

getDatabaseChangeLogLockTable

public liquibase.database.structure.Table getDatabaseChangeLogLockTable(liquibase.database.Database database)
                                                                 throws liquibase.exception.DatabaseException
Specified by:
getDatabaseChangeLogLockTable in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

getTable

public liquibase.database.structure.Table getTable(String schemaName,
                                                   String tableName,
                                                   liquibase.database.Database database)
                                            throws liquibase.exception.DatabaseException
Specified by:
getTable in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

getColumn

public liquibase.database.structure.Column getColumn(String schemaName,
                                                     String tableName,
                                                     String columnName,
                                                     liquibase.database.Database database)
                                              throws liquibase.exception.DatabaseException
Specified by:
getColumn in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

hasIndex

public boolean hasIndex(String s,
                        String s1,
                        String s2,
                        liquibase.database.Database database)
                 throws liquibase.exception.DatabaseException
Throws:
liquibase.exception.DatabaseException

hasDatabaseChangeLogTable

public boolean hasDatabaseChangeLogTable(liquibase.database.Database database)
Specified by:
hasDatabaseChangeLogTable in interface liquibase.snapshot.DatabaseSnapshotGenerator

hasDatabaseChangeLogLockTable

public boolean hasDatabaseChangeLogLockTable(liquibase.database.Database database)
Specified by:
hasDatabaseChangeLogLockTable in interface liquibase.snapshot.DatabaseSnapshotGenerator

hasTable

public boolean hasTable(String schemaName,
                        String tableName,
                        liquibase.database.Database database)
Specified by:
hasTable in interface liquibase.snapshot.DatabaseSnapshotGenerator

hasView

public boolean hasView(String s,
                       String s2,
                       liquibase.database.Database database)
Specified by:
hasView in interface liquibase.snapshot.DatabaseSnapshotGenerator

getForeignKeyByForeignKeyTable

public liquibase.database.structure.ForeignKey getForeignKeyByForeignKeyTable(String schemaName,
                                                                              String tableName,
                                                                              String fkName,
                                                                              liquibase.database.Database database)
                                                                       throws liquibase.exception.DatabaseException
Specified by:
getForeignKeyByForeignKeyTable in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

getForeignKeys

public List<liquibase.database.structure.ForeignKey> getForeignKeys(String schemaName,
                                                                    String tableName,
                                                                    liquibase.database.Database database)
                                                             throws liquibase.exception.DatabaseException
Specified by:
getForeignKeys in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

createSnapshot

public liquibase.snapshot.DatabaseSnapshot createSnapshot(liquibase.database.Database passed,
                                                          String schema,
                                                          Set<liquibase.diff.DiffStatusListener> listeners)
                                                   throws liquibase.exception.DatabaseException
Specified by:
createSnapshot in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException

supports

public boolean supports(liquibase.database.Database database)
Specified by:
supports in interface liquibase.snapshot.DatabaseSnapshotGenerator

getPriority

public int getPriority(liquibase.database.Database database)
Specified by:
getPriority in interface liquibase.snapshot.DatabaseSnapshotGenerator

hasDatabaseChangeLogLockTable

public boolean hasDatabaseChangeLogLockTable()

getDatabaseChangeLogTable

public liquibase.database.structure.Table getDatabaseChangeLogTable()

getDatabase

public liquibase.database.Database getDatabase()

hasIndex

public boolean hasIndex(String s,
                        String s1,
                        String s2,
                        liquibase.database.Database database,
                        String s3)
                 throws liquibase.exception.DatabaseException
Specified by:
hasIndex in interface liquibase.snapshot.DatabaseSnapshotGenerator
Throws:
liquibase.exception.DatabaseException


Copyright © 2013 Liquibase.org. All Rights Reserved.