liquibase.database.structure
Class HibernateDatabaseSnapshot
java.lang.Object
liquibase.database.structure.HibernateDatabaseSnapshot
- All Implemented Interfaces:
- DatabaseSnapshot
public class HibernateDatabaseSnapshot
- extends java.lang.Object
- implements DatabaseSnapshot
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateDatabaseSnapshot
public HibernateDatabaseSnapshot(HibernateDatabase database)
throws JDBCException
- Throws:
JDBCException
getDatabase
public Database getDatabase()
- Specified by:
getDatabase in interface DatabaseSnapshot
getTables
public java.util.Set<Table> getTables()
- Specified by:
getTables in interface DatabaseSnapshot
getViews
public java.util.Set<View> getViews()
- Specified by:
getViews in interface DatabaseSnapshot
getColumn
public Column getColumn(Column column)
- Specified by:
getColumn in interface DatabaseSnapshot
getColumn
public Column getColumn(java.lang.String tableName,
java.lang.String columnName)
- Specified by:
getColumn in interface DatabaseSnapshot
getColumns
public java.util.Set<Column> getColumns()
- Specified by:
getColumns in interface DatabaseSnapshot
getForeignKeys
public java.util.Set<ForeignKey> getForeignKeys()
- Specified by:
getForeignKeys in interface DatabaseSnapshot
getIndexes
public java.util.Set<Index> getIndexes()
- Specified by:
getIndexes in interface DatabaseSnapshot
getPrimaryKeys
public java.util.Set<PrimaryKey> getPrimaryKeys()
- Specified by:
getPrimaryKeys in interface DatabaseSnapshot
getSequences
public java.util.Set<Sequence> getSequences()
- Specified by:
getSequences in interface DatabaseSnapshot
getTable
public Table getTable(java.lang.String tableName)
- Description copied from interface:
DatabaseSnapshot
- Returns the table object for the given tableName. If table does not exist, returns null
- Specified by:
getTable in interface DatabaseSnapshot
getForeignKey
public ForeignKey getForeignKey(java.lang.String foreignKeyName)
- Specified by:
getForeignKey in interface DatabaseSnapshot
getSequence
public Sequence getSequence(java.lang.String sequenceName)
- Specified by:
getSequence in interface DatabaseSnapshot
getIndex
public Index getIndex(java.lang.String indexName)
- Specified by:
getIndex in interface DatabaseSnapshot
getView
public View getView(java.lang.String viewName)
- Specified by:
getView in interface DatabaseSnapshot
getPrimaryKey
public PrimaryKey getPrimaryKey(java.lang.String pkName)
- Specified by:
getPrimaryKey in interface DatabaseSnapshot
getPrimaryKeyForTable
public PrimaryKey getPrimaryKeyForTable(java.lang.String tableName)
- Specified by:
getPrimaryKeyForTable in interface DatabaseSnapshot
getSchema
public java.lang.String getSchema()
- Specified by:
getSchema in interface DatabaseSnapshot
hasDatabaseChangeLogTable
public boolean hasDatabaseChangeLogTable()
- Specified by:
hasDatabaseChangeLogTable in interface DatabaseSnapshot
getUniqueConstraints
public java.util.Set<UniqueConstraint> getUniqueConstraints()
- Specified by:
getUniqueConstraints in interface DatabaseSnapshot
- See Also:
DatabaseSnapshot.getUniqueConstraints()
getUniqueConstraint
public UniqueConstraint getUniqueConstraint(java.lang.String ucName)
- Specified by:
getUniqueConstraint in interface DatabaseSnapshot
- See Also:
DatabaseSnapshot.getUniqueConstraint(java.lang.String)