public class JdbcCallableStatementFactory extends Object implements CpoReleasible
| Constructor and Description |
|---|
JdbcCallableStatementFactory(Connection conn,
JdbcCpoAdapter jca,
CpoFunction function,
Object obj)
Used to build the CallableStatement that is used by CPO to create the actual JDBC CallableStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AddReleasible(CpoReleasible releasible)
Adds a releasible object to this object.
|
CallableStatement |
getCallableStatement()
returns the jdbc callable statment associated with this object
|
List<CpoArgument> |
getOutArguments()
returns the Out parameters from the callable statement
|
void |
release()
Called by the CPO framework.
|
protected void |
setCallableStatement(CallableStatement cs) |
public JdbcCallableStatementFactory(Connection conn, JdbcCpoAdapter jca, CpoFunction function, Object obj) throws CpoException
conn - The actual jdbc connection that will be used to create the callable statement.jca - The JdbcCpoAdapter that is controlling this transactionfunction - The CpoFunction that is being executedobj - The pojo that is being acted uponCpoException - if a CPO error occursSQLException - if a JDBC error occurspublic CallableStatement getCallableStatement()
protected void setCallableStatement(CallableStatement cs)
public List<CpoArgument> getOutArguments()
public void AddReleasible(CpoReleasible releasible)
public void release()
throws CpoException
release on all the CpoReleasible associated with this objectrelease in interface CpoReleasibleCpoExceptionCopyright © 2014. All Rights Reserved.