Top Constructors Methods
liquibase.database.core

public Class DB2Database

extends AbstractDb2Database
Class Inheritance
Imports
liquibase.Scope, liquibase.database.DatabaseConnection, .OfflineConnection, liquibase.exception.DatabaseException, liquibase.executor.ExecutorService, liquibase.statement.core.RawSqlStatement, liquibase.structure.DatabaseObject, liquibase.structure.core.Table, liquibase.util.StringUtil

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Integer
protected String
public String
getShortName()

Implements liquibase.database.Database.getShortName.

Returns an all-lower-case short name of the product.

public boolean
isCorrectDatabaseImplementation(DatabaseConnection conn)

Implements liquibase.database.Database.isCorrectDatabaseImplementation.

Is this AbstractDatabase subclass the correct one to use for the given connection.

public boolean

Returns:

true if boolean data type columns are supported, false otherwise
supportsBooleanDataType
()

Checks if the database supports boolean data type columns.

public boolean
supportsCreateIfNotExists(Class<? extends DatabaseObject>
the DatabaseObject type to be checked.
type
)

Overrides default liquibase.database.Database.supportsCreateIfNotExists.

Does the database support the "if not exits" syntax?

Inherited from liquibase.database.core.AbstractDb2Database:
generatePrimaryKeyNamegetDateLiteralgetDefaultCatalogNamegetDefaultDrivergetDefaultPortgetJdbcCatalogNamegetJdbcSchemaNamegetMaxFractionalDigitsForTimestampgetPrioritygetSchemaAndCatalogCasegetSchemaFromJdbcInfogetViewDefinitionisSystemObjectjdbcCallsCatalogsSchemasmustQuoteObjectNameparseDatesupportsCatalogssupportsInitiallyDeferrableColumnssupportsSchemassupportsTablespaces

Constructor Detail

DB2Databaseback to summary
public DB2Database()

Method Detail

getDb2FixPackback to summary
private Integer getDb2FixPack()
getDefaultDatabaseProductNameback to summary
protected String getDefaultDatabaseProductName()

Overrides liquibase.database.core.AbstractDb2Database.getDefaultDatabaseProductName.

Annotations
@Override
getShortNameback to summary
public String getShortName()

Implements liquibase.database.Database.getShortName.

Doc from liquibase.database.Database.getShortName.

Returns an all-lower-case short name of the product. Used for end-user selecting of database type such as the DBMS precondition.

Annotations
@Override
isCorrectDatabaseImplementationback to summary
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException

Implements liquibase.database.Database.isCorrectDatabaseImplementation.

Doc from liquibase.database.Database.isCorrectDatabaseImplementation.

Is this AbstractDatabase subclass the correct one to use for the given connection.

Annotations
@Override
supportsBooleanDataTypeback to summary
public boolean supportsBooleanDataType()

Checks if the database supports boolean data type columns. This is true for versions >= 11.1.1.1.

Returns:boolean

true if boolean data type columns are supported, false otherwise

supportsCreateIfNotExistsback to summary
public boolean supportsCreateIfNotExists(Class<? extends DatabaseObject> type)

Overrides default liquibase.database.Database.supportsCreateIfNotExists.

Doc from liquibase.database.Database.supportsCreateIfNotExists.

Does the database support the "if not exits" syntax?

Parameters
type:Class<? extends DatabaseObject>

the DatabaseObject type to be checked.

Returns:boolean

true if the "if not exists" syntax is supported, false otherwise.

Annotations
@Override