|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.database.AbstractDatabase
liquibase.database.core.MySQLDatabase
public class MySQLDatabase
Encapsulates MySQL database support.
| Field Summary | |
|---|---|
static String |
PRODUCT_NAME
|
| Fields inherited from class liquibase.database.AbstractDatabase |
|---|
currentDateTimeFunction, databaseFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith |
| Fields inherited from interface liquibase.servicelocator.PrioritizedService |
|---|
PRIORITY_DATABASE, PRIORITY_DEFAULT |
| Constructor Summary | |
|---|---|
MySQLDatabase()
|
|
| Method Summary | |
|---|---|
String |
convertRequestedSchemaToCatalog(String requestedSchema)
|
String |
convertRequestedSchemaToSchema(String requestedSchema)
|
boolean |
disableForeignKeyChecks()
|
void |
enableForeignKeyChecks()
|
String |
escapeDatabaseObject(String objectName)
|
String |
escapeIndexName(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. |
String |
getCurrentDateTimeFunction()
Returns database-specific function for generating the current date/time. |
protected String |
getDefaultDatabaseSchemaName()
|
String |
getDefaultDriver(String url)
If this database understands the given url, return the default driver class name. |
String |
getLineComment()
Returns database-specific line comment string. |
int |
getPriority()
|
String |
getTypeName()
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 |
supportsForeignKeyDisable()
|
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 |
| Field Detail |
|---|
public static final String PRODUCT_NAME
| Constructor Detail |
|---|
public MySQLDatabase()
| Method Detail |
|---|
public String getTypeName()
Database
public int getPriority()
public boolean isCorrectDatabaseImplementation(DatabaseConnection conn)
throws DatabaseException
Database
DatabaseExceptionpublic String getDefaultDriver(String url)
Database
public boolean supportsSequences()
AbstractDatabase
supportsSequences in interface DatabasesupportsSequences in class AbstractDatabasepublic boolean supportsInitiallyDeferrableColumns()
Database
public String getCurrentDateTimeFunction()
Database
public String getLineComment()
AbstractDatabase
getLineComment in interface DatabasegetLineComment in class AbstractDatabaseprotected String getAutoIncrementClause()
getAutoIncrementClause in class AbstractDatabaseprotected boolean generateAutoIncrementBy(BigInteger incrementBy)
generateAutoIncrementBy in class AbstractDatabaseprotected String getAutoIncrementOpening()
getAutoIncrementOpening in class AbstractDatabaseprotected String getAutoIncrementClosing()
getAutoIncrementClosing in class AbstractDatabaseprotected String getAutoIncrementStartWithClause()
getAutoIncrementStartWithClause in class AbstractDatabasepublic String getConcatSql(String... values)
Database
getConcatSql in interface DatabasegetConcatSql in class AbstractDatabasepublic boolean supportsTablespaces()
protected String getDefaultDatabaseSchemaName()
throws DatabaseException
getDefaultDatabaseSchemaName in class AbstractDatabaseDatabaseException
public String convertRequestedSchemaToSchema(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToSchema in interface DatabaseconvertRequestedSchemaToSchema in class AbstractDatabaseDatabaseException
public String convertRequestedSchemaToCatalog(String requestedSchema)
throws DatabaseException
convertRequestedSchemaToCatalog in interface DatabaseconvertRequestedSchemaToCatalog in class AbstractDatabaseDatabaseExceptionpublic String escapeDatabaseObject(String objectName)
escapeDatabaseObject in interface DatabaseescapeDatabaseObject in class AbstractDatabase
public String escapeIndexName(String schemaName,
String indexName)
escapeIndexName in interface DatabaseescapeIndexName in class AbstractDatabasepublic boolean supportsForeignKeyDisable()
supportsForeignKeyDisable in interface DatabasesupportsForeignKeyDisable in class AbstractDatabase
public boolean disableForeignKeyChecks()
throws DatabaseException
disableForeignKeyChecks in interface DatabasedisableForeignKeyChecks in class AbstractDatabaseDatabaseException
public void enableForeignKeyChecks()
throws DatabaseException
enableForeignKeyChecks in interface DatabaseenableForeignKeyChecks in class AbstractDatabaseDatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||