org.apache.ojb.broker.platforms
Class PlatformMySQLImpl

java.lang.Object
  extended by org.apache.ojb.broker.platforms.PlatformDefaultImpl
      extended by org.apache.ojb.broker.platforms.PlatformMySQLImpl
All Implemented Interfaces:
org.apache.ojb.broker.accesslayer.JoinSyntaxTypes, org.apache.ojb.broker.platforms.Platform

public class PlatformMySQLImpl
extends org.apache.ojb.broker.platforms.PlatformDefaultImpl

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl
log, m_batchUpdatesChecked, m_supportsBatchUpdates
 
Fields inherited from interface org.apache.ojb.broker.accesslayer.JoinSyntaxTypes
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX
 
Constructor Summary
PlatformMySQLImpl()
           
 
Method Summary
 void addPagingSql(StringBuffer anSqlString)
           
 String concatenate(String[] theColumns)
           
 String createSequenceQuery(String sequenceName)
           
 String dropSequenceQuery(String sequenceName)
           
 String getEscapeClause(org.apache.ojb.broker.query.LikeCriteria aCriteria)
           
 byte getJoinSyntaxType()
          Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
 String getLastInsertIdentityQuery(String tableName)
           
 String nextSequenceQuery(String sequenceName)
           
 CallableStatement prepareNextValProcedureStatement(Connection con, String procedureName, String sequenceName)
           
 void setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType)
           
 boolean supportsPaging()
           
 
Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl
addBatch, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParameters, bindPagingParametersFirst, changeAutoCommitState, checkForBatchSupport, createSequenceQuery, executeBatch, getConcatenationCharacter, initializeJdbcConnection, registerOutResultSet, setNullForStatement, supportsBatchOperations, supportsMultiColumnCountDistinct, useCountForResultsetSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformMySQLImpl

public PlatformMySQLImpl()
Method Detail

setObjectForStatement

public void setObjectForStatement(PreparedStatement ps,
                                  int index,
                                  Object value,
                                  int sqlType)
                           throws SQLException
Specified by:
setObjectForStatement in interface org.apache.ojb.broker.platforms.Platform
Overrides:
setObjectForStatement in class org.apache.ojb.broker.platforms.PlatformDefaultImpl
Throws:
SQLException

getJoinSyntaxType

public byte getJoinSyntaxType()
Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface

Specified by:
getJoinSyntaxType in interface org.apache.ojb.broker.platforms.Platform
Overrides:
getJoinSyntaxType in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

getLastInsertIdentityQuery

public String getLastInsertIdentityQuery(String tableName)
Specified by:
getLastInsertIdentityQuery in interface org.apache.ojb.broker.platforms.Platform
Overrides:
getLastInsertIdentityQuery in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

addPagingSql

public void addPagingSql(StringBuffer anSqlString)
Specified by:
addPagingSql in interface org.apache.ojb.broker.platforms.Platform
Overrides:
addPagingSql in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

createSequenceQuery

public String createSequenceQuery(String sequenceName)
Specified by:
createSequenceQuery in interface org.apache.ojb.broker.platforms.Platform
Overrides:
createSequenceQuery in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

nextSequenceQuery

public String nextSequenceQuery(String sequenceName)
Specified by:
nextSequenceQuery in interface org.apache.ojb.broker.platforms.Platform
Overrides:
nextSequenceQuery in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

dropSequenceQuery

public String dropSequenceQuery(String sequenceName)
Specified by:
dropSequenceQuery in interface org.apache.ojb.broker.platforms.Platform
Overrides:
dropSequenceQuery in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

prepareNextValProcedureStatement

public CallableStatement prepareNextValProcedureStatement(Connection con,
                                                          String procedureName,
                                                          String sequenceName)
                                                   throws org.apache.ojb.broker.platforms.PlatformException
Specified by:
prepareNextValProcedureStatement in interface org.apache.ojb.broker.platforms.Platform
Overrides:
prepareNextValProcedureStatement in class org.apache.ojb.broker.platforms.PlatformDefaultImpl
Throws:
org.apache.ojb.broker.platforms.PlatformException

supportsPaging

public boolean supportsPaging()
Specified by:
supportsPaging in interface org.apache.ojb.broker.platforms.Platform
Overrides:
supportsPaging in class org.apache.ojb.broker.platforms.PlatformDefaultImpl

concatenate

public String concatenate(String[] theColumns)
Specified by:
concatenate in interface org.apache.ojb.broker.platforms.Platform
Overrides:
concatenate in class org.apache.ojb.broker.platforms.PlatformDefaultImpl
See Also:
Platform.concatenate(java.lang.String[])

getEscapeClause

public String getEscapeClause(org.apache.ojb.broker.query.LikeCriteria aCriteria)
Specified by:
getEscapeClause in interface org.apache.ojb.broker.platforms.Platform
Overrides:
getEscapeClause in class org.apache.ojb.broker.platforms.PlatformDefaultImpl
See Also:
Platform.getEscapeClause(org.apache.ojb.broker.query.LikeCriteria)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.