org.apache.openjpa.jdbc.kernel
Class SQLStoreQuery.SQLExecutor

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor
      extended by org.apache.openjpa.jdbc.kernel.SQLStoreQuery.SQLExecutor
All Implemented Interfaces:
StoreQuery.Executor
Enclosing class:
SQLStoreQuery

protected static class SQLStoreQuery.SQLExecutor
extends AbstractStoreQuery.AbstractExecutor

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.
 
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

SQLStoreQuery.SQLExecutor

public SQLStoreQuery.SQLExecutor(SQLStoreQuery q,
                                 ClassMetaData candidate)
Method Detail

getOperation

public int getOperation(StoreQuery q)
Specified by:
getOperation in interface StoreQuery.Executor
Overrides:
getOperation in class AbstractStoreQuery.AbstractExecutor

executeUpdate

public Number executeUpdate(StoreQuery q,
                            Object[] params)
Specified by:
executeUpdate in interface StoreQuery.Executor
Overrides:
executeUpdate in class AbstractStoreQuery.AbstractExecutor

executeQuery

public org.apache.openjpa.lib.rop.ResultObjectProvider executeQuery(StoreQuery q,
                                                                    Object[] params,
                                                                    StoreQuery.Range range)

getDataStoreActions

public String[] getDataStoreActions(StoreQuery q,
                                    Object[] params,
                                    StoreQuery.Range range)
Specified by:
getDataStoreActions in interface StoreQuery.Executor
Overrides:
getDataStoreActions in class AbstractStoreQuery.AbstractExecutor

isPacking

public boolean isPacking(StoreQuery q)
Specified by:
isPacking in interface StoreQuery.Executor
Overrides:
isPacking in class AbstractStoreQuery.AbstractExecutor

prepareCall

protected PreparedStatement prepareCall(Connection conn,
                                        SQLBuffer buf)
                                 throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement.

Throws:
SQLException

executeUpdate

protected int executeUpdate(JDBCStore store,
                            Connection conn,
                            PreparedStatement stmnt,
                            SQLBuffer buf)
                     throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of executing update.

Throws:
SQLException

prepareCall

protected PreparedStatement prepareCall(Connection conn,
                                        SQLBuffer buf,
                                        JDBCFetchConfiguration fetch,
                                        int rsType,
                                        int rsConcur)
                                 throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement.

Throws:
SQLException

prepareStatement

protected PreparedStatement prepareStatement(Connection conn,
                                             SQLBuffer buf)
                                      throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement.

Throws:
SQLException

prepareStatement

protected PreparedStatement prepareStatement(Connection conn,
                                             SQLBuffer buf,
                                             JDBCFetchConfiguration fetch,
                                             int rsType,
                                             int rsConcur)
                                      throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement.

Throws:
SQLException

executeQuery

protected ResultSet executeQuery(JDBCStore store,
                                 Connection conn,
                                 PreparedStatement stmnt,
                                 SQLBuffer buf,
                                 List paramList)
                          throws SQLException
This method is to provide override for non-JDBC or JDBC-like implementation of executing query.

Throws:
SQLException


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.