com.liferay.portal.tools.sql
Class MySQLUtil

java.lang.Object
  extended bycom.liferay.portal.tools.sql.DBUtil
      extended bycom.liferay.portal.tools.sql.MySQLUtil

public class MySQLUtil
extends DBUtil

View Source

Author:
Alexander Chow

Field Summary
 
Fields inherited from class com.liferay.portal.tools.sql.DBUtil
ALTER_COLUMN_NAME, ALTER_COLUMN_TYPE, DB_TYPE_DB2, DB_TYPE_DERBY, DB_TYPE_FIREBIRD, DB_TYPE_HYPERSONIC, DB_TYPE_INFORMIX, DB_TYPE_INTERBASE, DB_TYPE_JDATASTORE, DB_TYPE_MYSQL, DB_TYPE_ORACLE, DB_TYPE_POSTGRESQL, DB_TYPE_SAP, DB_TYPE_SQLSERVER, DB_TYPE_SYBASE, DROP_PRIMARY_KEY, REWORD_TEMPLATE, TEMPLATE
 
Constructor Summary
protected MySQLUtil()
           
 
Method Summary
protected  void buildCreateFile(java.lang.String databaseName, boolean minimal)
           
 java.lang.String buildSQL(java.lang.String template)
           
static DBUtil getInstance()
           
protected  java.lang.String getServerName()
           
protected  java.lang.String[] getTemplate()
           
protected  java.lang.String reword(java.lang.String data)
           
 
Methods inherited from class com.liferay.portal.tools.sql.DBUtil
buildColumnNameTokens, buildColumnTypeTokens, buildCreateFile, buildSQLFile, buildTemplate, convertTimestamp, evaluateVM, getInstance, getMinimalSuffix, readSQL, removeBooleanIndexes, removeInserts, removeLongInserts, removeNull, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLUtil

protected MySQLUtil()
Method Detail

getInstance

public static DBUtil getInstance()

buildSQL

public java.lang.String buildSQL(java.lang.String template)
                          throws java.io.IOException
Specified by:
buildSQL in class DBUtil
Throws:
java.io.IOException

buildCreateFile

protected void buildCreateFile(java.lang.String databaseName,
                               boolean minimal)
                        throws java.io.IOException
Specified by:
buildCreateFile in class DBUtil
Throws:
java.io.IOException

getServerName

protected java.lang.String getServerName()
Specified by:
getServerName in class DBUtil

getTemplate

protected java.lang.String[] getTemplate()
Specified by:
getTemplate in class DBUtil

reword

protected java.lang.String reword(java.lang.String data)
                           throws java.io.IOException
Specified by:
reword in class DBUtil
Throws:
java.io.IOException