org.apache.openjpa.jdbc.kernel
Class SQLStoreQuery
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery
org.apache.openjpa.jdbc.kernel.SQLStoreQuery
- All Implemented Interfaces:
- Serializable, QueryOperations, StoreQuery
- Direct Known Subclasses:
- PreparedSQLStoreQuery
public class SQLStoreQuery
- extends AbstractStoreQuery
A SQL query.
- Author:
- Abe White
- See Also:
- Serialized Form
| Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery |
evaluate, getAggregateListener, getCompilation, getContext, getFilterListener, invalidateCompilation, newCompilation, newCompilationKey, newInMemoryExecutor, populateFromCompilation, setContext, setQuery, supportsAbstractExecutors, supportsInMemoryExecution |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLStoreQuery
public SQLStoreQuery(JDBCStore store)
- Construct a query managed by the given context.
getStore
public JDBCStore getStore()
supportsParameterDeclarations
public boolean supportsParameterDeclarations()
- Specified by:
supportsParameterDeclarations in interface StoreQuery- Overrides:
supportsParameterDeclarations in class AbstractStoreQuery
supportsDataStoreExecution
public boolean supportsDataStoreExecution()
- Specified by:
supportsDataStoreExecution in interface StoreQuery- Overrides:
supportsDataStoreExecution in class AbstractStoreQuery
newDataStoreExecutor
public StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta,
boolean subclasses)
- Specified by:
newDataStoreExecutor in interface StoreQuery- Overrides:
newDataStoreExecutor in class AbstractStoreQuery
requiresCandidateType
public boolean requiresCandidateType()
- Specified by:
requiresCandidateType in interface StoreQuery- Overrides:
requiresCandidateType in class AbstractStoreQuery
requiresParameterDeclarations
public boolean requiresParameterDeclarations()
- Specified by:
requiresParameterDeclarations in interface StoreQuery- Overrides:
requiresParameterDeclarations in class AbstractStoreQuery
substituteParams
public static String substituteParams(String sql,
List<Integer> paramOrder)
throws IOException
- Utility method to substitute '?num' for parameters in the given SQL
statement, and fill-in the order of the parameter tokens
- Throws:
IOException
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.