Package liquibase.ext.hibernate.database
Class HibernateClassicDatabase
- java.lang.Object
-
- liquibase.database.AbstractJdbcDatabase
-
- liquibase.ext.hibernate.database.HibernateDatabase
-
- liquibase.ext.hibernate.database.HibernateClassicDatabase
-
- All Implemented Interfaces:
liquibase.database.Database,liquibase.servicelocator.PrioritizedService
public class HibernateClassicDatabase extends HibernateDatabase
Database implementation for "classic" hibernate configurations.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.hibernate.cfg.Configurationconfiguration-
Fields inherited from class liquibase.ext.hibernate.database.HibernateDatabase
DEFAULT_SCHEMA, dialect
-
Fields inherited from class liquibase.database.AbstractJdbcDatabase
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased
-
-
Constructor Summary
Constructors Constructor Description HibernateClassicDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.boot.MetadatabuildMetadataFromPath()Called byHibernateDatabase.buildMetadata()when aCustomMetadataFactoryis not configured.protected voidconfigureSources(org.hibernate.boot.MetadataSources sources)Adds any implementation-specific sources to the givenMetadataSourcesprotected StringfindDialectName()Called byHibernateDatabase.createMetadataSources()to determine the correct dialect name based on url parameters, configuration files, etc.protected StringgetDefaultDatabaseProductName()StringgetShortName()booleanisCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn)-
Methods inherited from class liquibase.ext.hibernate.database.HibernateDatabase
afterSetup, buildMetadata, configureImplicitNamingStrategy, configureMetadataBuilder, configureNewIdentifierGeneratorSupport, configurePhysicalNamingStrategy, createMetadataSources, createsIndexesForForeignKeys, getConnectionCatalogName, getConnectionSchemaName, getDefaultCatalogName, getDefaultDriver, getDefaultPort, getDefaultSchemaName, getDialect, getHibernateConnection, getMetadata, getPriority, getProperty, isCaseSensitive, isSafeToRunUpdate, requiresPassword, requiresUsername, setConnection, supportsCatalogs, supportsInitiallyDeferrableColumns, supportsSchemas, supportsTablespaces
-
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, 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, validate
-
-
-
-
Method Detail
-
isCorrectDatabaseImplementation
public boolean isCorrectDatabaseImplementation(liquibase.database.DatabaseConnection conn) throws liquibase.exception.DatabaseException- Throws:
liquibase.exception.DatabaseException
-
findDialectName
protected String findDialectName()
Description copied from class:HibernateDatabaseCalled byHibernateDatabase.createMetadataSources()to determine the correct dialect name based on url parameters, configuration files, etc.- Overrides:
findDialectNamein classHibernateDatabase
-
buildMetadataFromPath
protected org.hibernate.boot.Metadata buildMetadataFromPath() throws liquibase.exception.DatabaseExceptionDescription copied from class:HibernateDatabaseCalled byHibernateDatabase.buildMetadata()when aCustomMetadataFactoryis not configured. Default implementation passes the results ofHibernateDatabase.createMetadataSources()toHibernateDatabase.configureSources(MetadataSources)and then callsHibernateDatabase.configureMetadataBuilder(MetadataBuilder)but this method can be overridden with any provider-specific implementations needed.- Overrides:
buildMetadataFromPathin classHibernateDatabase- Throws:
liquibase.exception.DatabaseException
-
configureSources
protected void configureSources(org.hibernate.boot.MetadataSources sources) throws liquibase.exception.DatabaseExceptionDescription copied from class:HibernateDatabaseAdds any implementation-specific sources to the givenMetadataSources- Specified by:
configureSourcesin classHibernateDatabase- Throws:
liquibase.exception.DatabaseException
-
getShortName
public String getShortName()
-
getDefaultDatabaseProductName
protected String getDefaultDatabaseProductName()
- Specified by:
getDefaultDatabaseProductNamein classliquibase.database.AbstractJdbcDatabase
-
-