public abstract class HibernateDatabase
extends liquibase.database.AbstractJdbcDatabase
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SCHEMA |
protected static liquibase.logging.Logger |
LOG |
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingEndCharacter, quotingEndReplacement, quotingStartCharacter, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased| Constructor and Description |
|---|
HibernateDatabase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterSetup()
Perform any post-configuration setting logic.
|
protected abstract org.hibernate.cfg.Configuration |
buildConfiguration(HibernateConnection conn)
Concrete implementations use this method to create the hibernate Configuration object based on the passed URL
|
protected org.hibernate.dialect.Dialect |
configureDialect()
Return the dialect used by hibernate
|
protected void |
configureNamingStrategy(org.hibernate.cfg.Configuration configuration,
HibernateConnection connection)
Configures the naming strategy use by the connection
|
boolean |
createsIndexesForForeignKeys() |
org.hibernate.cfg.Configuration |
getConfiguration() |
protected String |
getConnectionCatalogName() |
protected String |
getConnectionSchemaName() |
String |
getDefaultCatalogName() |
String |
getDefaultDriver(String url) |
Integer |
getDefaultPort() |
String |
getDefaultSchemaName() |
org.hibernate.dialect.Dialect |
getDialect() |
int |
getPriority() |
boolean |
isCaseSensitive() |
boolean |
isSafeToRunUpdate() |
boolean |
requiresPassword() |
boolean |
requiresUsername() |
void |
setConnection(liquibase.database.DatabaseConnection conn) |
boolean |
supportsCatalogs() |
boolean |
supportsInitiallyDeferrableColumns() |
boolean |
supportsSchemas() |
boolean |
supportsTablespaces() |
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, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionSchemaNameCallStatement, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultDatabaseProductName, getDefaultSchema, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getSystemViews, getTimeLiteral, getViewDefinition, hashCode, isAutoCommit, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isReservedWord, isSystemObject, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, resetInternalState, rollback, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsCatalogInObjectName, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSequences, tag, toString, unescapeDataTypeName, unescapeDataTypeString, validateprotected static final liquibase.logging.Logger LOG
public static final String DEFAULT_SCHEMA
public void setConnection(liquibase.database.DatabaseConnection conn)
setConnection in interface liquibase.database.DatabasesetConnection in class liquibase.database.AbstractJdbcDatabaseprotected org.hibernate.dialect.Dialect configureDialect()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected void configureNamingStrategy(org.hibernate.cfg.Configuration configuration,
HibernateConnection connection)
configuration - the Configurationconnection - the HibernateConnectionprotected void afterSetup()
protected abstract org.hibernate.cfg.Configuration buildConfiguration(HibernateConnection conn) throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic boolean requiresPassword()
requiresPassword in interface liquibase.database.DatabaserequiresPassword in class liquibase.database.AbstractJdbcDatabasepublic boolean requiresUsername()
requiresUsername in interface liquibase.database.DatabaserequiresUsername in class liquibase.database.AbstractJdbcDatabasepublic int getPriority()
public boolean createsIndexesForForeignKeys()
createsIndexesForForeignKeys in interface liquibase.database.DatabasecreatesIndexesForForeignKeys in class liquibase.database.AbstractJdbcDatabasepublic Integer getDefaultPort()
public boolean supportsInitiallyDeferrableColumns()
public boolean supportsTablespaces()
public org.hibernate.cfg.Configuration getConfiguration()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionpublic org.hibernate.dialect.Dialect getDialect()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected String getConnectionCatalogName() throws liquibase.exception.DatabaseException
getConnectionCatalogName in class liquibase.database.AbstractJdbcDatabaseliquibase.exception.DatabaseExceptionprotected String getConnectionSchemaName()
getConnectionSchemaName in class liquibase.database.AbstractJdbcDatabasepublic String getDefaultSchemaName()
getDefaultSchemaName in interface liquibase.database.DatabasegetDefaultSchemaName in class liquibase.database.AbstractJdbcDatabasepublic String getDefaultCatalogName()
getDefaultCatalogName in interface liquibase.database.DatabasegetDefaultCatalogName in class liquibase.database.AbstractJdbcDatabasepublic boolean isSafeToRunUpdate()
throws liquibase.exception.DatabaseException
isSafeToRunUpdate in interface liquibase.database.DatabaseisSafeToRunUpdate in class liquibase.database.AbstractJdbcDatabaseliquibase.exception.DatabaseExceptionpublic boolean isCaseSensitive()
isCaseSensitive in interface liquibase.database.DatabaseisCaseSensitive in class liquibase.database.AbstractJdbcDatabasepublic boolean supportsSchemas()
supportsSchemas in interface liquibase.database.DatabasesupportsSchemas in class liquibase.database.AbstractJdbcDatabasepublic boolean supportsCatalogs()
supportsCatalogs in interface liquibase.database.DatabasesupportsCatalogs in class liquibase.database.AbstractJdbcDatabaseCopyright © 2016 Liquibase.org. All Rights Reserved.