org.apache.ojb.broker.platforms
Class PlatformDerbyImpl
java.lang.Object
org.apache.ojb.broker.platforms.PlatformDefaultImpl
org.apache.ojb.broker.platforms.PlatformDerbyImpl
- All Implemented Interfaces:
- JoinSyntaxTypes, Platform
public class PlatformDerbyImpl
- extends PlatformDefaultImpl
This class defines specific behavior for the Derby platform.
|
Method Summary |
byte |
getJoinSyntaxType()
Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface |
String |
getLastInsertIdentityQuery(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(PreparedStatement ps,
int index,
Object value,
int jdbcType)
Called to let the Platform implementation perform any JDBC type-specific operations
needed by the driver when binding positional parameters for a PreparedStatement. |
boolean |
supportsMultiColumnCountDistinct()
Whether the platform supports a COUNT DISTINCT across multiple columns. |
| Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl |
addBatch, addPagingSql, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParameters, bindPagingParametersFirst, changeAutoCommitState, checkForBatchSupport, concatenate, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, getConcatenationCharacter, getEscapeClause, initializeJdbcConnection, nextSequenceQuery, prepareNextValProcedureStatement, registerOutResultSet, setNullForStatement, supportsBatchOperations, supportsPaging, useCountForResultsetSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformDerbyImpl
public PlatformDerbyImpl()
getJoinSyntaxType
public byte getJoinSyntaxType()
- Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
- Specified by:
getJoinSyntaxType in interface Platform- Overrides:
getJoinSyntaxType in class PlatformDefaultImpl
- See Also:
Platform.getJoinSyntaxType()
supportsMultiColumnCountDistinct
public boolean supportsMultiColumnCountDistinct()
- Whether the platform supports a COUNT DISTINCT across multiple columns.
- Specified by:
supportsMultiColumnCountDistinct in interface Platform- Overrides:
supportsMultiColumnCountDistinct in class PlatformDefaultImpl
- Returns:
true if it is supported
setObjectForStatement
public void setObjectForStatement(PreparedStatement ps,
int index,
Object value,
int jdbcType)
throws SQLException
- Called to let the Platform implementation perform any JDBC type-specific operations
needed by the driver when binding positional parameters for a PreparedStatement.
- Specified by:
setObjectForStatement in interface Platform- Overrides:
setObjectForStatement in class PlatformDefaultImpl
- Throws:
SQLException
getLastInsertIdentityQuery
public String getLastInsertIdentityQuery(String tableName)
- If database supports native key generation via identity column, this
method should return the sql-query to obtain the last generated id.
- Specified by:
getLastInsertIdentityQuery in interface Platform- Overrides:
getLastInsertIdentityQuery in class PlatformDefaultImpl
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.