public class PlatformMySQLImpl extends PlatformDefaultImpl
ORACLE_JOIN_SYNTAX, SQL92_JOIN_SYNTAX, SQL92_NOPAREN_JOIN_SYNTAX, SYBASE_JOIN_SYNTAX| Constructor and Description |
|---|
PlatformMySQLImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPagingSql(java.lang.StringBuffer anSqlString)
Add the LIMIT or equivalent to the SQL
SQL-Paging is not yet supported
|
java.lang.String |
concatenate(java.lang.String[] theColumns)
Concatenate the columns
ie: col1 || col2 || col3 (ANSI)
ie: col1 + col2 + col3 (MS SQL-Server)
ie: concat(col1, col2, col3) (MySql)
|
java.lang.String |
getEscapeClause(LikeCriteria aCriteria)
Answer the Clause used Escape wildcards in LIKE
|
byte |
getJoinSyntaxType()
Get join syntax type for this RDBMS - one on of the constants from
JoinSyntaxType interface
|
java.lang.String |
getLastInsertIdentityQuery(java.lang.String tableName)
If database supports native key generation via identity column, this
method should return the sql-query to obtain the last generated id.
|
void |
setObjectForStatement(java.sql.PreparedStatement ps,
int index,
java.lang.Object value,
int sqlType)
Called to let the Platform implementation perform any JDBC type-specific operations
needed by the driver when binding positional parameters for a PreparedStatement.
|
boolean |
supportsPaging()
Answer true if LIMIT or equivalent is supported
SQL-Paging is not yet supported
|
addBatch, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParameters, bindPagingParametersFirst, changeAutoCommitState, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, initializeJdbcConnection, nextSequenceQuery, prepareNextValProcedureStatement, registerOutResultSet, setNullForStatement, supportsBatchOperations, supportsMultiColumnCountDistinct, useCountForResultsetSizepublic void setObjectForStatement(java.sql.PreparedStatement ps,
int index,
java.lang.Object value,
int sqlType)
throws java.sql.SQLException
PlatformsetObjectForStatement in interface PlatformsetObjectForStatement in class PlatformDefaultImpljava.sql.SQLExceptionpublic byte getJoinSyntaxType()
getJoinSyntaxType in interface PlatformgetJoinSyntaxType in class PlatformDefaultImplPlatform.getJoinSyntaxType()public java.lang.String getLastInsertIdentityQuery(java.lang.String tableName)
PlatformgetLastInsertIdentityQuery in interface PlatformgetLastInsertIdentityQuery in class PlatformDefaultImplpublic void addPagingSql(java.lang.StringBuffer anSqlString)
PlatformaddPagingSql in interface PlatformaddPagingSql in class PlatformDefaultImplPlatform.addPagingSql(java.lang.StringBuffer)public boolean supportsPaging()
PlatformsupportsPaging in interface PlatformsupportsPaging in class PlatformDefaultImplPlatform.supportsPaging()public java.lang.String concatenate(java.lang.String[] theColumns)
Platformconcatenate in interface Platformconcatenate in class PlatformDefaultImplPlatform.concatenate(java.lang.String[])public java.lang.String getEscapeClause(LikeCriteria aCriteria)
PlatformgetEscapeClause in interface PlatformgetEscapeClause in class PlatformDefaultImplPlatform.getEscapeClause(org.apache.ojb.broker.query.LikeCriteria)(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30