Class HibernateSpringPackageDatabase

All Implemented Interfaces:
AutoCloseable, liquibase.database.Database, liquibase.servicelocator.PrioritizedService

public class HibernateSpringPackageDatabase extends JpaPersistenceDatabase
Database implementation for "spring" hibernate configurations that scans packages. If specifying a bean, HibernateSpringBeanDatabase is used.
  • Field Summary

    Fields inherited from class liquibase.ext.hibernate.database.HibernateEjb3Database

    entityManagerFactory

    Fields inherited from class liquibase.ext.hibernate.database.HibernateDatabase

    DEFAULT_SCHEMA, dialect, HIBERNATE_TEMP_USE_JDBC_METADATA_DEFAULTS

    Fields inherited from class liquibase.database.AbstractJdbcDatabase

    caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased

    Fields inherited from interface liquibase.database.Database

    COMPLETE_SQL_SCOPE_KEY

    Fields inherited from interface liquibase.servicelocator.PrioritizedService

    COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl
     
    protected String
     
    int
     
     
    boolean
    isCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn)
     
    protected boolean
    isXmlFile(liquibase.database.DatabaseConnection connection)
    Return true if the given path is a spring XML file.

    Methods inherited from class liquibase.ext.hibernate.database.JpaPersistenceDatabase

    getDefaultDriver

    Methods inherited from class liquibase.ext.hibernate.database.HibernateEjb3Database

    buildMetadataFromPath, configureSources, findDialectName, getProperty

    Methods inherited from class liquibase.database.AbstractJdbcDatabase

    addReservedWords, canCreateChangeLogTable, close, commit, correctObjectName, correctSchema, correctSchema, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, equals, escapeColumnName, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeDataTypeName, escapeIndexName, escapeObjectName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateAutoIncrementBy, generateAutoIncrementStartWith, generateDatabaseFunctionValue, generatePrimaryKeyName, get, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionSchemaNameCallStatement, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getMaxFractionalDigitsForTimestamp, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getQuotingEndCharacter, getQuotingEndReplacement, getQuotingStartCharacter, getRanChangeSet, getRanChangeSetList, getRanDate, getRawDatabaseChangeLogLockTableName, getRawDatabaseChangeLogTableName, getRunStatus, getSchemaAndCatalogCase, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getSystemViews, getTimeLiteral, getViewDefinition, hashCode, isAutoCommit, isCatalogOrSchemaType, isCurrentTimeFunction, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isReservedWord, isSystemObject, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, requiresExplicitNullForColumns, resetInternalState, rollback, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, setPreviousAutoCommit, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogInObjectName, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSequences, tag, toString, unescapeDataTypeName, unescapeDataTypeString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface liquibase.database.Database

    addCompleteSqlToScope, afterUpdate, checkDatabaseConnection, dropDatabaseObjects, failOnDefferable, generateConnectCommandSuccessMessage, getDisplayName, supports, supportsCreateIfNotExists, supportsDatabaseChangeLogHistory, temporarilySetObjectQuotingStrategy
  • Constructor Details

    • HibernateSpringPackageDatabase

      public HibernateSpringPackageDatabase()
  • Method Details

    • isCorrectDatabaseImplementation

      public boolean isCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn) throws liquibase.exception.DatabaseException
      Specified by:
      isCorrectDatabaseImplementation in interface liquibase.database.Database
      Overrides:
      isCorrectDatabaseImplementation in class JpaPersistenceDatabase
      Throws:
      liquibase.exception.DatabaseException
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface liquibase.servicelocator.PrioritizedService
      Overrides:
      getPriority in class HibernateDatabase
    • isXmlFile

      protected boolean isXmlFile(liquibase.database.DatabaseConnection connection)
      Return true if the given path is a spring XML file.
    • createEntityManagerFactoryBuilder

      protected org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl createEntityManagerFactoryBuilder()
      Overrides:
      createEntityManagerFactoryBuilder in class JpaPersistenceDatabase
    • getShortName

      public String getShortName()
      Specified by:
      getShortName in interface liquibase.database.Database
      Overrides:
      getShortName in class JpaPersistenceDatabase
    • getDefaultDatabaseProductName

      protected String getDefaultDatabaseProductName()
      Overrides:
      getDefaultDatabaseProductName in class JpaPersistenceDatabase