org.apache.ojb.broker.platforms
Class PlatformInformixImpl
java.lang.Object
org.apache.ojb.broker.platforms.PlatformDefaultImpl
org.apache.ojb.broker.platforms.PlatformInformixImpl
- All Implemented Interfaces:
- JoinSyntaxTypes, Platform
- public class PlatformInformixImpl
- extends PlatformDefaultImpl
This class extends PlatformDefaultImpl
and defines specific
behavior for the Informix platform.
- Version:
- 1.0
- Author:
- Thomas Mahler
Method Summary |
void |
initializeJdbcConnection(JdbcConnectionDescriptor jcd,
java.sql.Connection conn)
Called immediately after a JDBC connection has been created by a
ConnectionFactory implementation (not used for DataSource connections). |
java.sql.CallableStatement |
prepareNextValProcedureStatement(java.sql.Connection con,
java.lang.String procedureName,
java.lang.String sequenceName)
Create stored procedure call for a special sequence manager implementation
SequenceManagerStoredProcedureImpl ,
because it seems that jdbc-driver differ in handling of CallableStatement. |
Methods inherited from class org.apache.ojb.broker.platforms.PlatformDefaultImpl |
addBatch, addPagingSql, afterStatementClose, afterStatementCreate, beforeBatch, beforeStatementClose, bindPagingParameters, bindPagingParametersFirst, changeAutoCommitState, concatenate, createSequenceQuery, createSequenceQuery, dropSequenceQuery, executeBatch, getEscapeClause, getJoinSyntaxType, getLastInsertIdentityQuery, nextSequenceQuery, registerOutResultSet, setNullForStatement, setObjectForStatement, supportsBatchOperations, supportsMultiColumnCountDistinct, supportsPaging, useCountForResultsetSize |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformInformixImpl
public PlatformInformixImpl()
initializeJdbcConnection
public void initializeJdbcConnection(JdbcConnectionDescriptor jcd,
java.sql.Connection conn)
throws PlatformException
- Description copied from interface:
Platform
- Called immediately after a JDBC connection has been created by a
ConnectionFactory implementation (not used for DataSource connections).
- Specified by:
initializeJdbcConnection
in interface Platform
- Overrides:
initializeJdbcConnection
in class PlatformDefaultImpl
- Throws:
PlatformException
- See Also:
Platform.initializeJdbcConnection(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor, java.sql.Connection)
prepareNextValProcedureStatement
public java.sql.CallableStatement prepareNextValProcedureStatement(java.sql.Connection con,
java.lang.String procedureName,
java.lang.String sequenceName)
throws PlatformException
- Description copied from interface:
Platform
- Create stored procedure call for a special sequence manager implementation
SequenceManagerStoredProcedureImpl
,
because it seems that jdbc-driver differ in handling of CallableStatement.
Note: The out-parameter of the stored procedure must be registered at
first position, because lookup for new long id in the implementation:
Connection con = broker.serviceConnectionManager().getConnection();
cs = getPlatform().prepareNextValProcedureStatement(con, PROCEDURE_NAME, sequenceName);
cs.executeUpdate();
return cs.getLong(1);
- Specified by:
prepareNextValProcedureStatement
in interface Platform
- Overrides:
prepareNextValProcedureStatement
in class PlatformDefaultImpl
- Throws:
PlatformException
- See Also:
PlatformDefaultImpl.prepareNextValProcedureStatement(java.sql.Connection,
java.lang.String, java.lang.String)
(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