|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.synchronoss.cpo.jdbc.JdbcPreparedStatementFactory
public class JdbcPreparedStatementFactory
JdbcPreparedStatementFactory is the object that encapsulates the creation of the actual PreparedStatement for the JDBC driver.
| Constructor Summary | |
|---|---|
JdbcPreparedStatementFactory(java.sql.Connection conn,
JdbcCpoAdapter jca,
CpoClass criteria,
CpoFunction function,
T obj,
java.util.Collection<CpoWhere> wheres,
java.util.Collection<CpoOrderBy> orderBy,
java.util.Collection<CpoNativeFunction> nativeQueries)
Used to build the PreparedStatement that is used by CPO to create the actual JDBC PreparedStatement. |
|
| Method Summary | |
|---|---|
void |
AddReleasible(CpoReleasible releasible)
Adds a releasible object to this object. |
protected java.util.List<BindAttribute> |
getBindValues(CpoFunction function,
java.lang.Object obj)
Called by the CPO Framework. |
java.sql.PreparedStatement |
getPreparedStatement()
Returns the jdbc prepared statment associated with this object |
void |
release()
Called by the CPO framework. |
protected void |
setBindValues(java.util.Collection<BindAttribute> bindValues)
Called by the CPO Framework. |
protected void |
setPreparedStatement(java.sql.PreparedStatement ps)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcPreparedStatementFactory(java.sql.Connection conn,
JdbcCpoAdapter jca,
CpoClass criteria,
CpoFunction function,
T obj,
java.util.Collection<CpoWhere> wheres,
java.util.Collection<CpoOrderBy> orderBy,
java.util.Collection<CpoNativeFunction> nativeQueries)
throws CpoException
conn - The actual jdbc connection that will be used to create the callable statement.jca - The JdbcCpoAdapter that is controlling this transactionjq - The CpoFunction that is being executedobj - The pojo that is being acted uponadditionalSql - Additional sql to be appended to the CpoFunction sql that is used to create the actual JDBC
PreparedStatement
CpoException - if a CPO error occurs
java.sql.SQLException - if a JDBC error occurs| Method Detail |
|---|
public java.sql.PreparedStatement getPreparedStatement()
protected void setPreparedStatement(java.sql.PreparedStatement ps)
public void AddReleasible(CpoReleasible releasible)
public void release()
throws CpoException
release on all the CpoReleasible associated with this object
release in interface CpoReleasibleCpoException
protected java.util.List<BindAttribute> getBindValues(CpoFunction function,
java.lang.Object obj)
throws CpoException
CpoException
protected void setBindValues(java.util.Collection<BindAttribute> bindValues)
throws CpoException
CpoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||