org.kuali.rice.core.framework.persistence.platform
Class MySQLDatabasePlatform

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.platform.ANSISqlDatabasePlatform
      extended by org.kuali.rice.core.framework.persistence.platform.MySQLDatabasePlatform
All Implemented Interfaces:
DatabasePlatform

public class MySQLDatabasePlatform
extends ANSISqlDatabasePlatform


Constructor Summary
MySQLDatabasePlatform()
           
 
Method Summary
 void applyLimit(Integer limit, org.apache.ojb.broker.query.Criteria criteria)
           
 String escapeString(String sqlString)
          Performs MySQL-specific escaping of String parameters.
 String getCurTimeFunction()
           
 String getDateFormatString(String dateFormatString)
           
 String getLockRouteHeaderQuerySQL(String documentId, boolean wait)
          Generates the query used to select route header rows for update
 Long getNextValSQL(String sequenceName, javax.persistence.EntityManager entityManager)
           
 Long getNextValSQL(String sequenceName, org.apache.ojb.broker.PersistenceBroker persistenceBroker)
          Supplies a parameterized sequence incrementation query
 String getSelectForUpdateSuffix(long waitMillis)
          Returns the suffix to append to a SQL query in order to perform a "select for update" lock on the table
 String getStrToDateFunction()
           
 boolean isSITCacheSupported()
           
 String toString()
           
 
Methods inherited from class org.kuali.rice.core.framework.persistence.platform.ANSISqlDatabasePlatform
getCreateTableFromTableSql, getDateSQL, getDropTableSql, getInsertDataFromTableSql, getIsNullFunction, getTruncateTableSql, getUpperCaseFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MySQLDatabasePlatform

public MySQLDatabasePlatform()
Method Detail

getLockRouteHeaderQuerySQL

public String getLockRouteHeaderQuerySQL(String documentId,
                                         boolean wait)
Description copied from interface: DatabasePlatform
Generates the query used to select route header rows for update

Parameters:
documentId - id of the routeHeader to select for update
wait - whether to block until lock is released
Returns:
the query used to select route header rows for update

getStrToDateFunction

public String getStrToDateFunction()

getCurTimeFunction

public String getCurTimeFunction()

applyLimit

public void applyLimit(Integer limit,
                       org.apache.ojb.broker.query.Criteria criteria)

getNextValSQL

public Long getNextValSQL(String sequenceName,
                          org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Description copied from interface: DatabasePlatform
Supplies a parameterized sequence incrementation query

Parameters:
sequenceName - name of the sequence to be incremented
Returns:
parameterized sequence incrementation query

getNextValSQL

public Long getNextValSQL(String sequenceName,
                          javax.persistence.EntityManager entityManager)

isSITCacheSupported

public boolean isSITCacheSupported()

toString

public String toString()
Overrides:
toString in class ANSISqlDatabasePlatform

getSelectForUpdateSuffix

public String getSelectForUpdateSuffix(long waitMillis)
Description copied from interface: DatabasePlatform
Returns the suffix to append to a SQL query in order to perform a "select for update" lock on the table

Parameters:
waitMillis - the milliseconds to wait, -1 forever, 0 if no wait
Returns:
the suffix to append to a SQL query in order to perform a "select for update" lock on the table

getDateFormatString

public String getDateFormatString(String dateFormatString)

escapeString

public String escapeString(String sqlString)
Performs MySQL-specific escaping of String parameters.

Parameters:
sqlString - The String to escape.
Returns:
The String from sqlString, but with all of its DB-specific special characters escaped.
See Also:
DatabasePlatform.escapeString(java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.