|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
org.apache.openjpa.jdbc.kernel.SQLStoreQuery.SQLExecutor
public 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. |
org.apache.openjpa.lib.rop.ResultObjectProvider |
executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
|
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)
|
String[] |
getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range)
|
int |
getOperation(StoreQuery q)
|
boolean |
isPacking(StoreQuery q)
|
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. |
Object[] |
toParameterArray(StoreQuery q,
Map userParams)
The given query is parsed to find the parameter tokens of the form ? |
| Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
|---|
executeDelete, getAccessPathMetaDatas, getAlias, getAscending, getOrderedParameterTypes, getOrderingValue, getParameterTypes, getProjectionAliases, getProjectionTypes, getQueryExpressions, getRange, getResultClass, getResultShape, getUpdates, hasGrouping, isAggregate, isDistinct, 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)
getOperation in interface StoreQuery.ExecutorgetOperation in class AbstractStoreQuery.AbstractExecutor
public Number executeUpdate(StoreQuery q,
Object[] params)
executeUpdate in interface StoreQuery.ExecutorexecuteUpdate in class AbstractStoreQuery.AbstractExecutor
public org.apache.openjpa.lib.rop.ResultObjectProvider executeQuery(StoreQuery q,
Object[] params,
StoreQuery.Range range)
public String[] getDataStoreActions(StoreQuery q,
Object[] params,
StoreQuery.Range range)
getDataStoreActions in interface StoreQuery.ExecutorgetDataStoreActions in class AbstractStoreQuery.AbstractExecutorpublic boolean isPacking(StoreQuery q)
isPacking in interface StoreQuery.ExecutorisPacking 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
public Object[] toParameterArray(StoreQuery q,
Map userParams)
?n which is different than ? tokens in
actual SQL parameter tokens. These ?n style tokens
are replaced in the query string by ? tokens.
During the token parsing, the ordering of the tokens is recorded.
The given userParam must contain parameter keys as Integer and
the same Integers must appear in the tokens.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||