Package liquibase.ext.hibernate.database
Class HibernateEjb3Database
java.lang.Object
liquibase.database.AbstractJdbcDatabase
liquibase.ext.hibernate.database.HibernateDatabase
liquibase.ext.hibernate.database.HibernateEjb3Database
- All Implemented Interfaces:
AutoCloseable,liquibase.database.Database,liquibase.servicelocator.PrioritizedService
- Direct Known Subclasses:
JpaPersistenceDatabase
Database implementation for "ejb3" hibernate configurations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerFactoryFields inherited from class liquibase.ext.hibernate.database.HibernateDatabase
DEFAULT_SCHEMA, dialectFields inherited from class liquibase.database.AbstractJdbcDatabase
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercasedFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.hibernate.boot.MetadataCallscreateEntityManagerFactoryBuilder()to create and save the entity manager factory.protected voidconfigureSources(org.hibernate.boot.MetadataSources sources) Adds sources based on what is in the saved entityManagerFactoryprotected org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImplprotected StringCalled byHibernateDatabase.createMetadataSources()to determine the correct dialect name based on url parameters, configuration files, etc.protected StringgetProperty(String name) Returns the value of the given property.booleanisCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn) Methods inherited from class liquibase.ext.hibernate.database.HibernateDatabase
afterSetup, buildMetadata, configureImplicitNamingStrategy, configureMetadataBuilder, configurePhysicalNamingStrategy, createMetadataSources, createsIndexesForForeignKeys, getConnectionCatalogName, getConnectionSchemaName, getDefaultCatalogName, getDefaultDriver, getDefaultPort, getDefaultSchemaName, getDialect, getHibernateConnection, getMetadata, getPriority, isCaseSensitive, isSafeToRunUpdate, requiresPassword, requiresUsername, setConnection, supportsCatalogs, supportsInitiallyDeferrableColumns, supportsSchemas, supportsTablespacesMethods 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, getRunStatus, getSchemaAndCatalogCase, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getSystemViews, getTimeLiteral, getViewDefinition, hashCode, isAutoCommit, 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, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogInObjectName, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSequences, tag, toString, unescapeDataTypeName, unescapeDataTypeString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface liquibase.database.Database
getDisplayName
-
Field Details
-
entityManagerFactory
protected jakarta.persistence.EntityManagerFactory entityManagerFactory
-
-
Constructor Details
-
HibernateEjb3Database
public HibernateEjb3Database()
-
-
Method Details
-
getShortName
-
getDefaultDatabaseProductName
- Specified by:
getDefaultDatabaseProductNamein classliquibase.database.AbstractJdbcDatabase
-
isCorrectDatabaseImplementation
public boolean isCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn) throws liquibase.exception.DatabaseException - Throws:
liquibase.exception.DatabaseException
-
buildMetadataFromPath
protected org.hibernate.boot.Metadata buildMetadataFromPath() throws liquibase.exception.DatabaseExceptionCallscreateEntityManagerFactoryBuilder()to create and save the entity manager factory.- Overrides:
buildMetadataFromPathin classHibernateDatabase- Throws:
liquibase.exception.DatabaseException
-
createEntityManagerFactoryBuilder
protected org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl createEntityManagerFactoryBuilder() -
getProperty
Description copied from class:HibernateDatabaseReturns the value of the given property. Should return the value given as a connection URL first, then fall back to configuration-specific values.- Overrides:
getPropertyin classHibernateDatabase
-
findDialectName
Description copied from class:HibernateDatabaseCalled byHibernateDatabase.createMetadataSources()to determine the correct dialect name based on url parameters, configuration files, etc.- Overrides:
findDialectNamein classHibernateDatabase
-
configureSources
protected void configureSources(org.hibernate.boot.MetadataSources sources) throws liquibase.exception.DatabaseException Adds sources based on what is in the saved entityManagerFactory- Specified by:
configureSourcesin classHibernateDatabase- Throws:
liquibase.exception.DatabaseException
-