org.synchronoss.cpo.jdbc
Class JdbcCallableStatementFactory

Package class diagram package JdbcCallableStatementFactory
java.lang.Object
  extended by org.synchronoss.cpo.jdbc.JdbcCallableStatementFactory
All Implemented Interfaces:
CpoReleasible

public class JdbcCallableStatementFactory
extends java.lang.Object
implements CpoReleasible

JdbcCallableStatementFactory is the object that encapsulates the creation of the actual CallableStatement for the JDBC driver.

Author:
david berry

Constructor Summary
JdbcCallableStatementFactory(java.sql.Connection conn, JdbcCpoAdapter jca, JdbcQuery jq, java.lang.Object obj)
          Used to build the CallableStatement that is used by CPO to create the actual JDBC CallableStatement.
 
Method Summary
 void AddReleasible(CpoReleasible releasible)
          Adds a releasible object to this object.
 java.sql.CallableStatement getCallableStatement()
          returns the jdbc callable statment associated with this object
 java.util.ArrayList<JdbcParameter> getOutParameters()
          returns the Out parameters from the callable statement
 void release()
          Called by the CPO framework.
protected  void setCallableStatement(java.sql.CallableStatement cs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcCallableStatementFactory

public JdbcCallableStatementFactory(java.sql.Connection conn,
                                    JdbcCpoAdapter jca,
                                    JdbcQuery jq,
                                    java.lang.Object obj)
                             throws CpoException
Used to build the CallableStatement that is used by CPO to create the actual JDBC CallableStatement. The constructor is called by the internal CPO framework. This is not to be used by users of CPO. Programmers that build Transforms may need to use this object to get access to the actual connection.

Parameters:
conn - The actual jdbc connection that will be used to create the callable statement.
jca - The JdbcCpoAdapter that is controlling this transaction
jq - The JdbcQuery that is being executed
obj - The pojo that is being acted upon
Throws:
CpoException - if a CPO error occurs
java.sql.SQLException - if a JDBC error occurs
Method Detail

getCallableStatement

public java.sql.CallableStatement getCallableStatement()
returns the jdbc callable statment associated with this object


setCallableStatement

protected void setCallableStatement(java.sql.CallableStatement cs)

getOutParameters

public java.util.ArrayList<JdbcParameter> getOutParameters()
returns the Out parameters from the callable statement


AddReleasible

public void AddReleasible(CpoReleasible releasible)
Adds a releasible object to this object. The release method on the releasible will be called when the callableStatement is executed.


release

public void release()
             throws CpoException
Called by the CPO framework. This method calls the release on all the CpoReleasible associated with this object

Specified by:
release in interface CpoReleasible
Throws:
CpoException


Copyright © 2009. All Rights Reserved.