ALTER_COLUMN_NAME, ALTER_COLUMN_TYPE, ALTER_TABLE_NAME, columnTypePattern, CREATE_TABLE, DROP_INDEX, DROP_PRIMARY_KEY, RENAME_TABLE_TEMPLATE, REWORD_TEMPLATE, SQL_VARCHAR_TYPES, TEMPLATE
Modifier | Constructor and Description |
---|---|
protected |
MySQLDB(com.liferay.portal.kernel.dao.db.DBType dbType,
int majorVersion,
int minorVersion) |
|
MySQLDB(int majorVersion,
int minorVersion) |
Modifier and Type | Method and Description |
---|---|
void |
alterColumnType(Connection connection,
String tableName,
String columnName,
String newColumnType) |
void |
alterTableDropColumn(Connection connection,
String tableName,
String columnName) |
String |
buildSQL(String template) |
protected void |
doRenameTables(Connection connection,
com.liferay.portal.kernel.util.ObjectValuePair<String,String>... tableNameObjectValuePairs) |
List<com.liferay.portal.kernel.dao.db.Index> |
getIndexes(Connection connection) |
String |
getNewUuidFunctionName() |
String |
getPopulateSQL(String databaseName,
String sqlContent) |
String |
getRecreateSQL(String databaseName) |
protected int[] |
getSQLTypes() |
protected String[] |
getTemplate() |
boolean |
isSupportsDBPartition() |
boolean |
isSupportsNewUuidFunction() |
boolean |
isSupportsUpdateWithInnerJoin() |
protected String |
reword(String data) |
addIndexes, addPrimaryKey, alterColumnName, alterTableAddColumn, buildColumnNameTokens, buildColumnTypeTokens, buildTableNameTokens, copyTableRows, copyTableStructure, createSyncDeleteTrigger, createSyncInsertTrigger, createSyncUpdateTrigger, dropIndexes, dropIndexes, dropTrigger, getCopyTableStructureSQL, getDBType, getDefaultValue, getIndexes, getIndexResultSet, getMajorVersion, getMinorVersion, getPrimaryKeyColumnNames, getRenameTableSQL, getSQLType, getSQLTypeDecimalDigits, getSQLTypeSize, getSQLVarcharSizes, getTemplateBlob, getTemplateFalse, getTemplateTrue, getVersionString, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsDDLRollback, isSupportsDuplicatedIndexName, isSupportsInlineDistinct, isSupportsQueryingAfterException, isSupportsScrollableResults, isSupportsStringCaseSensitiveQuery, limitColumnLength, process, removePrimaryKey, renameTables, replaceTemplate, runSQL, runSQL, runSQL, runSQL, runSQLTemplateString, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, syncTables, updateIndexes
public MySQLDB(int majorVersion, int minorVersion)
protected MySQLDB(com.liferay.portal.kernel.dao.db.DBType dbType, int majorVersion, int minorVersion)
public void alterColumnType(Connection connection, String tableName, String columnName, String newColumnType) throws Exception
alterColumnType
in interface com.liferay.portal.kernel.dao.db.DB
alterColumnType
in class BaseDB
Exception
public void alterTableDropColumn(Connection connection, String tableName, String columnName) throws Exception
alterTableDropColumn
in interface com.liferay.portal.kernel.dao.db.DB
alterTableDropColumn
in class BaseDB
Exception
public String buildSQL(String template) throws IOException
public List<com.liferay.portal.kernel.dao.db.Index> getIndexes(Connection connection) throws SQLException
getIndexes
in interface com.liferay.portal.kernel.dao.db.DB
getIndexes
in class BaseDB
SQLException
public String getNewUuidFunctionName()
public String getPopulateSQL(String databaseName, String sqlContent)
public String getRecreateSQL(String databaseName)
public boolean isSupportsDBPartition()
isSupportsDBPartition
in interface com.liferay.portal.kernel.dao.db.DB
isSupportsDBPartition
in class BaseDB
public boolean isSupportsNewUuidFunction()
public boolean isSupportsUpdateWithInnerJoin()
isSupportsUpdateWithInnerJoin
in interface com.liferay.portal.kernel.dao.db.DB
isSupportsUpdateWithInnerJoin
in class BaseDB
protected final void doRenameTables(Connection connection, com.liferay.portal.kernel.util.ObjectValuePair<String,String>... tableNameObjectValuePairs) throws Exception
doRenameTables
in class BaseDB
Exception
protected int[] getSQLTypes()
getSQLTypes
in class BaseDB
protected String[] getTemplate()
getTemplate
in class BaseDB