|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.query.Query
org.datanucleus.store.query.AbstractJavaQuery
org.datanucleus.store.db4o.query.NativeQuery
public class NativeQuery
Representation of a DB4O "Native" query for use in JPOX. Created by passing in the predicate object. A DB4O native query is not compiled as such, with all work being performed at execution. Any "comparator" for the native query can be specified via the query extension "db4o.native.comparator".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.query.Query |
|---|
org.datanucleus.store.query.Query.SubqueryDefinition |
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER_DB4O
Localiser for messages. |
protected com.db4o.query.Predicate |
predicate
The Predicate for the native query. |
| Fields inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
candidateCollection, candidateExtent, singleString |
| Fields inherited from class org.datanucleus.store.query.Query |
|---|
BULK_DELETE, BULK_UPDATE, candidateClass, candidateClassName, compilation, explicitParameters, explicitVariables, extensions, filter, from, fromInclNo, fromInclParam, grouping, having, ignoreCache, implicitParameters, imports, LOCALISER, om, ordering, OTHER, parameterNames, parsedImports, queryResults, range, result, resultClass, resultClassName, resultDistinct, SELECT, subclasses, subqueries, tasks, toExclNo, toExclParam, type, unique, unmodifiable, update |
| Constructor Summary | |
|---|---|
NativeQuery(org.datanucleus.ObjectManager om)
Constructs a new query instance that uses the given persistence manager. |
|
NativeQuery(org.datanucleus.ObjectManager om,
java.lang.Object predicate)
Constructor for a query using DB4O "native" query language. |
|
| Method Summary | |
|---|---|
protected void |
compileInternal(boolean forExecute,
java.util.Map parameterValues)
Method to compile the query. |
java.lang.String |
getSingleStringQuery()
Method to return the query as a single string. |
java.util.Set<java.lang.String> |
getSupportedExtensions()
Method to return the names of the extensions supported by this query. |
protected boolean |
isCompiled()
Method to return if the query is compiled. |
protected java.lang.Object |
performExecute(java.util.Map parameters)
Method to execute the query. |
protected boolean |
shouldReturnSingleRow()
Convenience method to return whether the query should return a single row. |
| Methods inherited from class org.datanucleus.store.query.AbstractJavaQuery |
|---|
discardCompiled, evaluateInMemory, getCandidateCollection, getCandidateExtent, performDeletePersistentAll, setCandidates, setCandidates, toString |
| Methods inherited from class org.datanucleus.store.query.Query |
|---|
addExtension, addSubquery, applyImplicitParameterValueToCompilation, applyRangeChecks, assertIsModifiable, assertSupportsCancel, cancel, cancel, checkParameterTypesAgainstCompilation, close, closeAll, compile, declareExplicitParameters, declareExplicitVariables, declareImports, deletePersistentAll, deletePersistentAll, deletePersistentAll, equals, execute, executeQuery, executeWithArray, executeWithMap, getBooleanExtensionProperty, getCandidateClass, getCandidateClassName, getCompilation, getDatastoreReadTimeoutMillis, getDatastoreWriteTimeoutMillis, getExplicitParameters, getExplicitVariables, getExtension, getExtensions, getFetchPlan, getFilter, getFrom, getGrouping, getHaving, getIgnoreCache, getImplicitParameters, getImports, getInputParameters, getLanguage, getObjectManager, getOrdering, getParameterMapForValues, getParsedImports, getQueryManager, getRange, getRangeFromIncl, getRangeFromInclParam, getRangeToExcl, getRangeToExclParam, getResult, getResultClass, getResultClassName, getResultDistinct, getSerializeRead, getStoreManager, getSubqueryForVariable, getType, getUpdate, hashCode, hasSubqueryForVariable, isSubclasses, isUnique, isUnmodifiable, performExecuteInternal, performExecuteTask, prepareDatastore, resolveClassDeclaration, setCandidateClassName, setClass, setCompilation, setDatastoreReadTimeoutMillis, setDatastoreWriteTimeoutMillis, setExtensions, setFetchPlan, setFilter, setFrom, setGrouping, setHaving, setIgnoreCache, setImplicitParameter, setImplicitParameter, setOrdering, setRange, setRange, setResult, setResultClass, setResultClassName, setResultDistinct, setResultMetaData, setSerializeRead, setSubclasses, setType, setUnique, setUnmodifiable, setUpdate, supportsTimeout, useCaching, useFetchPlan, useResultsCaching |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER_DB4O
protected com.db4o.query.Predicate predicate
| Constructor Detail |
|---|
public NativeQuery(org.datanucleus.ObjectManager om)
om - the associated ObjectManager for this query.
public NativeQuery(org.datanucleus.ObjectManager om,
java.lang.Object predicate)
om - The persistence managerpredicate - The native query predicate
org.datanucleus.exceptions.NucleusUserException - When the second parameter isnt an implementation of a Predicate| Method Detail |
|---|
protected void compileInternal(boolean forExecute,
java.util.Map parameterValues)
compileInternal in class org.datanucleus.store.query.QueryforExecute - Whether to compile ready for executionprotected boolean isCompiled()
isCompiled in class org.datanucleus.store.query.Queryprotected java.lang.Object performExecute(java.util.Map parameters)
performExecute in class org.datanucleus.store.query.Queryparameters - Map of parameter values keyed by the name
protected boolean shouldReturnSingleRow()
shouldReturnSingleRow in class org.datanucleus.store.query.Querypublic java.lang.String getSingleStringQuery()
getSingleStringQuery in class org.datanucleus.store.query.AbstractJavaQuerypublic java.util.Set<java.lang.String> getSupportedExtensions()
getSupportedExtensions in class org.datanucleus.store.query.AbstractJavaQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||