|
||||||||||
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,
JdbcMetaClass<T> jmcCriteria,
JdbcQuery jq,
T obj)
Used to build the PreparedStatement that is used by CPO to create the actual JDBC PreparedStatement. |
|
JdbcPreparedStatementFactory(java.sql.Connection conn,
JdbcCpoAdapter jca,
JdbcMetaClass<T> jmcCriteria,
JdbcQuery jq,
T obj,
java.util.Collection<CpoWhere> wheres,
java.util.Collection<CpoOrderBy> orderBy,
java.util.Collection<CpoNativeQuery> 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(JdbcQuery jq,
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, JdbcMetaClass<T> jmcCriteria, JdbcQuery jq, T obj) 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 JdbcQuery that is being executedobj
- The pojo that is being acted upon
CpoException
- if a CPO error occurs
java.sql.SQLException
- if a JDBC error occurspublic JdbcPreparedStatementFactory(java.sql.Connection conn, JdbcCpoAdapter jca, JdbcMetaClass<T> jmcCriteria, JdbcQuery jq, T obj, java.util.Collection<CpoWhere> wheres, java.util.Collection<CpoOrderBy> orderBy, java.util.Collection<CpoNativeQuery> 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 JdbcQuery that is being executedobj
- The pojo that is being acted uponadditionalSql
- Additional sql to be appended to the JdbcQuery sql that is used to
create the actual JDBC PreparedStatement
CpoException
- if a CPO error occurs
java.sql.SQLException
- if a JDBC error occursMethod 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 CpoReleasible
CpoException
protected java.util.List<BindAttribute> getBindValues(JdbcQuery jq, 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 |