Class JdbcCallableStatementFactory

java.lang.Object
org.synchronoss.cpo.jdbc.JdbcCallableStatementFactory
All Implemented Interfaces:
CpoReleasable

public class JdbcCallableStatementFactory extends Object implements CpoReleasable
JdbcCallableStatementFactory is the object that encapsulates the creation of the actual CallableStatement for the JDBC driver.
Author:
david berry
  • Constructor Details

    • JdbcCallableStatementFactory

      public JdbcCallableStatementFactory(Connection conn, JdbcCpoAdapter jca, CpoFunction function, Object criteria, CpoClass resultClass) 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
      function - The CpoFunction that is being executed
      criteria - The bean that is being acted upon
      resultClass - An instance of the result class
      Throws:
      CpoException - if a CPO error occurs
  • Method Details

    • getCallableStatement

      public CallableStatement getCallableStatement()
      returns the jdbc callable statment associated with this object
      Returns:
      The CallableStatement
    • getOutArguments

      public List<CpoArgument> getOutArguments()
      returns the Out parameters from the callable statement
      Returns:
      The out arguments from the Callable Statement
    • AddReleasable

      public void AddReleasable(CpoReleasable releasable)
      Adds a releasable object to this object. The release method on the releasable will be called when the callableStatement is executed.
      Parameters:
      releasable - - A CpoReleasable object. An Object whose lifetime is associated with the lifetime of the Callable statement
    • release

      public void release() throws CpoException
      Called by the CPO framework. This method calls the release on all the CpoReleasable associated with this object
      Specified by:
      release in interface CpoReleasable
      Throws:
      CpoException