|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.DB2Database
public class DB2Database
| 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 | |
|---|---|
DB2Database()
|
|
| Method Summary | |
|---|---|
String |
convertRequestedSchemaToCatalog(String requestedSchema)
|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
String |
escapeIndexName(String schemaName,
String indexName)
|
String |
generatePrimaryKeyName(String tableName)
|
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
String |
getDateLiteral(String isoDate)
Return an DB2 date literal with the same value as a string formatted using ISO 8601. |
protected String |
getDefaultDatabaseSchemaName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
int |
getPriority()
|
String |
getTypeName()
Returns an all-lower-case short name of the product. |
String |
getViewDefinition(String schemaName,
String name)
|
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
Date |
parseDate(String dateAsString)
|
boolean |
shouldQuoteValue(String value)
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
boolean |
supportsTablespaces()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DB2Database()
| Method Detail |
|---|
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic String getDefaultDriver(String url)
Database
public int getPriority()
public String getTypeName()
Database
protected String getDefaultDatabaseSchemaName()
throws DatabaseException
getDefaultDatabaseSchemaName in class AbstractDatabaseDatabaseExceptionpublic boolean supportsInitiallyDeferrableColumns()
Database
public String getCurrentDateTimeFunction()
Database
public String getDateLiteral(String isoDate)
getDateLiteral in interface DatabasegetDateLiteral in class AbstractDatabasepublic boolean shouldQuoteValue(String value)
shouldQuoteValue in interface DatabaseshouldQuoteValue in class AbstractDatabasepublic boolean supportsTablespaces()
public String getViewDefinition(String schemaName,
String name)
throws DatabaseException
getViewDefinition in interface DatabasegetViewDefinition in class AbstractDatabaseDatabaseException
public Date parseDate(String dateAsString)
throws DateParseException
parseDate in interface DatabaseparseDate in class AbstractDatabaseDateParseException
public String convertRequestedSchemaToSchema(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToSchema in interface DatabaseconvertRequestedSchemaToSchema in class AbstractDatabaseDatabaseException
public String convertRequestedSchemaToCatalog(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToCatalog in interface DatabaseconvertRequestedSchemaToCatalog in class AbstractDatabaseDatabaseExceptionpublic String generatePrimaryKeyName(String tableName)
generatePrimaryKeyName in interface DatabasegeneratePrimaryKeyName in class AbstractDatabase
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 | |||||||||