|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.H2Database
public class H2Database
| Field Summary |
|---|
| Fields inherited from class liquibase.database.AbstractDatabase |
|---|
currentDateTimeFunction, databaseFunctions |
| Fields inherited from interface liquibase.servicelocator.PrioritizedService |
|---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
| Constructor Summary | |
|---|---|
H2Database()
|
|
| Method Summary | |
|---|---|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
String |
escapeDatabaseObject(String objectName)
|
String |
getAutoIncrementClause()
Returns database-specific auto-increment DDL clause. |
String |
getConcatSql(String... values)
Returns SQL to concat the passed values. |
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
String |
getDateLiteral(String isoDate)
Return a 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. |
boolean |
isLocalDatabase()
Default implementation, just look for "local" IPs |
boolean |
isReservedWord(String objectName)
|
Date |
parseDate(String dateAsString)
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
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 |
| Constructor Detail |
|---|
public H2Database()
| Method Detail |
|---|
public String getTypeName()
Database
public String getDefaultDriver(String url)
Database
public int getPriority()
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic 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 boolean isLocalDatabase()
throws DatabaseException
AbstractDatabase
isLocalDatabase in interface DatabaseisLocalDatabase in class AbstractDatabaseDatabaseExceptionpublic boolean supportsSequences()
AbstractDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractDatabase
protected String getDefaultDatabaseSchemaName()
throws DatabaseException
getDefaultDatabaseSchemaName in class AbstractDatabaseDatabaseExceptionpublic String getAutoIncrementClause()
AbstractDatabase
getAutoIncrementClause in interface DatabasegetAutoIncrementClause in class AbstractDatabasepublic String getConcatSql(String... values)
Database
getConcatSql in interface DatabasegetConcatSql in class AbstractDatabasepublic String getDateLiteral(String isoDate)
AbstractDatabase
getDateLiteral in interface DatabasegetDateLiteral in class AbstractDatabase
public String convertRequestedSchemaToSchema(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToSchema in interface DatabaseconvertRequestedSchemaToSchema in class AbstractDatabaseDatabaseExceptionpublic String escapeDatabaseObject(String objectName)
escapeDatabaseObject in interface DatabaseescapeDatabaseObject in class AbstractDatabasepublic boolean isReservedWord(String objectName)
isReservedWord in interface DatabaseisReservedWord in class AbstractDatabasepublic boolean supportsInitiallyDeferrableColumns()
Database
public String getCurrentDateTimeFunction()
Database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||