public class JdbcPreparedStatementFactory extends CpoStatementFactory implements CpoReleasible
| Constructor and Description |
|---|
JdbcPreparedStatementFactory(Connection conn,
JdbcCpoAdapter jca,
CpoClass criteria,
CpoFunction function,
T obj,
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getBindableStatement() |
protected CpoData |
getCpoData(CpoAttribute cpoAttribute,
int index) |
protected MethodMapper |
getMethodMapper() |
PreparedStatement |
getPreparedStatement()
Returns the jdbc prepared statment associated with this object
|
protected int |
getStartingIndex() |
protected void |
setPreparedStatement(PreparedStatement ps) |
AddReleasible, buildSql, getBindValues, getLocalLogger, release, setBindValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleasepublic JdbcPreparedStatementFactory(Connection conn, JdbcCpoAdapter jca, CpoClass criteria, CpoFunction function, T obj, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, 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 transactioncriteria - The object that will be used to look up the cpo meta datafunction - The CpoFunction that is being executedobj - The pojo that is being acted uponwheres - DOCUMENT ME!orderBy - DOCUMENT ME!nativeQueries - Additional sql to be embedded into the CpoFunction sql that is used to create the actual JDBC
PreparedStatementCpoException - if a CPO error occursSQLException - if a JDBC error occursprotected MethodMapper getMethodMapper()
getMethodMapper in class CpoStatementFactoryprotected CpoData getCpoData(CpoAttribute cpoAttribute, int index)
getCpoData in class CpoStatementFactoryprotected Object getBindableStatement()
getBindableStatement in class CpoStatementFactoryprotected int getStartingIndex()
getStartingIndex in class CpoStatementFactorypublic PreparedStatement getPreparedStatement()
protected void setPreparedStatement(PreparedStatement ps)
Copyright © 2014. All Rights Reserved.