|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor org.apache.openjpa.jdbc.kernel.SQLStoreQuery.SQLExecutor
protected static class SQLStoreQuery.SQLExecutor
Executes the filter as a SQL query.
Constructor Summary | |
---|---|
SQLStoreQuery.SQLExecutor(SQLStoreQuery q,
ClassMetaData candidate)
|
Method Summary | |
---|---|
protected ResultSet |
executeQuery(JDBCStore store,
Connection conn,
PreparedStatement stmnt,
SQLBuffer buf,
List paramList)
This method is to provide override for non-JDBC or JDBC-like implementation of executing query. |
ResultObjectProvider |
executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return the result of executing this query with the given parameter values. |
protected int |
executeUpdate(JDBCStore store,
Connection conn,
PreparedStatement stmnt,
SQLBuffer buf)
This method is to provide override for non-JDBC or JDBC-like implementation of executing update. |
Number |
executeUpdate(StoreQuery q,
Object[] params)
Updates the objects that result from the execution of the query, retuning the number of objects that were updated. |
String[] |
getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range)
Return a description of the commands that will be sent to the datastore in order to execute the query. |
int |
getOperation(StoreQuery q)
Returns the operation this executor is meant to execute. |
boolean |
isPacking(StoreQuery q)
Return true if this executor packs projections into the result class itself. |
protected PreparedStatement |
prepareCall(Connection conn,
SQLBuffer buf)
This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement. |
protected PreparedStatement |
prepareCall(Connection conn,
SQLBuffer buf,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement. |
protected PreparedStatement |
prepareStatement(Connection conn,
SQLBuffer buf)
This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement. |
protected PreparedStatement |
prepareStatement(Connection conn,
SQLBuffer buf,
JDBCFetchConfiguration fetch,
int rsType,
int rsConcur)
This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement. |
Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
---|
executeDelete, getAccessPathMetaDatas, getAlias, getAscending, getOrderingValue, getParameterTypes, getProjectionAliases, getProjectionTypes, getRange, getResultClass, getUpdates, hasGrouping, isAggregate, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLStoreQuery.SQLExecutor(SQLStoreQuery q, ClassMetaData candidate)
Method Detail |
---|
public int getOperation(StoreQuery q)
StoreQuery.Executor
getOperation
in interface StoreQuery.Executor
getOperation
in class AbstractStoreQuery.AbstractExecutor
QueryOperations
public Number executeUpdate(StoreQuery q, Object[] params)
StoreQuery.Executor
executeUpdate
in interface StoreQuery.Executor
executeUpdate
in class AbstractStoreQuery.AbstractExecutor
public ResultObjectProvider executeQuery(StoreQuery q, Object[] params, StoreQuery.Range range)
StoreQuery.Executor
StoreQuery.Executor.isPacking(org.apache.openjpa.kernel.StoreQuery)
public String[] getDataStoreActions(StoreQuery q, Object[] params, StoreQuery.Range range)
StoreQuery.Executor
getDataStoreActions
in interface StoreQuery.Executor
getDataStoreActions
in class AbstractStoreQuery.AbstractExecutor
public boolean isPacking(StoreQuery q)
StoreQuery.Executor
isPacking
in interface StoreQuery.Executor
isPacking
in class AbstractStoreQuery.AbstractExecutor
protected PreparedStatement prepareCall(Connection conn, SQLBuffer buf) throws SQLException
SQLException
protected int executeUpdate(JDBCStore store, Connection conn, PreparedStatement stmnt, SQLBuffer buf) throws SQLException
SQLException
protected PreparedStatement prepareCall(Connection conn, SQLBuffer buf, JDBCFetchConfiguration fetch, int rsType, int rsConcur) throws SQLException
SQLException
protected PreparedStatement prepareStatement(Connection conn, SQLBuffer buf) throws SQLException
SQLException
protected PreparedStatement prepareStatement(Connection conn, SQLBuffer buf, JDBCFetchConfiguration fetch, int rsType, int rsConcur) throws SQLException
SQLException
protected ResultSet executeQuery(JDBCStore store, Connection conn, PreparedStatement stmnt, SQLBuffer buf, List paramList) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |