public class SybaseDatabase extends AbstractJdbcDatabase
Modifier and Type | Field and Description |
---|---|
static String |
PRODUCT_NAME |
protected Set<String> |
systemTablesAndViews |
caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
Constructor and Description |
---|
SybaseDatabase() |
Modifier and Type | Method and Description |
---|---|
String |
escapeIndexName(String catalogName,
String schemaName,
String indexName) |
protected boolean |
generateAutoIncrementBy(BigInteger incrementBy) |
protected boolean |
generateAutoIncrementStartWith(BigInteger startWith) |
String |
generateDefaultConstraintName(String tableName,
String columnName) |
protected String |
getAutoIncrementClause() |
String |
getConcatSql(String... values)
Returns SQL to concat the passed values.
|
protected SqlStatement |
getConnectionSchemaNameCallStatement()
Used to obtain the connection schema name through a statement
Override this method to change the statement.
|
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
protected String |
getDefaultDatabaseProductName() |
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name.
|
Integer |
getDefaultPort() |
int |
getPriority() |
protected String |
getQuotingEndCharacter() |
protected String |
getQuotingStartCharacter() |
String |
getShortName()
Returns an all-lower-case short name of the product.
|
Set<String> |
getSystemViews()
Returns system (undroppable) views.
|
String |
getViewDefinition(CatalogAndSchema schema,
String viewName) |
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection.
|
boolean |
isSystemObject(DatabaseObject example) |
protected boolean |
mustQuoteObjectName(String objectName,
Class<? extends DatabaseObject> objectType) |
String |
quoteObject(String objectName,
Class<? extends DatabaseObject> objectType) |
boolean |
requiresExplicitNullForColumns()
Does the database require explicit NULL for nullable columns?
|
boolean |
supportsDDLInTransaction()
Sybase does not support DDL and meta data in transactions properly,
as such we turn off the commit and turn on auto commit.
|
boolean |
supportsDropTableCascadeConstraints() |
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns.
|
boolean |
supportsRestrictForeignKeys() |
boolean |
supportsSequences()
Does the database type support sequence.
|
boolean |
supportsTablespaces() |
addReservedWords, canCreateChangeLogTable, close, commit, correctObjectName, correctSchema, correctSchema, createsIndexesForForeignKeys, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, equals, escapeColumnName, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeDataTypeName, escapeObjectName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateDatabaseFunctionValue, generatePrimaryKeyName, get, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConnection, getConnectionCatalogName, getConnectionSchemaName, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getDefaultSchemaName, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getMaxFractionalDigitsForTimestamp, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getQuotingEndReplacement, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaAndCatalogCase, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getTimeLiteral, hashCode, isAutoCommit, isCaseSensitive, isCurrentTimeFunction, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isReservedWord, isSafeToRunUpdate, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, parseDate, removeRanStatus, requiresPassword, requiresUsername, resetInternalState, rollback, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogInObjectName, supportsCatalogs, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsSchemas, tag, toString, unescapeDataTypeName, unescapeDataTypeString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDisplayName
public static final String PRODUCT_NAME
public String getShortName()
Database
public int getPriority()
public Integer getDefaultPort()
protected String getDefaultDatabaseProductName()
getDefaultDatabaseProductName
in class AbstractJdbcDatabase
public boolean supportsDDLInTransaction()
supportsDDLInTransaction
in interface Database
supportsDDLInTransaction
in class AbstractJdbcDatabase
public Set<String> getSystemViews()
AbstractJdbcDatabase
getSystemViews
in class AbstractJdbcDatabase
public boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsSequences()
AbstractJdbcDatabase
supportsSequences
in interface Database
supportsSequences
in class AbstractJdbcDatabase
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
Database
DatabaseException
public String getDefaultDriver(String url)
Database
protected String getAutoIncrementClause()
getAutoIncrementClause
in class AbstractJdbcDatabase
protected boolean generateAutoIncrementStartWith(BigInteger startWith)
generateAutoIncrementStartWith
in class AbstractJdbcDatabase
protected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy
in class AbstractJdbcDatabase
public String getConcatSql(String... values)
Database
getConcatSql
in interface Database
getConcatSql
in class AbstractJdbcDatabase
public boolean supportsTablespaces()
public boolean isSystemObject(DatabaseObject example)
isSystemObject
in interface Database
isSystemObject
in class AbstractJdbcDatabase
public String generateDefaultConstraintName(String tableName, String columnName)
protected SqlStatement getConnectionSchemaNameCallStatement()
AbstractJdbcDatabase
getConnectionSchemaNameCallStatement
in class AbstractJdbcDatabase
AbstractJdbcDatabase.getConnectionSchemaName()
public boolean supportsRestrictForeignKeys()
supportsRestrictForeignKeys
in interface Database
supportsRestrictForeignKeys
in class AbstractJdbcDatabase
public boolean supportsDropTableCascadeConstraints()
supportsDropTableCascadeConstraints
in interface Database
supportsDropTableCascadeConstraints
in class AbstractJdbcDatabase
public String getViewDefinition(CatalogAndSchema schema, String viewName) throws DatabaseException
getViewDefinition
in interface Database
getViewDefinition
in class AbstractJdbcDatabase
DatabaseException
public int getDatabaseMajorVersion() throws DatabaseException
getDatabaseMajorVersion
in interface Database
getDatabaseMajorVersion
in class AbstractJdbcDatabase
DatabaseException
AbstractJdbcDatabase.getDatabaseMajorVersion()
public int getDatabaseMinorVersion() throws DatabaseException
getDatabaseMinorVersion
in interface Database
getDatabaseMinorVersion
in class AbstractJdbcDatabase
DatabaseException
AbstractJdbcDatabase.getDatabaseMinorVersion()
public String escapeIndexName(String catalogName, String schemaName, String indexName)
escapeIndexName
in interface Database
escapeIndexName
in class AbstractJdbcDatabase
public String quoteObject(String objectName, Class<? extends DatabaseObject> objectType)
quoteObject
in class AbstractJdbcDatabase
protected boolean mustQuoteObjectName(String objectName, Class<? extends DatabaseObject> objectType)
mustQuoteObjectName
in class AbstractJdbcDatabase
protected String getQuotingStartCharacter()
getQuotingStartCharacter
in class AbstractJdbcDatabase
protected String getQuotingEndCharacter()
getQuotingEndCharacter
in class AbstractJdbcDatabase
public boolean requiresExplicitNullForColumns()
Database
requiresExplicitNullForColumns
in interface Database
requiresExplicitNullForColumns
in class AbstractJdbcDatabase
Copyright © 2023 Liquibase.org. All rights reserved.