liquibase.ext.hibernate.snapshot
Class HibernateSnapshotGenerator

java.lang.Object
  extended by liquibase.ext.hibernate.snapshot.HibernateSnapshotGenerator
All Implemented Interfaces:
liquibase.snapshot.SnapshotGenerator
Direct Known Subclasses:
CatalogSnapshotGenerator, ColumnSnapshotGenerator, ForeignKeySnapshotGenerator, IndexSnapshotGenerator, PrimaryKeySnapshotGenerator, SchemaSnapshotGenerator, SequenceSnapshotGenerator, TableSnapshotGenerator, UniqueConstraintSnapshotGenerator, ViewSnapshotGenerator

public abstract class HibernateSnapshotGenerator
extends Object
implements liquibase.snapshot.SnapshotGenerator

Base class for all Hibernate SnapshotGenerators


Field Summary
protected static liquibase.logging.Logger LOG
           
 
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
 
Constructor Summary
protected HibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor)
           
protected HibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor, Class<? extends liquibase.structure.DatabaseObject>[] addsTo)
           
 
Method Summary
 Class<? extends liquibase.structure.DatabaseObject>[] addsTo()
           
protected abstract  void addTo(liquibase.structure.DatabaseObject foundObject, liquibase.snapshot.DatabaseSnapshot snapshot)
           
protected  org.hibernate.mapping.Table findHibernateTable(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)
           
 int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType, liquibase.database.Database database)
           
 Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()
           
 liquibase.structure.DatabaseObject snapshot(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot, liquibase.snapshot.SnapshotGeneratorChain chain)
           
protected abstract  liquibase.structure.DatabaseObject snapshotObject(liquibase.structure.DatabaseObject example, liquibase.snapshot.DatabaseSnapshot snapshot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final liquibase.logging.Logger LOG
Constructor Detail

HibernateSnapshotGenerator

protected HibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor)

HibernateSnapshotGenerator

protected HibernateSnapshotGenerator(Class<? extends liquibase.structure.DatabaseObject> defaultFor,
                                     Class<? extends liquibase.structure.DatabaseObject>[] addsTo)
Method Detail

replaces

public Class<? extends liquibase.snapshot.SnapshotGenerator>[] replaces()
Specified by:
replaces in interface liquibase.snapshot.SnapshotGenerator

getPriority

public final int getPriority(Class<? extends liquibase.structure.DatabaseObject> objectType,
                             liquibase.database.Database database)
Specified by:
getPriority in interface liquibase.snapshot.SnapshotGenerator

addsTo

public final Class<? extends liquibase.structure.DatabaseObject>[] addsTo()
Specified by:
addsTo in interface liquibase.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:
snapshot in interface liquibase.snapshot.SnapshotGenerator
Throws:
liquibase.exception.DatabaseException
liquibase.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.DatabaseException
liquibase.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.DatabaseException
liquibase.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


Copyright © 2015 Liquibase.org. All rights reserved.