com.liferay.portal.dao.db
Class DB2DB
java.lang.Object
com.liferay.portal.dao.db.BaseDB
com.liferay.portal.dao.db.DB2DB
- All Implemented Interfaces:
- DB
public class DB2DB
- extends BaseDB
|
Constructor Summary |
DB2DB(int majorVersion,
int minorVersion)
|
| Methods inherited from class com.liferay.portal.dao.db.BaseDB |
addIndexes, applyMaxStringIndexLengthLimitation, buildColumnNameTokens, buildColumnTypeTokens, buildCreateFile, buildCreateFile, buildSQLFile, buildTableNameTokens, buildTemplate, convertTimestamp, dropIndexes, evaluateVM, getCreateTablesContent, getIndexes, getMajorVersion, getMinorVersion, getSuffix, getTemplateFalse, getTemplateTrue, getType, getVersionString, handleSQLException, increment, increment, isSupportsAlterColumnName, isSupportsQueryingAfterException, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, readFile, readSQL, removeBooleanIndexes, removeInserts, removeLongInserts, removeNull, replaceTemplate, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, updateIndexes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2DB
public DB2DB(int majorVersion,
int minorVersion)
buildSQL
public String buildSQL(String template)
throws IOException
- Specified by:
buildSQL in interface DB- Specified by:
buildSQL in class BaseDB
- Throws:
IOException
isSupportsAlterColumnType
public boolean isSupportsAlterColumnType()
- Specified by:
isSupportsAlterColumnType in interface DB- Overrides:
isSupportsAlterColumnType in class BaseDB
isSupportsInlineDistinct
public boolean isSupportsInlineDistinct()
- Specified by:
isSupportsInlineDistinct in interface DB- Overrides:
isSupportsInlineDistinct in class BaseDB
isSupportsScrollableResults
public boolean isSupportsScrollableResults()
- Specified by:
isSupportsScrollableResults in interface DB- Overrides:
isSupportsScrollableResults in class BaseDB
runSQL
public void runSQL(String template)
throws IOException,
SQLException
- Specified by:
runSQL in interface DB- Overrides:
runSQL in class BaseDB
- Throws:
IOException
SQLException
runSQL
public void runSQL(String[] templates)
throws IOException,
SQLException
- Specified by:
runSQL in interface DB- Overrides:
runSQL in class BaseDB
- Throws:
IOException
SQLException
buildCreateFileContent
protected String buildCreateFileContent(String sqlDir,
String databaseName,
int population)
throws IOException
- Specified by:
buildCreateFileContent in class BaseDB
- Throws:
IOException
getServerName
protected String getServerName()
- Specified by:
getServerName in class BaseDB
getTemplate
protected String[] getTemplate()
- Specified by:
getTemplate in class BaseDB
isRequiresReorgTable
protected boolean isRequiresReorgTable(Connection con,
String tableName)
throws SQLException
- Throws:
SQLException
reorgTable
protected void reorgTable(Connection con,
String tableName)
throws SQLException
- Throws:
SQLException
reorgTables
protected void reorgTables(String[] templates)
throws SQLException
- Throws:
SQLException
reword
protected String reword(String data)
throws IOException
- Specified by:
reword in class BaseDB
- Throws:
IOException