org.norther.tammi.root.ojb.platform
Class PlatformMySQLEL

java.lang.Object
  extended by org.apache.ojb.broker.platforms.PlatformDefaultImpl
      extended by org.apache.ojb.broker.platforms.PlatformMySQLImpl
          extended by org.norther.tammi.root.ojb.platform.PlatformMySQLEL
All Implemented Interfaces:
JoinSyntaxTypes, Platform, SQLPlatform

public class PlatformMySQLEL
extends PlatformMySQLImpl
implements SQLPlatform

Extends PlatformMySQLImpl with locator emulator support.

Version:
$Id: PlatformMySQLEL.java,v 1.2 2009/10/02 13:50:47 cvsimp Exp $
Author:
Ilkka Priha

Field Summary
 
Fields inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl
jcd, log, m_batchUpdatesChecked, m_supportsBatchUpdates, MAX_LIMIT_VALUE
 
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
PlatformMySQLEL(JdbcConnectionDescriptor jc)
          Constructs a new platform.
 
Method Summary
 StringBuffer appendQueryClass(ClassDescriptor cld, StringBuffer buffer)
          Appends a class descriptor table to the SQL query statement buffer.
 StringBuffer appendQueryColumn(String column, StringBuffer buffer)
          Appends a named column to the SQL query statement buffer.
 StringBuffer appendQueryColumn(String tableOrAlias, String column, StringBuffer buffer)
          Appends a named column with a table alias to the SQL query statement buffer.
 StringBuffer appendQueryField(FieldDescriptor fld, StringBuffer buffer)
          Appends a field descriptor column to the SQL query statement buffer.
 StringBuffer appendQueryField(String tableOrAlias, FieldDescriptor fld, StringBuffer buffer)
          Appends a field descriptor column with a table alias to the SQL query statement buffer.
 StringBuffer appendQueryTable(String tableOrAlias, StringBuffer buffer)
          Append a named table to the SQL query statement buffer.
 boolean locatorsUpdateCopy(Connection con)
           
 
Methods inherited from class org.apache.ojb.broker.platforms.PlatformMySQLImpl
addLimitSql, addPagingSql, concatenate, getEscapeClause, getJoinSyntaxType, getLastInsertIdentityQuery, getQuotedName, limitAfterSelect, limitBeforeOffset, postPrepareReadInValue, prepareNextValProcedureStatement, setObjectForStatement, supportsLimit, supportsOffset
 
Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl
addBatch, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, buildLimit, buildOffset, changeAutoCommitState, changeAutoCommitState, checkForBatchSupport, checkForGetGeneratedKeys, createSequenceQuery, createSequenceQuery, defaultSetBlob, defaultSetClob, detectLocatorsUpdateState, dropSequenceQuery, executeBatch, getConcatenationCharacter, getGeneratedKeys, getSelectForUpdateClause, initializeJdbcConnection, initializeJdbcConnection, limitOffsetValuesEmbedded, nextSequenceQuery, quoteName, registerOutResultSet, setNullForStatement, setObjectForStatement, supportsBatchOperations, supportsGetGeneratedKeys, supportsMultiColumnCountDistinct, supportsOrderByInSubSelect, useCountForResultsetSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ojb.broker.platforms.Platform
addBatch, addLimitSql, addPagingSql, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, buildLimit, buildOffset, changeAutoCommitState, changeAutoCommitState, concatenate, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, getEscapeClause, getGeneratedKeys, getJoinSyntaxType, getLastInsertIdentityQuery, getSelectForUpdateClause, initializeJdbcConnection, initializeJdbcConnection, limitAfterSelect, limitBeforeOffset, limitOffsetValuesEmbedded, nextSequenceQuery, postPrepareReadInValue, prepareNextValProcedureStatement, quoteName, registerOutResultSet, setNullForStatement, setObjectForStatement, setObjectForStatement, supportsBatchOperations, supportsGetGeneratedKeys, supportsLimit, supportsMultiColumnCountDistinct, supportsOffset, supportsOrderByInSubSelect, useCountForResultsetSize
 

Constructor Detail

PlatformMySQLEL

public PlatformMySQLEL(JdbcConnectionDescriptor jc)
Constructs a new platform.

Parameters:
jc - the connection.
Method Detail

locatorsUpdateCopy

public boolean locatorsUpdateCopy(Connection con)
Specified by:
locatorsUpdateCopy in interface Platform
Overrides:
locatorsUpdateCopy in class PlatformDefaultImpl

appendQueryTable

public StringBuffer appendQueryTable(String tableOrAlias,
                                     StringBuffer buffer)
Description copied from interface: SQLPlatform
Append a named table to the SQL query statement buffer.

Specified by:
appendQueryTable in interface SQLPlatform
Parameters:
tableOrAlias - the table or alias.
buffer - the statement buffer.
Returns:
the updated buffer.

appendQueryClass

public StringBuffer appendQueryClass(ClassDescriptor cld,
                                     StringBuffer buffer)
Description copied from interface: SQLPlatform
Appends a class descriptor table to the SQL query statement buffer.

Specified by:
appendQueryClass in interface SQLPlatform
Parameters:
cld - the class descriptor.
buffer - the statement buffer.
Returns:
the updated buffer.

appendQueryColumn

public StringBuffer appendQueryColumn(String column,
                                      StringBuffer buffer)
Description copied from interface: SQLPlatform
Appends a named column to the SQL query statement buffer.

Specified by:
appendQueryColumn in interface SQLPlatform
Parameters:
column - the column name.
buffer - the statement buffer.
Returns:
the updated buffer.

appendQueryColumn

public StringBuffer appendQueryColumn(String tableOrAlias,
                                      String column,
                                      StringBuffer buffer)
Description copied from interface: SQLPlatform
Appends a named column with a table alias to the SQL query statement buffer.

Specified by:
appendQueryColumn in interface SQLPlatform
Parameters:
tableOrAlias - the table or alias.
column - the column name.
buffer - the statement buffer.
Returns:
the updated buffer.

appendQueryField

public StringBuffer appendQueryField(FieldDescriptor fld,
                                     StringBuffer buffer)
Description copied from interface: SQLPlatform
Appends a field descriptor column to the SQL query statement buffer.

Specified by:
appendQueryField in interface SQLPlatform
Parameters:
fld - the field descriptor.
buffer - the statement buffer.
Returns:
the updated buffer.

appendQueryField

public StringBuffer appendQueryField(String tableOrAlias,
                                     FieldDescriptor fld,
                                     StringBuffer buffer)
Description copied from interface: SQLPlatform
Appends a field descriptor column with a table alias to the SQL query statement buffer.

Specified by:
appendQueryField in interface SQLPlatform
Parameters:
tableOrAlias - the table or alias.
fld - the field descriptor.
buffer - the statement buffer.
Returns:
the updated buffer.


Copyright © 2004 The Norther Organization. All rights reserved.