public class CockroachDatabase extends PostgresDatabase
MINIMUM_DBMS_MAJOR_VERSION, MINIMUM_DBMS_MINOR_VERSION, PRODUCT_NAME, VALID_AUTO_INCREMENT_COLUMN_TYPE_NAMES
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
CockroachDatabase() |
Modifier and Type | Method and Description |
---|---|
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
protected String |
getDefaultDatabaseProductName() |
Integer |
getDefaultPort() |
int |
getPriority() |
String |
getShortName()
Returns an all-lower-case short name of the product.
|
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection.
|
void |
setConnection(DatabaseConnection conn) |
boolean |
supportsDDLInTransaction()
Determines if the database supports DDL within a transaction or not.
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns.
|
boolean |
supportsTablespaces() |
boolean |
useSerialDatatypes()
Should the database use "serial" datatypes vs.
|
correctObjectName, equals, escapeObjectName, generateAutoIncrementBy, generateAutoIncrementStartWith, generatePrimaryKeyName, getAutoIncrementClause, getAutoIncrementClause, getConnectionSchemaNameCallStatement, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDefaultDriver, getMaxFractionalDigitsForTimestamp, getSchemaAndCatalogCase, getSystemViews, hashCode, hasMixedCase, isReservedWord, isSystemObject, rollback, supportsCatalogInObjectName, supportsSequences, unescapeDataTypeName
addReservedWords, canCreateChangeLogTable, close, commit, correctSchema, correctSchema, createsIndexesForForeignKeys, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, escapeColumnName, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeDataTypeName, escapeIndexName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateDatabaseFunctionValue, get, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionCatalogName, getConnectionSchemaName, getContainingObjects, getCurrentDateTimeFunction, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getDefaultSchemaName, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getQuotingEndCharacter, getQuotingEndReplacement, getQuotingStartCharacter, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getTimeLiteral, getViewDefinition, isAutoCommit, isCaseSensitive, isCurrentTimeFunction, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isSafeToRunUpdate, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, requiresExplicitNullForColumns, requiresPassword, requiresUsername, resetInternalState, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogs, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSchemas, tag, toString, unescapeDataTypeString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayName
public int getPriority()
getPriority
in interface PrioritizedService
getPriority
in class PostgresDatabase
public String getShortName()
Database
getShortName
in interface Database
getShortName
in class PostgresDatabase
protected String getDefaultDatabaseProductName()
getDefaultDatabaseProductName
in class PostgresDatabase
public int getDatabaseMajorVersion() throws DatabaseException
getDatabaseMajorVersion
in interface Database
getDatabaseMajorVersion
in class AbstractJdbcDatabase
DatabaseException
public int getDatabaseMinorVersion() throws DatabaseException
getDatabaseMinorVersion
in interface Database
getDatabaseMinorVersion
in class AbstractJdbcDatabase
DatabaseException
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
Database
isCorrectDatabaseImplementation
in interface Database
isCorrectDatabaseImplementation
in class PostgresDatabase
DatabaseException
public Integer getDefaultPort()
getDefaultPort
in interface Database
getDefaultPort
in class PostgresDatabase
public boolean supportsInitiallyDeferrableColumns()
Database
supportsInitiallyDeferrableColumns
in interface Database
supportsInitiallyDeferrableColumns
in class PostgresDatabase
public boolean supportsTablespaces()
supportsTablespaces
in interface Database
supportsTablespaces
in class PostgresDatabase
public boolean supportsDDLInTransaction()
AbstractJdbcDatabase
supportsDDLInTransaction
in interface Database
supportsDDLInTransaction
in class AbstractJdbcDatabase
public void setConnection(DatabaseConnection conn)
setConnection
in interface Database
setConnection
in class PostgresDatabase
public boolean useSerialDatatypes()
PostgresDatabase
useSerialDatatypes
in class PostgresDatabase
Copyright © 2023 Liquibase.org. All rights reserved.