public class DB2DB extends BaseDB
ALTER_COLUMN_NAME, ALTER_COLUMN_TYPE, ALTER_TABLE_NAME, DROP_INDEX, DROP_PRIMARY_KEY, RENAME_TABLE_TEMPLATE, REWORD_TEMPLATE, TEMPLATE| Constructor and Description |
|---|
DB2DB(int majorVersion,
int minorVersion) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
buildCreateFileContent(java.lang.String sqlDir,
java.lang.String databaseName,
int population) |
java.lang.String |
buildSQL(java.lang.String template) |
protected java.lang.String |
getServerName() |
protected java.lang.String[] |
getTemplate() |
protected boolean |
isRequiresReorgTable(java.sql.Connection con,
java.lang.String tableName) |
boolean |
isSupportsAlterColumnType() |
boolean |
isSupportsInlineDistinct() |
boolean |
isSupportsScrollableResults() |
protected void |
reorgTable(java.sql.Connection con,
java.lang.String tableName) |
protected void |
reorgTables(java.lang.String[] templates) |
protected java.lang.String |
reword(java.lang.String data) |
void |
runSQL(java.lang.String template) |
void |
runSQL(java.lang.String[] templates) |
addIndexes, applyMaxStringIndexLengthLimitation, buildColumnNameTokens, buildColumnTypeTokens, buildCreateFile, buildCreateFile, buildSQLFile, buildTableNameTokens, buildTemplate, convertTimestamp, dropIndexes, evaluateVM, getCreateTablesContent, getDBType, getIndexes, getMajorVersion, getMinorVersion, getSuffix, getTemplateFalse, getTemplateTrue, getVersionString, handleSQLException, increment, increment, isSupportsAlterColumnName, isSupportsQueryingAfterException, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, readFile, readSQL, removeBooleanIndexes, removeInserts, removeLongInserts, removeNull, replaceTemplate, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, updateIndexespublic java.lang.String buildSQL(java.lang.String template)
throws java.io.IOException
public boolean isSupportsAlterColumnType()
isSupportsAlterColumnType in interface com.liferay.portal.kernel.dao.db.DBisSupportsAlterColumnType in class BaseDBpublic boolean isSupportsInlineDistinct()
isSupportsInlineDistinct in interface com.liferay.portal.kernel.dao.db.DBisSupportsInlineDistinct in class BaseDBpublic boolean isSupportsScrollableResults()
isSupportsScrollableResults in interface com.liferay.portal.kernel.dao.db.DBisSupportsScrollableResults in class BaseDBpublic void runSQL(java.lang.String template)
throws java.io.IOException,
java.sql.SQLException
public void runSQL(java.lang.String[] templates)
throws java.io.IOException,
java.sql.SQLException
protected java.lang.String buildCreateFileContent(java.lang.String sqlDir,
java.lang.String databaseName,
int population)
throws java.io.IOException
buildCreateFileContent in class BaseDBjava.io.IOExceptionprotected java.lang.String getServerName()
getServerName in class BaseDBprotected java.lang.String[] getTemplate()
getTemplate in class BaseDBprotected boolean isRequiresReorgTable(java.sql.Connection con,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void reorgTable(java.sql.Connection con,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void reorgTables(java.lang.String[] templates)
throws java.sql.SQLException
java.sql.SQLException