Package liquibase.ext.hibernate.snapshot
Class HibernateSnapshotGenerator
java.lang.Object
liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
- All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator
- Direct Known Subclasses:
CatalogSnapshotGenerator,ColumnSnapshotGenerator,ForeignKeySnapshotGenerator,IndexSnapshotGenerator,PrimaryKeySnapshotGenerator,SchemaSnapshotGenerator,SequenceSnapshotGenerator,TableSnapshotGenerator,ViewSnapshotGenerator
public abstract class HibernateSnapshotGenerator
extends Object
implements liquibase.snapshot.SnapshotGenerator
Base class for all Hibernate SnapshotGenerators
-
Field Summary
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor) protectedHibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor, Class<? extends liquibase.structure.DatabaseObject>[] addsTo) -
Method Summary
Modifier and TypeMethodDescriptionfinal Class<? extends liquibase.structure.DatabaseObject>[]addsTo()protected abstract voidaddTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot) protected org.hibernate.mapping.TablefindHibernateTable(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) final intgetPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) Class<? extends liquibase.snapshot.SnapshotGenerator>[]replaces()final liquibase.structure.DatabaseObjectsnapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain) protected abstract liquibase.structure.DatabaseObjectsnapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)
-
Constructor Details
-
HibernateSnapshotGenerator
protected HibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor) -
HibernateSnapshotGenerator
-
-
Method Details
-
replaces
- Specified by:
replacesin interfaceliquibase.snapshot.SnapshotGenerator
-
getPriority
public final int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database) - Specified by:
getPriorityin interfaceliquibase.snapshot.SnapshotGenerator
-
addsTo
- Specified by:
addsToin interfaceliquibase.snapshot.SnapshotGenerator
-
snapshot
public final liquibase.structure.DatabaseObject snapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException - Specified by:
snapshotin interfaceliquibase.snapshot.SnapshotGenerator- Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
snapshotObject
protected abstract liquibase.structure.DatabaseObject snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException - Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
addTo
protected abstract void addTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException, liquibase.snapshot.InvalidExampleException - Throws:
liquibase.exception.DatabaseExceptionliquibase.snapshot.InvalidExampleException
-
findHibernateTable
protected org.hibernate.mapping.Table findHibernateTable(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-