liquibase.snapshot
Class DatabaseSnapshot

java.lang.Object
  extended by liquibase.snapshot.DatabaseSnapshot

public class DatabaseSnapshot
extends Object


Constructor Summary
DatabaseSnapshot(Database database, String requestedSchema)
           
 
Method Summary
 Column getColumn(String tableName, String columnName)
           
 Collection<Column> getColumns()
           
 Database getDatabase()
           
 Table getDatabaseChangeLogLockTable()
           
 Table getDatabaseChangeLogTable()
           
 ForeignKey getForeignKey(String foreignKeyName)
           
 Set<ForeignKey> getForeignKeys()
           
 Index getIndex(String indexName)
           
 Set<Index> getIndexes()
           
 PrimaryKey getPrimaryKey(String pkName)
           
 PrimaryKey getPrimaryKeyForTable(String tableName)
           
 Set<PrimaryKey> getPrimaryKeys()
           
 String getSchema()
           
 Sequence getSequence(String sequenceName)
           
 Set<Sequence> getSequences()
           
 Table getTable(String tableName)
           
 Set<Table> getTables()
           
 UniqueConstraint getUniqueConstraint(String ucName)
           
 Set<UniqueConstraint> getUniqueConstraints()
           
 View getView(String viewName)
           
 Set<View> getViews()
           
 boolean hasDatabaseChangeLogTable()
           
 boolean isPrimaryKey(Column columnInfo)
           
 void setDatabaseChangeLogLockTable(Table table)
           
 void setDatabaseChangeLogTable(Table table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseSnapshot

public DatabaseSnapshot(Database database,
                        String requestedSchema)
Method Detail

getDatabase

public Database getDatabase()

getTables

public Set<Table> getTables()

getViews

public Set<View> getViews()

getForeignKeys

public Set<ForeignKey> getForeignKeys()

getIndexes

public Set<Index> getIndexes()

getPrimaryKeys

public Set<PrimaryKey> getPrimaryKeys()

getSequences

public Set<Sequence> getSequences()

getUniqueConstraints

public Set<UniqueConstraint> getUniqueConstraints()

getTable

public Table getTable(String tableName)

getForeignKey

public ForeignKey getForeignKey(String foreignKeyName)

getSequence

public Sequence getSequence(String sequenceName)

getIndex

public Index getIndex(String indexName)

getView

public View getView(String viewName)

getPrimaryKey

public PrimaryKey getPrimaryKey(String pkName)

getPrimaryKeyForTable

public PrimaryKey getPrimaryKeyForTable(String tableName)

getUniqueConstraint

public UniqueConstraint getUniqueConstraint(String ucName)

getSchema

public String getSchema()

isPrimaryKey

public boolean isPrimaryKey(Column columnInfo)

getColumns

public Collection<Column> getColumns()

getColumn

public Column getColumn(String tableName,
                        String columnName)

hasDatabaseChangeLogTable

public boolean hasDatabaseChangeLogTable()

getDatabaseChangeLogTable

public Table getDatabaseChangeLogTable()

setDatabaseChangeLogTable

public void setDatabaseChangeLogTable(Table table)

getDatabaseChangeLogLockTable

public Table getDatabaseChangeLogLockTable()

setDatabaseChangeLogLockTable

public void setDatabaseChangeLogLockTable(Table table)


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