com.liferay.portal.dao.db
Class MySQLDB
java.lang.Object
com.liferay.portal.dao.db.BaseDB
com.liferay.portal.dao.db.MySQLDB
- All Implemented Interfaces:
- DB
public class MySQLDB
- extends BaseDB
| Fields inherited from interface com.liferay.portal.kernel.dao.db.DB |
MINIMAL, POPULATED, SHARDED, TYPE_ALL, TYPE_DB2, TYPE_DERBY, TYPE_FIREBIRD, TYPE_HYPERSONIC, TYPE_INFORMIX, TYPE_INGRES, TYPE_INTERBASE, TYPE_JDATASTORE, TYPE_MYSQL, TYPE_ORACLE, TYPE_POSTGRESQL, TYPE_SAP, TYPE_SQLSERVER, TYPE_SYBASE |
|
Constructor Summary |
protected |
MySQLDB()
|
| Methods inherited from class com.liferay.portal.dao.db.BaseDB |
addIndexes, buildColumnNameTokens, buildColumnTypeTokens, buildCreateFile, buildCreateFile, buildSQLFile, buildTemplate, convertTimestamp, dropIndexes, evaluateVM, getSuffix, getTemplateFalse, getTemplateTrue, getType, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsScrollableResults, isSupportsStringCaseSensitiveQuery, readFile, readSQL, removeBooleanIndexes, removeInserts, removeLongInserts, removeNull, replaceTemplate, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, setSupportsStringCaseSensitiveQuery, updateIndexes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLDB
protected MySQLDB()
getInstance
public static DB getInstance()
buildSQL
public String buildSQL(String template)
throws IOException
- Specified by:
buildSQL in interface DB- Specified by:
buildSQL in class BaseDB
- Throws:
IOException
getIndexes
public List<Index> getIndexes()
throws SQLException
- Specified by:
getIndexes in interface DB- Overrides:
getIndexes in class BaseDB
- Throws:
SQLException
isSupportsDateMilliseconds
public boolean isSupportsDateMilliseconds()
- Specified by:
isSupportsDateMilliseconds in interface DB- Overrides:
isSupportsDateMilliseconds in class BaseDB
isSupportsUpdateWithInnerJoin
public boolean isSupportsUpdateWithInnerJoin()
- Specified by:
isSupportsUpdateWithInnerJoin in interface DB- Overrides:
isSupportsUpdateWithInnerJoin in class BaseDB
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
reword
protected String reword(String data)
throws IOException
- Specified by:
reword in class BaseDB
- Throws:
IOException