Top Description Fields Constructors Methods
liquibase.database.core

public Class MariaDBDatabase

extends MySQLDatabase
Class Inheritance
Imports
liquibase.Scope, liquibase.database.DatabaseConnection, liquibase.exception.DatabaseException, liquibase.structure.DatabaseObject, liquibase.structure.core.Table, liquibase.util.StringUtil, java.util.Arrays, .Collections

Encapsulates MySQL database support.

Field Summary

Modifier and TypeField and Description
private static final String
Inherited from liquibase.database.core.MySQLDatabase:
PRECISION_PATTERN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
public String
getDefaultDriver(String url)

Overrides liquibase.database.core.MySQLDatabase.getDefaultDriver.

Implements liquibase.database.Database.getDefaultDriver.

If this database understands the given url, return the default driver class name.

public int
getMaxFractionalDigitsForTimestamp()

Overrides liquibase.database.core.MySQLDatabase.getMaxFractionalDigitsForTimestamp.

Implements liquibase.database.Database.getMaxFractionalDigitsForTimestamp.

Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they support less than that.

protected String
public String
getShortName()

Overrides liquibase.database.core.MySQLDatabase.getShortName.

Implements liquibase.database.Database.getShortName.

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

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

Overrides liquibase.database.core.MySQLDatabase.supportsCreateIfNotExists.

Overrides default liquibase.database.Database.supportsCreateIfNotExists.

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

public boolean
Inherited from liquibase.database.core.MySQLDatabase:
correctObjectNamecreatesIndexesForForeignKeysdisableForeignKeyChecksenableForeignKeyChecksescapeIndexNameescapeStringForDatabasegenerateAutoIncrementBygenerateAutoIncrementStartWithgenerateDatabaseFunctionValuegetAutoIncrementClausegetAutoIncrementClosinggetAutoIncrementOpeninggetAutoIncrementStartWithClausegetConcatSqlgetCurrentDateTimeFunctiongetDatabasePatchVersiongetDefaultFractionalDigitsForTimestampgetDefaultPortgetLineCommentgetPrioritygetQuotingEndCharactergetQuotingStartCharactergetSchemaFromJdbcInfogetTableOptionAutoIncrementStartWithClauseisMinimumMySQLVersionisReservedWordmustQuoteObjectNamesupportsCatalogssupportsForeignKeyDisablesupportsInitiallyDeferrableColumnssupportsSchemassupportsTablespaceswarnAboutAlterColumn

Field Detail

PRODUCT_NAMEback to summary
private static final String PRODUCT_NAME

Hides liquibase.database.core.MySQLDatabase.PRODUCT_NAME.

Constructor Detail

MariaDBDatabaseback to summary
public MariaDBDatabase()

Method Detail

getDefaultDatabaseProductNameback to summary
protected String getDefaultDatabaseProductName()

Overrides liquibase.database.core.MySQLDatabase.getDefaultDatabaseProductName.

Annotations
@Override
getDefaultDriverback to summary
public String getDefaultDriver(String url)

Overrides liquibase.database.core.MySQLDatabase.getDefaultDriver.

Implements liquibase.database.Database.getDefaultDriver.

Doc from liquibase.database.Database.getDefaultDriver.

If this database understands the given url, return the default driver class name. Otherwise return null.

Annotations
@Override
getMaxFractionalDigitsForTimestampback to summary
public int getMaxFractionalDigitsForTimestamp()

Overrides liquibase.database.core.MySQLDatabase.getMaxFractionalDigitsForTimestamp.

Implements liquibase.database.Database.getMaxFractionalDigitsForTimestamp.

Doc from liquibase.database.AbstractJdbcDatabase.getMaxFractionalDigitsForTimestamp.

Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they support less than that.

Returns:int

the maximum number of supported fractional digits in TIMESTAMP columns

Annotations
@Override
getMinimumVersionForFractionalDigitsForTimestampback to summary
protected String getMinimumVersionForFractionalDigitsForTimestamp()

Overrides liquibase.database.core.MySQLDatabase.getMinimumVersionForFractionalDigitsForTimestamp.

Annotations
@Override
getShortNameback to summary
public String getShortName()

Overrides liquibase.database.core.MySQLDatabase.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

Overrides liquibase.database.core.MySQLDatabase.isCorrectDatabaseImplementation.

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
supportsCreateIfNotExistsback to summary
public boolean supportsCreateIfNotExists(Class<? extends DatabaseObject> type)

Overrides liquibase.database.core.MySQLDatabase.supportsCreateIfNotExists.

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
supportsSequencesback to summary
public boolean supportsSequences()

Overrides liquibase.database.core.MySQLDatabase.supportsSequences.

Implements liquibase.database.Database.supportsSequences.

Doc from liquibase.database.AbstractJdbcDatabase.supportsSequences.

Does the database type support sequence.

Annotations
@Override