|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.database.AbstractJdbcDatabase
liquibase.database.core.MySQLDatabase
public class MySQLDatabase
Encapsulates MySQL database support.
Field Summary | |
---|---|
static String |
PRODUCT_NAME
|
Fields inherited from class liquibase.database.AbstractJdbcDatabase |
---|
currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, quotingEndCharacter, quotingStartCharacter, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased |
Fields inherited from interface liquibase.servicelocator.PrioritizedService |
---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
Constructor Summary | |
---|---|
MySQLDatabase()
|
Method Summary | |
---|---|
String |
correctObjectName(String name,
Class<? extends DatabaseObject> objectType)
Fix the object name to the format the database expects, handling changes in case, etc. |
boolean |
disableForeignKeyChecks()
|
void |
enableForeignKeyChecks()
|
String |
escapeIndexName(String catalogName,
String schemaName,
String indexName)
|
protected boolean |
generateAutoIncrementBy(BigInteger incrementBy)
|
protected String |
getAutoIncrementClause()
|
protected String |
getAutoIncrementClosing()
|
protected String |
getAutoIncrementOpening()
|
protected String |
getAutoIncrementStartWithClause()
|
String |
getConcatSql(String... values)
Returns SQL to concat the passed values. |
protected String |
getDefaultDatabaseProductName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
Integer |
getDefaultPort()
|
String |
getDefaultSchemaName()
|
String |
getLineComment()
Returns database-specific line comment string. |
int |
getPriority()
|
CatalogAndSchema |
getSchemaFromJdbcInfo(String rawCatalogName,
String rawSchemaName)
|
String |
getShortName()
Returns an all-lower-case short name of the product. |
boolean |
isCorrectDatabaseImplementation(DatabaseConnection conn)
Is this AbstractDatabase subclass the correct one to use for the given connection. |
boolean |
supportsCatalogs()
|
boolean |
supportsForeignKeyDisable()
|
boolean |
supportsInitiallyDeferrableColumns()
Returns whether this database support initially deferrable columns. |
boolean |
supportsSchemas()
|
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 |
Field Detail |
---|
public static final String PRODUCT_NAME
Constructor Detail |
---|
public MySQLDatabase()
Method Detail |
---|
public String getShortName()
Database
public String correctObjectName(String name, Class<? extends DatabaseObject> objectType)
Database
correctObjectName
in interface Database
correctObjectName
in class AbstractJdbcDatabase
protected String getDefaultDatabaseProductName()
getDefaultDatabaseProductName
in class AbstractJdbcDatabase
public Integer getDefaultPort()
public int getPriority()
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException
Database
DatabaseException
public String getDefaultDriver(String url)
Database
public boolean supportsSequences()
AbstractJdbcDatabase
supportsSequences
in interface Database
supportsSequences
in class AbstractJdbcDatabase
public boolean supportsInitiallyDeferrableColumns()
Database
public String getLineComment()
AbstractJdbcDatabase
getLineComment
in interface Database
getLineComment
in class AbstractJdbcDatabase
protected String getAutoIncrementClause()
getAutoIncrementClause
in class AbstractJdbcDatabase
protected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy
in class AbstractJdbcDatabase
protected String getAutoIncrementOpening()
getAutoIncrementOpening
in class AbstractJdbcDatabase
protected String getAutoIncrementClosing()
getAutoIncrementClosing
in class AbstractJdbcDatabase
protected String getAutoIncrementStartWithClause()
getAutoIncrementStartWithClause
in class AbstractJdbcDatabase
public String getConcatSql(String... values)
Database
getConcatSql
in interface Database
getConcatSql
in class AbstractJdbcDatabase
public boolean supportsTablespaces()
public String getDefaultSchemaName()
getDefaultSchemaName
in interface Database
getDefaultSchemaName
in class AbstractJdbcDatabase
public boolean supportsSchemas()
supportsSchemas
in interface Database
supportsSchemas
in class AbstractJdbcDatabase
public boolean supportsCatalogs()
supportsCatalogs
in interface Database
supportsCatalogs
in class AbstractJdbcDatabase
public String escapeIndexName(String catalogName, String schemaName, String indexName)
escapeIndexName
in interface Database
escapeIndexName
in class AbstractJdbcDatabase
public boolean supportsForeignKeyDisable()
supportsForeignKeyDisable
in interface Database
supportsForeignKeyDisable
in class AbstractJdbcDatabase
public boolean disableForeignKeyChecks() throws DatabaseException
disableForeignKeyChecks
in interface Database
disableForeignKeyChecks
in class AbstractJdbcDatabase
DatabaseException
public void enableForeignKeyChecks() throws DatabaseException
enableForeignKeyChecks
in interface Database
enableForeignKeyChecks
in class AbstractJdbcDatabase
DatabaseException
public CatalogAndSchema getSchemaFromJdbcInfo(String rawCatalogName, String rawSchemaName)
getSchemaFromJdbcInfo
in class AbstractJdbcDatabase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |