|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.HsqlDatabase
liquibase.database.H2Database
public class H2Database
| Field Summary |
|---|
| Fields inherited from class liquibase.database.AbstractDatabase |
|---|
currentDateTimeFunction, log |
| Constructor Summary | |
|---|---|
H2Database()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
convertDatabaseValueToJavaObject(java.lang.Object defaultValue,
int dataType,
int columnSize,
int decimalDigits)
|
SqlStatement |
createFindSequencesSQL(java.lang.String schema)
|
java.lang.String |
getDateTimeType()
Returns the actual database-specific data type to use a "datetime" column. |
java.lang.String |
getDefaultDriver(java.lang.String url)
If this database understands the given url, return the default driver class name. |
java.lang.String |
getObjectEscapeCharacter()
|
java.lang.String |
getProductName()
Returns the full database product name. |
java.lang.String |
getTypeName()
Returns an all-lower-case short name of the product. |
java.lang.String |
getViewDefinition(java.lang.String schemaName,
java.lang.String name)
|
SqlStatement |
getViewDefinitionSql(java.lang.String schemaName,
java.lang.String name)
|
boolean |
isCorrectDatabaseImplementation(java.sql.Connection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
isLocalDatabase()
Default implementation, just look for "local" IPs |
protected java.util.Date |
parseDate(java.lang.String dateAsString)
|
boolean |
supportsTablespaces()
|
| Methods inherited from class liquibase.database.HsqlDatabase |
|---|
convertRequestedSchemaToSchema, createDatabaseSnapshot, escapeColumnName, escapeTableName, getAutoIncrementClause, getBlobType, getBooleanType, getClobType, getConcatSql, getCurrencyType, getCurrentDateTimeFunction, getDateLiteral, getDefaultDatabaseSchemaName, getUUIDType, setConnection, supportsInitiallyDeferrableColumns, supportsSequences |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public H2Database()
| Method Detail |
|---|
public java.lang.String getProductName()
Database
getProductName in interface DatabasegetProductName in class HsqlDatabasepublic java.lang.String getTypeName()
Database
getTypeName in interface DatabasegetTypeName in class HsqlDatabasepublic java.lang.String getDefaultDriver(java.lang.String url)
Database
getDefaultDriver in interface DatabasegetDefaultDriver in class HsqlDatabase
public boolean isCorrectDatabaseImplementation(java.sql.Connection conn)
throws JDBCException
Database
isCorrectDatabaseImplementation in interface DatabaseisCorrectDatabaseImplementation in class HsqlDatabaseJDBCException
public SqlStatement createFindSequencesSQL(java.lang.String schema)
throws JDBCException
createFindSequencesSQL in interface DatabasecreateFindSequencesSQL in class HsqlDatabaseJDBCExceptionpublic java.lang.String getObjectEscapeCharacter()
getObjectEscapeCharacter in class AbstractDatabasepublic boolean supportsTablespaces()
supportsTablespaces in interface DatabasesupportsTablespaces in class HsqlDatabase
public java.lang.String getViewDefinition(java.lang.String schemaName,
java.lang.String name)
throws JDBCException
getViewDefinition in interface DatabasegetViewDefinition in class AbstractDatabaseJDBCException
public SqlStatement getViewDefinitionSql(java.lang.String schemaName,
java.lang.String name)
throws JDBCException
getViewDefinitionSql in class HsqlDatabaseJDBCException
public java.lang.Object convertDatabaseValueToJavaObject(java.lang.Object defaultValue,
int dataType,
int columnSize,
int decimalDigits)
throws java.text.ParseException
convertDatabaseValueToJavaObject in interface DatabaseconvertDatabaseValueToJavaObject in class AbstractDatabasejava.text.ParseException
protected java.util.Date parseDate(java.lang.String dateAsString)
throws DateParseException
parseDate in class HsqlDatabaseDateParseExceptionpublic java.lang.String getDateTimeType()
Database
getDateTimeType in interface DatabasegetDateTimeType in class HsqlDatabase
public boolean isLocalDatabase()
throws JDBCException
AbstractDatabase
isLocalDatabase in interface DatabaseisLocalDatabase in class AbstractDatabaseJDBCException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||