|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.SybaseDatabase
public class SybaseDatabase
Encapsulates Sybase ASE database support.
| Field Summary | |
|---|---|
static String |
PRODUCT_NAME
|
protected Set<String> |
systemTablesAndViews
|
| Fields inherited from class liquibase.database.AbstractDatabase |
|---|
currentDateTimeFunction, databaseFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith |
| Fields inherited from interface liquibase.servicelocator.PrioritizedService |
|---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
| Constructor Summary | |
|---|---|
SybaseDatabase()
|
|
| Method Summary | |
|---|---|
String |
convertRequestedSchemaToCatalog(String requestedSchema)
|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
String |
escapeDatabaseObject(String objectName)
|
String |
escapeIndexName(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. |
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
int |
getDatabaseMajorVersion()
|
int |
getDatabaseMinorVersion()
|
String |
getDefaultCatalogName()
|
protected String |
getDefaultDatabaseSchemaName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
int |
getPriority()
|
String |
getProductName()
|
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. |
boolean |
isSystemTable(String catalogName,
String schemaName,
String tableName)
|
boolean |
isSystemView(String catalogName,
String schemaName,
String viewName)
|
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 |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
boolean |
supportsRestrictForeignKeys()
|
boolean |
supportsSequences()
Does the database type support sequence. |
boolean |
supportsTablespaces()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PRODUCT_NAME
protected Set<String> systemTablesAndViews
| Constructor Detail |
|---|
public SybaseDatabase()
| Method Detail |
|---|
public String getProductName()
public String getTypeName()
Database
public int getPriority()
public boolean supportsDDLInTransaction()
supportsDDLInTransaction in interface DatabasesupportsDDLInTransaction in class AbstractDatabasepublic Set<String> getSystemTablesAndViews()
AbstractDatabase
getSystemTablesAndViews in class AbstractDatabasepublic boolean supportsInitiallyDeferrableColumns()
Database
public boolean supportsSequences()
AbstractDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractDatabase
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic String getDefaultDriver(String url)
Database
public String getCurrentDateTimeFunction()
Database
protected String getAutoIncrementClause()
getAutoIncrementClause in class AbstractDatabaseprotected boolean generateAutoIncrementStartWith(BigInteger startWith)
generateAutoIncrementStartWith in class AbstractDatabaseprotected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy in class AbstractDatabase
protected String getDefaultDatabaseSchemaName()
throws DatabaseException
getDefaultDatabaseSchemaName in class AbstractDatabaseDatabaseException
public String getDefaultCatalogName()
throws DatabaseException
getDefaultCatalogName in interface DatabasegetDefaultCatalogName in class AbstractDatabaseDatabaseExceptionpublic String getConcatSql(String... values)
Database
getConcatSql in interface DatabasegetConcatSql in class AbstractDatabasepublic boolean supportsTablespaces()
public boolean isSystemTable(String catalogName,
String schemaName,
String tableName)
isSystemTable in interface DatabaseisSystemTable in class AbstractDatabase
public boolean isSystemView(String catalogName,
String schemaName,
String viewName)
isSystemView in interface DatabaseisSystemView in class AbstractDatabase
public String generateDefaultConstraintName(String tableName,
String columnName)
public String convertRequestedSchemaToCatalog(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToCatalog in interface DatabaseconvertRequestedSchemaToCatalog in class AbstractDatabaseDatabaseException
public String convertRequestedSchemaToSchema(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToSchema in interface DatabaseconvertRequestedSchemaToSchema in class AbstractDatabaseDatabaseExceptionpublic boolean supportsRestrictForeignKeys()
supportsRestrictForeignKeys in interface DatabasesupportsRestrictForeignKeys in class AbstractDatabasepublic String escapeDatabaseObject(String objectName)
escapeDatabaseObject in interface DatabaseescapeDatabaseObject in class AbstractDatabase
public String getViewDefinition(String schemaName,
String viewName)
throws DatabaseException
getViewDefinition in interface DatabasegetViewDefinition in class AbstractDatabaseDatabaseException
public int getDatabaseMajorVersion()
throws DatabaseException
getDatabaseMajorVersion in interface DatabasegetDatabaseMajorVersion in class AbstractDatabaseDatabaseExceptionAbstractDatabase.getDatabaseMajorVersion()
public int getDatabaseMinorVersion()
throws DatabaseException
getDatabaseMinorVersion in interface DatabasegetDatabaseMinorVersion in class AbstractDatabaseDatabaseExceptionAbstractDatabase.getDatabaseMinorVersion()
public String escapeIndexName(String schemaName,
String indexName)
escapeIndexName in interface DatabaseescapeIndexName in class AbstractDatabase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||