liquibase.database
Class SybaseDatabase
java.lang.Object
liquibase.database.AbstractDatabase
liquibase.database.MSSQLDatabase
liquibase.database.SybaseDatabase
- All Implemented Interfaces:
- Database, DatabaseObject
public class SybaseDatabase
- extends MSSQLDatabase
| Methods inherited from class liquibase.database.MSSQLDatabase |
convertDatabaseValueToJavaObject, convertRequestedSchemaToCatalog, convertRequestedSchemaToSchema, createDatabaseSnapshot, escapeConstraintName, escapeTableName, generateDefaultConstraintName, getAutoIncrementClause, getBlobType, getBooleanType, getClobType, getColumnType, getConcatSql, getCurrencyType, getCurrentDateTimeFunction, getDateLiteral, getDateTimeType, getDateType, getDefaultCatalogName, getDefaultDatabaseSchemaName, getFalseBooleanValue, getSystemTablesAndViews, getTimeType, getTrueBooleanValue, getUUIDType, getViewDefinitionSql, isSystemTable, isSystemView, supportsInitiallyDeferrableColumns, supportsRestrictForeignKeys, supportsSequences |
| Methods inherited from class liquibase.database.AbstractDatabase |
canCreateChangeLogTable, checkDatabaseChangeLogLockTable, checkDatabaseChangeLogTable, close, commit, convertJavaObjectToString, convertToCorrectJavaType, createFindSequencesSQL, doesChangeLogLockTableExist, doesChangeLogTableExist, doesTagExist, dropDatabaseObjects, equals, escapeColumnName, escapeColumnNameList, escapeIndexName, escapeSequenceName, escapeStringForDatabase, escapeViewName, generatePrimaryKeyName, getAutoCommitMode, getBigIntType, getCharType, getColumnType, getConnection, getConnectionURL, getConnectionUsername, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductName, getDatabaseProductVersion, getDatabaseType, getDateLiteral, getDateLiteral, getDateLiteral, getDateLiteral, getDefaultSchemaName, getDoubleType, getDriverName, getFloatType, getIntType, getJdbcTemplate, getLineComment, getObjectEscapeCharacter, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSelectChangeLogLockSQL, getTinyIntType, getVarcharType, getViewDefinition, hashCode, isAutoCommit, isColumnAutoIncrement, isDateOnly, isDateTime, isLiquibaseTable, isLocalDatabase, isTimeOnly, markChangeSetAsRan, markChangeSetAsReRan, parseDate, removeRanStatus, rollback, setAutoCommit, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultSchemaName, setJdbcTemplate, shouldQuoteValue, supportsAutoIncrement, supportsSchemas, tag, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SybaseDatabase
public SybaseDatabase()
getProductName
public java.lang.String getProductName()
- Description copied from interface:
Database
- Returns the full database product name. May be different than what the JDBC connection reports (getDatabaseProductName())
- Specified by:
getProductName in interface Database- Overrides:
getProductName in class MSSQLDatabase
getTypeName
public java.lang.String getTypeName()
- Description copied from interface:
Database
- Returns an all-lower-case short name of the product. Used for end-user selecting of database type
such as the DBMS precondition.
- Specified by:
getTypeName in interface Database- Overrides:
getTypeName in class MSSQLDatabase
setConnection
public void setConnection(java.sql.Connection connection)
- Specified by:
setConnection in interface Database- Overrides:
setConnection in class AbstractDatabase
getDefaultDriver
public java.lang.String getDefaultDriver(java.lang.String url)
- Description copied from interface:
Database
- If this database understands the given url, return the default driver class name. Otherwise return null.
- Specified by:
getDefaultDriver in interface Database- Overrides:
getDefaultDriver in class MSSQLDatabase
supportsDDLInTransaction
public 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.
- Specified by:
supportsDDLInTransaction in interface Database- Overrides:
supportsDDLInTransaction in class AbstractDatabase
- Returns:
- True if the database supports DDL within a transaction, otherwise false.
getCreateChangeLogSQL
protected SqlStatement getCreateChangeLogSQL()
- Overrides:
getCreateChangeLogSQL in class AbstractDatabase
getCreateChangeLogLockSQL
protected SqlStatement getCreateChangeLogLockSQL()
- Overrides:
getCreateChangeLogLockSQL in class AbstractDatabase
isCorrectDatabaseImplementation
public boolean isCorrectDatabaseImplementation(java.sql.Connection conn)
throws JDBCException
- Drops all objects owned by the connected user.
The Sybase functionality overrides this and does not remove the Foreign Keys.
Unfortunately it appears to be a problem with the Drivers, see the JTDS driver page.
http://sourceforge.net/tracker/index.php?func=detail&aid=1471425&group_id=33291&atid=407762
- Specified by:
isCorrectDatabaseImplementation in interface Database- Overrides:
isCorrectDatabaseImplementation in class MSSQLDatabase
- Throws:
JDBCException
supportsTablespaces
public boolean supportsTablespaces()
- Specified by:
supportsTablespaces in interface Database- Overrides:
supportsTablespaces in class MSSQLDatabase