liquibase.database.core
Class SybaseASADatabase

java.lang.Object
  extended by liquibase.database.AbstractDatabase
      extended by liquibase.database.core.SybaseASADatabase
All Implemented Interfaces:
Database, DatabaseObject, PrioritizedService

public class SybaseASADatabase
extends AbstractDatabase

Author:
otaranenko

Field Summary
 
Fields inherited from class liquibase.database.AbstractDatabase
currentDateTimeFunction, databaseFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
SybaseASADatabase()
           
 
Method Summary
 String convertRequestedSchemaToCatalog(String requestedSchema)
           
 String convertRequestedSchemaToSchema(String requestedSchema)
           
 String escapeDatabaseObject(String objectName)
           
protected  boolean generateAutoIncrementBy(BigInteger incrementBy)
           
protected  boolean generateAutoIncrementStartWith(BigInteger startWith)
           
protected  String getAutoIncrementClause()
           
 String getCurrentDateTimeFunction()
          Returns database-specific function for generating the current date/time.
 String getDefaultCatalogName()
           
protected  String getDefaultDatabaseSchemaName()
           
 String getDefaultDriver(String url)
          If this database understands the given url, return the default driver class name.
 String getDefaultSchemaName()
           
 int getPriority()
           
 Set<String> getSystemTablesAndViews()
          Returns system (undroppable) tables and views.
 String getTypeName()
          Returns an all-lower-case short name of the product.
 String getViewDefinition(String schemaName, String viewName)
           
 boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
          Is this AbstractDatabase subclass the correct one to use for the given connection.
 void setAutoCommit(boolean b)
           
 boolean supportsInitiallyDeferrableColumns()
          Returns whether this database support initially deferrable columns.
 boolean supportsSequences()
          Does the database type support sequence.
 boolean supportsTablespaces()
           
 
Methods inherited from class liquibase.database.AbstractDatabase
canCreateChangeLogTable, checkDatabaseChangeLogLockTable, checkDatabaseChangeLogTable, close, commit, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, equals, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeIndexName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeStatements, generatePrimaryKeyName, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getContainingObjects, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseFunctions, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getLineComment, getLiquibaseSchemaName, getNextChangeSetSequenceValue, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getTable, getTimeLiteral, hasDatabaseChangeLogLockTable, hasDatabaseChangeLogTable, hashCode, isAutoCommit, isDateOnly, isDateTime, isLiquibaseTable, isLocalDatabase, isReservedWord, isSystemTable, isSystemView, isTimeOnly, markChangeSetExecStatus, parseDate, removeRanStatus, requiresPassword, requiresUsername, reset, rollback, saveRollbackStatement, saveStatements, setCanCacheLiquibaseTableInfo, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultSchemaName, shouldQuoteValue, supportsAutoIncrement, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsRestrictForeignKeys, supportsSchemas, tag, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SybaseASADatabase

public SybaseASADatabase()
Method Detail

getPriority

public int getPriority()

getCurrentDateTimeFunction

public String getCurrentDateTimeFunction()
Description copied from interface: Database
Returns database-specific function for generating the current date/time.


getDefaultDriver

public String getDefaultDriver(String url)
Description copied from interface: Database
If this database understands the given url, return the default driver class name. Otherwise return null.


getTypeName

public 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.


isCorrectDatabaseImplementation

public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
                                        throws DatabaseException
Description copied from interface: Database
Is this AbstractDatabase subclass the correct one to use for the given connection.

Throws:
DatabaseException

getDefaultCatalogName

public String getDefaultCatalogName()
                             throws DatabaseException
Specified by:
getDefaultCatalogName in interface Database
Overrides:
getDefaultCatalogName in class AbstractDatabase
Throws:
DatabaseException

getDefaultDatabaseSchemaName

protected String getDefaultDatabaseSchemaName()
                                       throws DatabaseException
Overrides:
getDefaultDatabaseSchemaName in class AbstractDatabase
Throws:
DatabaseException

convertRequestedSchemaToSchema

public String convertRequestedSchemaToSchema(String requestedSchema)
                                      throws DatabaseException
Specified by:
convertRequestedSchemaToSchema in interface Database
Overrides:
convertRequestedSchemaToSchema in class AbstractDatabase
Throws:
DatabaseException

getDefaultSchemaName

public String getDefaultSchemaName()
Specified by:
getDefaultSchemaName in interface Database
Overrides:
getDefaultSchemaName in class AbstractDatabase

getViewDefinition

public String getViewDefinition(String schemaName,
                                String viewName)
                         throws DatabaseException
Specified by:
getViewDefinition in interface Database
Overrides:
getViewDefinition in class AbstractDatabase
Throws:
DatabaseException

supportsInitiallyDeferrableColumns

public boolean supportsInitiallyDeferrableColumns()
Description copied from interface: Database
Returns whether this database support initially deferrable columns.


supportsTablespaces

public boolean supportsTablespaces()

convertRequestedSchemaToCatalog

public String convertRequestedSchemaToCatalog(String requestedSchema)
                                       throws DatabaseException
Specified by:
convertRequestedSchemaToCatalog in interface Database
Overrides:
convertRequestedSchemaToCatalog in class AbstractDatabase
Throws:
DatabaseException

getSystemTablesAndViews

public Set<String> getSystemTablesAndViews()
Description copied from class: AbstractDatabase
Returns system (undroppable) tables and views.

Overrides:
getSystemTablesAndViews in class AbstractDatabase

supportsSequences

public boolean supportsSequences()
Description copied from class: AbstractDatabase
Does the database type support sequence.

Specified by:
supportsSequences in interface Database
Overrides:
supportsSequences in class AbstractDatabase

getAutoIncrementClause

protected String getAutoIncrementClause()
Overrides:
getAutoIncrementClause in class AbstractDatabase

generateAutoIncrementStartWith

protected boolean generateAutoIncrementStartWith(BigInteger startWith)
Overrides:
generateAutoIncrementStartWith in class AbstractDatabase

generateAutoIncrementBy

protected boolean generateAutoIncrementBy(BigInteger incrementBy)
Overrides:
generateAutoIncrementBy in class AbstractDatabase

setAutoCommit

public void setAutoCommit(boolean b)
                   throws DatabaseException
Specified by:
setAutoCommit in interface Database
Overrides:
setAutoCommit in class AbstractDatabase
Throws:
DatabaseException

escapeDatabaseObject

public String escapeDatabaseObject(String objectName)
Specified by:
escapeDatabaseObject in interface Database
Overrides:
escapeDatabaseObject in class AbstractDatabase


Copyright © 2012 Liquibase.org. All Rights Reserved.