Package org.synchronoss.cpo.jdbc
Class JdbcPreparedStatementFactory
java.lang.Object
org.synchronoss.cpo.core.CpoStatementFactory
org.synchronoss.cpo.jdbc.JdbcPreparedStatementFactory
- All Implemented Interfaces:
CpoReleasable
JdbcPreparedStatementFactory is the object that encapsulates the creation of the actual
PreparedStatement for the JDBC driver.
- Author:
- david berry
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcPreparedStatementFactory(Connection conn, JdbcCpoAdapter jca, CpoClass criteria, CpoFunction function, T bean, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeQueries) Used to build the PreparedStatement that is used by CPO to create the actual JDBC PreparedStatement. -
Method Summary
Modifier and TypeMethodDescriptionReturns the jdbc prepared statement associated with this objectMethods inherited from class org.synchronoss.cpo.core.CpoStatementFactory
AddReleasable, getBindValues, getLocalLogger, release, setBindValuesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.synchronoss.cpo.core.CpoReleasable
release
-
Constructor Details
-
JdbcPreparedStatementFactory
public JdbcPreparedStatementFactory(Connection conn, JdbcCpoAdapter jca, CpoClass criteria, CpoFunction function, T bean, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeQueries) throws CpoException Used to build the PreparedStatement that is used by CPO to create the actual JDBC PreparedStatement.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.
- Type Parameters:
T- The cpo object being prepared to create a named logger- Parameters:
conn- The actual jdbc connection that will be used to create the callable statement.jca- The JdbcCpoAdapter that is controlling this transactioncriteria- The object that will be used to look up the cpo metadatafunction- The CpoFunction that is being executedbean- The bean that is being acted uponwheres- A collection of where clauses to be embedded into the CpoFunction sqlorderBy- A collection of order-by clauses to be embedded into the CpoFunction sqlnativeQueries- Additional sql to be embedded into the CpoFunction sql that is used to create the actual JDBC PreparedStatement- Throws:
CpoException- if a CPO error occurs
-
-
Method Details
-
getPreparedStatement
Returns the jdbc prepared statement associated with this object- Returns:
- A PreparedStatement
-