|
|||||||||
| 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,
CpoWhere where,
java.util.Collection<CpoOrderBy> orderBy)
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,
CpoWhere where,
java.util.Collection<CpoOrderBy> orderBy,
java.util.Collection<BindAttribute> bindValues)
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. |
void |
bindParameters(java.lang.Object obj)
Called by the CPO Framework. |
protected java.util.Collection<BindAttribute> |
getBindValues()
|
protected JdbcQuery |
getJdbcQuery()
|
java.sql.PreparedStatement |
getPreparedStatement()
Returns the jdbc prepared statment associated with this object |
void |
release()
Called by the CPO framework. |
protected java.lang.StringBuffer |
replaceMarker(java.lang.StringBuffer source,
java.lang.String marker,
java.lang.String replace)
|
protected void |
setBindValues(java.util.Collection<BindAttribute> bindValues_)
|
protected void |
setJdbcQuery(JdbcQuery jq_)
|
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 occurs
public JdbcPreparedStatementFactory(java.sql.Connection conn,
JdbcCpoAdapter jca,
JdbcMetaClass<T> jmcCriteria,
JdbcQuery jq,
T obj,
CpoWhere where,
java.util.Collection<CpoOrderBy> orderBy)
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 uponwhere - a cpoWhere to be added to the queryText from the query grouporderBy - an orderBy to be added to the queryText from the query group
CpoException - if a CPO error occurs
java.sql.SQLException - if a JDBC error occurs
public JdbcPreparedStatementFactory(java.sql.Connection conn,
JdbcCpoAdapter jca,
JdbcMetaClass<T> jmcCriteria,
JdbcQuery jq,
T obj,
CpoWhere where,
java.util.Collection<CpoOrderBy> orderBy,
java.util.Collection<BindAttribute> bindValues)
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 PreparedStatementbindValues - additional bind values from a dynamic where statement
CpoException - if a CPO error occurs
java.sql.SQLException - if a JDBC error occurs| Method Detail |
|---|
protected java.lang.StringBuffer replaceMarker(java.lang.StringBuffer source,
java.lang.String marker,
java.lang.String replace)
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
public void bindParameters(java.lang.Object obj)
throws CpoException
CpoExceptionprotected java.util.Collection<BindAttribute> getBindValues()
protected void setBindValues(java.util.Collection<BindAttribute> bindValues_)
bindValues_ - The bindValues_ to set.protected JdbcQuery getJdbcQuery()
protected void setJdbcQuery(JdbcQuery jq_)
jq_ - The jq_ to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||