Class JDOQLTypedQueryImpl<T>

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable, javax.jdo.JDOQLTypedQuery<T>

    public class JDOQLTypedQueryImpl<T>
    extends AbstractJDOQLTypedQuery<T>
    implements javax.jdo.JDOQLTypedQuery<T>
    Implementation of a JDOQLTypedQuery. Note that a JDOQLTypedQuery only supports named parameters.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JDOQLTypedQueryImpl​(javax.jdo.PersistenceManager pm, java.lang.Class<T> candidateClass)
      Constructor for a typesafe query.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void assertIsModifiable()
      Method to throw an exception if the query is currently not modifiable.
      protected void assertIsOpen()
      Method to assert if this Query is open.
      void cancel​(java.lang.Thread thread)  
      void cancelAll()  
      javax.jdo.query.PersistableExpression candidate()  
      javax.jdo.query.CharacterExpression characterParameter​(java.lang.String name)  
      void close()  
      void close​(java.lang.Object result)  
      void closeAll()  
      javax.jdo.query.CollectionExpression collectionParameter​(java.lang.String name)  
      <E> javax.jdo.query.CollectionExpression<java.util.Collection<E>,​E> collectionParameter​(java.lang.String name, java.lang.Class<E> elementType)  
      org.datanucleus.store.query.compiler.QueryCompilation compile​(org.datanucleus.metadata.MetaDataManager mmgr, org.datanucleus.ClassLoaderResolver clr)
      Method to compile the typesafe query.
      javax.jdo.JDOQLTypedQuery<T> datastoreReadTimeoutMillis​(java.lang.Integer interval)  
      javax.jdo.JDOQLTypedQuery<T> datastoreWriteTimeoutMillis​(java.lang.Integer interval)  
      javax.jdo.query.DateExpression dateParameter​(java.lang.String name)  
      javax.jdo.query.DateTimeExpression datetimeParameter​(java.lang.String name)  
      long delete()
      Extension method to provide bulk delete capabilities (not part of JDO).
      long deletePersistentAll()  
      javax.jdo.JDOQLTypedQuery<T> excludeSubclasses()  
      protected java.lang.Object executeInternalQuery​(org.datanucleus.store.query.Query internalQuery)  
      java.util.List<T> executeList()  
      java.util.List executeResultList()  
      <R> java.util.List<R> executeResultList​(java.lang.Class<R> resultCls)  
      java.lang.Object executeResultUnique()  
      <R> R executeResultUnique​(java.lang.Class<R> resultCls)  
      T executeUnique()  
      javax.jdo.JDOQLTypedQuery<T> extension​(java.lang.String key, java.lang.Object value)  
      javax.jdo.JDOQLTypedQuery<T> extensions​(java.util.Map values)  
      javax.jdo.JDOQLTypedQuery<T> filter​(javax.jdo.query.BooleanExpression expr)  
      javax.jdo.query.geospatial.GeospatialHelper geospatialHelper()  
      java.lang.Integer getDatastoreReadTimeoutMillis()  
      java.lang.Integer getDatastoreWriteTimeoutMillis()  
      javax.jdo.FetchPlan getFetchPlan()  
      boolean getIgnoreCache()  
      protected org.datanucleus.store.query.Query getInternalQuery()
      Convenience method to generate an internal DataNucleus Query and apply the generic compilation to it.
      java.lang.String getJDOQLForExpression​(org.datanucleus.store.query.expression.Expression expr)  
      javax.jdo.PersistenceManager getPersistenceManager()  
      static java.lang.String getQueryClassNameForClassName​(java.lang.String name)
      Method to return the (simple) name of the query class for a specified class name.
      java.lang.Boolean getSerializeRead()  
      javax.jdo.JDOQLTypedQuery<T> groupBy​(javax.jdo.query.Expression... exprs)  
      javax.jdo.JDOQLTypedQuery<T> having​(javax.jdo.query.Expression expr)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThen​(java.lang.Class<V> type, javax.jdo.query.BooleanExpression cond, javax.jdo.query.Expression<V> thenValueExpr)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThen​(javax.jdo.query.BooleanExpression cond, V thenValue)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(java.lang.Class<V> type, javax.jdo.query.BooleanExpression ifExpr, javax.jdo.query.Expression<V> thenValueExpr, javax.jdo.query.Expression<V> elseValueExpr)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond, javax.jdo.query.Expression<V> thenValueExpr, V elseValue)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond, V thenValue, javax.jdo.query.Expression<V> elseValueExpr)  
      <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond, V thenValue, V elseValue)  
      javax.jdo.JDOQLTypedQuery<T> ignoreCache​(boolean flag)  
      javax.jdo.JDOQLTypedQuery<T> includeSubclasses()  
      boolean isClosed()
      Accessor for whether this Query is closed.
      boolean isUnmodifiable()  
      javax.jdo.query.ListExpression listParameter​(java.lang.String name)  
      <E> javax.jdo.query.ListExpression<java.util.List<E>,​E> listParameter​(java.lang.String name, java.lang.Class<E> elementType)  
      javax.jdo.query.MapExpression mapParameter​(java.lang.String name)  
      <K,​V>
      javax.jdo.query.MapExpression<java.util.Map<K,​V>,​K,​V>
      mapParameter​(java.lang.String name, java.lang.Class<K> keyType, java.lang.Class<V> valueType)  
      javax.jdo.query.NumericExpression<? extends java.lang.Number> numericParameter​(java.lang.String name)  
      <N extends java.lang.Number>
      javax.jdo.query.NumericExpression<N>
      numericParameter​(java.lang.String name, java.lang.Class<N> type)  
      javax.jdo.JDOQLTypedQuery<T> orderBy​(javax.jdo.query.OrderExpression... exprs)  
      <P> javax.jdo.query.Expression<P> parameter​(java.lang.String name, java.lang.Class<P> type)  
      javax.jdo.JDOQLTypedQuery<T> range​(long lowerIncl, long upperExcl)  
      javax.jdo.JDOQLTypedQuery<T> range​(javax.jdo.query.Expression paramLowerInclExpr, javax.jdo.query.Expression paramUpperExclExpr)  
      javax.jdo.JDOQLTypedQuery<T> range​(javax.jdo.query.NumericExpression lowerInclExpr, javax.jdo.query.NumericExpression upperExclExpr)  
      javax.jdo.JDOQLTypedQuery<T> result​(boolean distinct, javax.jdo.query.Expression<?>... exprs)  
      javax.jdo.JDOQLTypedQuery<T> saveAsNamedQuery​(java.lang.String name)  
      javax.jdo.JDOQLTypedQuery<T> serializeRead​(java.lang.Boolean serialize)  
      javax.jdo.JDOQLTypedQuery<T> set​(javax.jdo.query.Expression expr, java.lang.Object val)
      Method to specify the update of a field of the candidate.
      javax.jdo.JDOQLTypedQuery<T> setCandidates​(java.util.Collection<T> candidates)  
      javax.jdo.JDOQLTypedQuery<T> setParameter​(java.lang.String paramName, java.lang.Object value)  
      javax.jdo.JDOQLTypedQuery<T> setParameter​(javax.jdo.query.Expression paramExpr, java.lang.Object value)  
      javax.jdo.JDOQLTypedQuery<T> setParameters​(java.util.Map namedParamMap)  
      javax.jdo.query.StringExpression stringParameter​(java.lang.String name)  
      <S> javax.jdo.JDOQLTypedSubquery<S> subquery​(java.lang.Class<S> candidateClass, java.lang.String candidateAlias)  
      javax.jdo.JDOQLTypedSubquery<T> subquery​(java.lang.String candidateAlias)  
      <E> javax.jdo.JDOQLTypedSubquery<E> subquery​(javax.jdo.query.CollectionExpression<java.util.Collection<E>,​E> candidateCollection, java.lang.Class<E> candidateClass, java.lang.String candidateAlias)  
      javax.jdo.query.TimeExpression timeParameter​(java.lang.String name)  
      javax.jdo.JDOQLTypedQuery<T> unmodifiable()  
      long update()
      Extension method to provide bulk update capabilities (not part of JDO).
      private void validateParameters()
      Convenience method to validate the defined parameters, and the values provided for these parameters.
      <V> javax.jdo.query.Expression<V> variable​(java.lang.String name, java.lang.Class<V> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.jdo.JDOQLTypedQuery

        toString
    • Field Detail

      • closed

        private boolean closed
      • ignoreCache

        protected boolean ignoreCache
      • serializeRead

        protected java.lang.Boolean serializeRead
      • datastoreReadTimeout

        protected java.lang.Integer datastoreReadTimeout
      • datastoreWriteTimeout

        protected java.lang.Integer datastoreWriteTimeout
      • extensions

        protected java.util.Map<java.lang.String,​java.lang.Object> extensions
      • candidates

        protected java.util.Collection<T> candidates
      • unmodifiable

        boolean unmodifiable
      • parameterExprByName

        protected java.util.Map<java.lang.String,​ExpressionImpl> parameterExprByName
        Map of parameter expression keyed by the name.
      • parameterValuesByName

        protected java.util.Map<java.lang.String,​java.lang.Object> parameterValuesByName
        Map of parameters keyed by their name/expression.
      • subqueries

        protected transient java.util.Set<JDOQLTypedSubqueryImpl> subqueries
        Set of any subqueries used by this query.
      • internalQueries

        protected transient java.util.Set<org.datanucleus.store.query.Query> internalQueries
        Internal queries generated by this typesafe query. Managed so that they can be closed. TODO Use just one?
      • geospatialHelper

        protected transient java.lang.Object geospatialHelper
    • Constructor Detail

      • JDOQLTypedQueryImpl

        public JDOQLTypedQueryImpl​(javax.jdo.PersistenceManager pm,
                                   java.lang.Class<T> candidateClass)
        Constructor for a typesafe query.
        Parameters:
        pm - Persistence Manager
        candidateClass - The candidate class
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • isClosed

        public boolean isClosed()
        Accessor for whether this Query is closed.
        Returns:
        Whether this Query is closed.
      • close

        public void close​(java.lang.Object result)
        Specified by:
        close in interface javax.jdo.JDOQLTypedQuery<T>
      • closeAll

        public void closeAll()
        Specified by:
        closeAll in interface javax.jdo.JDOQLTypedQuery<T>
      • candidate

        public javax.jdo.query.PersistableExpression candidate()
        Specified by:
        candidate in interface javax.jdo.JDOQLTypedQuery<T>
      • parameter

        public <P> javax.jdo.query.Expression<P> parameter​(java.lang.String name,
                                                           java.lang.Class<P> type)
        Specified by:
        parameter in interface javax.jdo.JDOQLTypedQuery<T>
      • stringParameter

        public javax.jdo.query.StringExpression stringParameter​(java.lang.String name)
        Specified by:
        stringParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • characterParameter

        public javax.jdo.query.CharacterExpression characterParameter​(java.lang.String name)
        Specified by:
        characterParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • numericParameter

        public javax.jdo.query.NumericExpression<? extends java.lang.Number> numericParameter​(java.lang.String name)
        Specified by:
        numericParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • numericParameter

        public <N extends java.lang.Number> javax.jdo.query.NumericExpression<N> numericParameter​(java.lang.String name,
                                                                                                  java.lang.Class<N> type)
        Specified by:
        numericParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • dateParameter

        public javax.jdo.query.DateExpression dateParameter​(java.lang.String name)
        Specified by:
        dateParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • timeParameter

        public javax.jdo.query.TimeExpression timeParameter​(java.lang.String name)
        Specified by:
        timeParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • datetimeParameter

        public javax.jdo.query.DateTimeExpression datetimeParameter​(java.lang.String name)
        Specified by:
        datetimeParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • collectionParameter

        public javax.jdo.query.CollectionExpression collectionParameter​(java.lang.String name)
        Specified by:
        collectionParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • collectionParameter

        public <E> javax.jdo.query.CollectionExpression<java.util.Collection<E>,​E> collectionParameter​(java.lang.String name,
                                                                                                             java.lang.Class<E> elementType)
        Specified by:
        collectionParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • mapParameter

        public javax.jdo.query.MapExpression mapParameter​(java.lang.String name)
        Specified by:
        mapParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • mapParameter

        public <K,​V> javax.jdo.query.MapExpression<java.util.Map<K,​V>,​K,​V> mapParameter​(java.lang.String name,
                                                                                                                java.lang.Class<K> keyType,
                                                                                                                java.lang.Class<V> valueType)
        Specified by:
        mapParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • listParameter

        public javax.jdo.query.ListExpression listParameter​(java.lang.String name)
        Specified by:
        listParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • listParameter

        public <E> javax.jdo.query.ListExpression<java.util.List<E>,​E> listParameter​(java.lang.String name,
                                                                                           java.lang.Class<E> elementType)
        Specified by:
        listParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • variable

        public <V> javax.jdo.query.Expression<V> variable​(java.lang.String name,
                                                          java.lang.Class<V> type)
        Specified by:
        variable in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThenElse

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(java.lang.Class<V> type,
                                                                      javax.jdo.query.BooleanExpression ifExpr,
                                                                      javax.jdo.query.Expression<V> thenValueExpr,
                                                                      javax.jdo.query.Expression<V> elseValueExpr)
        Specified by:
        ifThenElse in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThenElse

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond,
                                                                      javax.jdo.query.Expression<V> thenValueExpr,
                                                                      V elseValue)
        Specified by:
        ifThenElse in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThenElse

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond,
                                                                      V thenValue,
                                                                      javax.jdo.query.Expression<V> elseValueExpr)
        Specified by:
        ifThenElse in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThenElse

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThenElse​(javax.jdo.query.BooleanExpression cond,
                                                                      V thenValue,
                                                                      V elseValue)
        Specified by:
        ifThenElse in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThen

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThen​(java.lang.Class<V> type,
                                                                  javax.jdo.query.BooleanExpression cond,
                                                                  javax.jdo.query.Expression<V> thenValueExpr)
        Specified by:
        ifThen in interface javax.jdo.JDOQLTypedQuery<T>
      • ifThen

        public <V> javax.jdo.query.IfThenElseExpression<V> ifThen​(javax.jdo.query.BooleanExpression cond,
                                                                  V thenValue)
        Specified by:
        ifThen in interface javax.jdo.JDOQLTypedQuery<T>
      • excludeSubclasses

        public javax.jdo.JDOQLTypedQuery<T> excludeSubclasses()
        Specified by:
        excludeSubclasses in interface javax.jdo.JDOQLTypedQuery<T>
      • includeSubclasses

        public javax.jdo.JDOQLTypedQuery<T> includeSubclasses()
        Specified by:
        includeSubclasses in interface javax.jdo.JDOQLTypedQuery<T>
      • filter

        public javax.jdo.JDOQLTypedQuery<T> filter​(javax.jdo.query.BooleanExpression expr)
        Specified by:
        filter in interface javax.jdo.JDOQLTypedQuery<T>
      • groupBy

        public javax.jdo.JDOQLTypedQuery<T> groupBy​(javax.jdo.query.Expression... exprs)
        Specified by:
        groupBy in interface javax.jdo.JDOQLTypedQuery<T>
      • having

        public javax.jdo.JDOQLTypedQuery<T> having​(javax.jdo.query.Expression expr)
        Specified by:
        having in interface javax.jdo.JDOQLTypedQuery<T>
      • orderBy

        public javax.jdo.JDOQLTypedQuery<T> orderBy​(javax.jdo.query.OrderExpression... exprs)
        Specified by:
        orderBy in interface javax.jdo.JDOQLTypedQuery<T>
      • range

        public javax.jdo.JDOQLTypedQuery<T> range​(long lowerIncl,
                                                  long upperExcl)
        Specified by:
        range in interface javax.jdo.JDOQLTypedQuery<T>
      • range

        public javax.jdo.JDOQLTypedQuery<T> range​(javax.jdo.query.NumericExpression lowerInclExpr,
                                                  javax.jdo.query.NumericExpression upperExclExpr)
        Specified by:
        range in interface javax.jdo.JDOQLTypedQuery<T>
      • range

        public javax.jdo.JDOQLTypedQuery<T> range​(javax.jdo.query.Expression paramLowerInclExpr,
                                                  javax.jdo.query.Expression paramUpperExclExpr)
        Specified by:
        range in interface javax.jdo.JDOQLTypedQuery<T>
      • subquery

        public <S> javax.jdo.JDOQLTypedSubquery<S> subquery​(java.lang.Class<S> candidateClass,
                                                            java.lang.String candidateAlias)
        Specified by:
        subquery in interface javax.jdo.JDOQLTypedQuery<T>
      • subquery

        public javax.jdo.JDOQLTypedSubquery<T> subquery​(java.lang.String candidateAlias)
        Specified by:
        subquery in interface javax.jdo.JDOQLTypedQuery<T>
      • subquery

        public <E> javax.jdo.JDOQLTypedSubquery<E> subquery​(javax.jdo.query.CollectionExpression<java.util.Collection<E>,​E> candidateCollection,
                                                            java.lang.Class<E> candidateClass,
                                                            java.lang.String candidateAlias)
        Specified by:
        subquery in interface javax.jdo.JDOQLTypedQuery<T>
      • setParameters

        public javax.jdo.JDOQLTypedQuery<T> setParameters​(java.util.Map namedParamMap)
        Specified by:
        setParameters in interface javax.jdo.JDOQLTypedQuery<T>
      • setParameter

        public javax.jdo.JDOQLTypedQuery<T> setParameter​(javax.jdo.query.Expression paramExpr,
                                                         java.lang.Object value)
        Specified by:
        setParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • setParameter

        public javax.jdo.JDOQLTypedQuery<T> setParameter​(java.lang.String paramName,
                                                         java.lang.Object value)
        Specified by:
        setParameter in interface javax.jdo.JDOQLTypedQuery<T>
      • setCandidates

        public javax.jdo.JDOQLTypedQuery<T> setCandidates​(java.util.Collection<T> candidates)
        Specified by:
        setCandidates in interface javax.jdo.JDOQLTypedQuery<T>
      • result

        public javax.jdo.JDOQLTypedQuery<T> result​(boolean distinct,
                                                   javax.jdo.query.Expression<?>... exprs)
        Specified by:
        result in interface javax.jdo.JDOQLTypedQuery<T>
      • executeResultList

        public <R> java.util.List<R> executeResultList​(java.lang.Class<R> resultCls)
        Specified by:
        executeResultList in interface javax.jdo.JDOQLTypedQuery<T>
      • executeResultUnique

        public <R> R executeResultUnique​(java.lang.Class<R> resultCls)
        Specified by:
        executeResultUnique in interface javax.jdo.JDOQLTypedQuery<T>
      • executeResultList

        public java.util.List executeResultList()
        Specified by:
        executeResultList in interface javax.jdo.JDOQLTypedQuery<T>
      • executeResultUnique

        public java.lang.Object executeResultUnique()
        Specified by:
        executeResultUnique in interface javax.jdo.JDOQLTypedQuery<T>
      • executeList

        public java.util.List<T> executeList()
        Specified by:
        executeList in interface javax.jdo.JDOQLTypedQuery<T>
      • executeUnique

        public T executeUnique()
        Specified by:
        executeUnique in interface javax.jdo.JDOQLTypedQuery<T>
      • getInternalQuery

        protected org.datanucleus.store.query.Query getInternalQuery()
        Convenience method to generate an internal DataNucleus Query and apply the generic compilation to it.
        Returns:
        The internal DataNucleus query
      • executeInternalQuery

        protected java.lang.Object executeInternalQuery​(org.datanucleus.store.query.Query internalQuery)
      • deletePersistentAll

        public long deletePersistentAll()
        Specified by:
        deletePersistentAll in interface javax.jdo.JDOQLTypedQuery<T>
      • validateParameters

        private void validateParameters()
        Convenience method to validate the defined parameters, and the values provided for these parameters.
        Throws:
        javax.jdo.JDOUserException - if they are inconsistent
      • set

        public javax.jdo.JDOQLTypedQuery<T> set​(javax.jdo.query.Expression expr,
                                                java.lang.Object val)
        Method to specify the update of a field of the candidate.
        Parameters:
        expr - Expression for field of the candidate
        val - The new value
        Returns:
        The query
      • update

        public long update()
        Extension method to provide bulk update capabilities (not part of JDO).
        Returns:
        Number of instances that were updated
      • delete

        public long delete()
        Extension method to provide bulk delete capabilities (not part of JDO). This differs from deletePersistentAll() in that it doesn't cascade to related objects (unless the datastore does that automatically), and that it doesn't attempt to update cached objects state to reflect the deletion.
        Returns:
        Number of instances that were deleted
      • getFetchPlan

        public javax.jdo.FetchPlan getFetchPlan()
        Specified by:
        getFetchPlan in interface javax.jdo.JDOQLTypedQuery<T>
      • getPersistenceManager

        public javax.jdo.PersistenceManager getPersistenceManager()
        Specified by:
        getPersistenceManager in interface javax.jdo.JDOQLTypedQuery<T>
      • compile

        public org.datanucleus.store.query.compiler.QueryCompilation compile​(org.datanucleus.metadata.MetaDataManager mmgr,
                                                                             org.datanucleus.ClassLoaderResolver clr)
        Method to compile the typesafe query.
        Overrides:
        compile in class AbstractJDOQLTypedQuery<T>
        Parameters:
        mmgr - Metadata manager
        clr - ClassLoader resolver
        Returns:
        The generic compilation
      • getQueryClassNameForClassName

        public static java.lang.String getQueryClassNameForClassName​(java.lang.String name)
        Method to return the (simple) name of the query class for a specified class name. Currently just returns "Q{className}"
        Parameters:
        name - Simple name of the class (without package)
        Returns:
        Simple name of the query class
      • getDatastoreReadTimeoutMillis

        public java.lang.Integer getDatastoreReadTimeoutMillis()
        Specified by:
        getDatastoreReadTimeoutMillis in interface javax.jdo.JDOQLTypedQuery<T>
      • datastoreReadTimeoutMillis

        public javax.jdo.JDOQLTypedQuery<T> datastoreReadTimeoutMillis​(java.lang.Integer interval)
        Specified by:
        datastoreReadTimeoutMillis in interface javax.jdo.JDOQLTypedQuery<T>
      • getDatastoreWriteTimeoutMillis

        public java.lang.Integer getDatastoreWriteTimeoutMillis()
        Specified by:
        getDatastoreWriteTimeoutMillis in interface javax.jdo.JDOQLTypedQuery<T>
      • datastoreWriteTimeoutMillis

        public javax.jdo.JDOQLTypedQuery<T> datastoreWriteTimeoutMillis​(java.lang.Integer interval)
        Specified by:
        datastoreWriteTimeoutMillis in interface javax.jdo.JDOQLTypedQuery<T>
      • getSerializeRead

        public java.lang.Boolean getSerializeRead()
        Specified by:
        getSerializeRead in interface javax.jdo.JDOQLTypedQuery<T>
      • serializeRead

        public javax.jdo.JDOQLTypedQuery<T> serializeRead​(java.lang.Boolean serialize)
        Specified by:
        serializeRead in interface javax.jdo.JDOQLTypedQuery<T>
      • isUnmodifiable

        public boolean isUnmodifiable()
        Specified by:
        isUnmodifiable in interface javax.jdo.JDOQLTypedQuery<T>
      • unmodifiable

        public javax.jdo.JDOQLTypedQuery<T> unmodifiable()
        Specified by:
        unmodifiable in interface javax.jdo.JDOQLTypedQuery<T>
      • getIgnoreCache

        public boolean getIgnoreCache()
        Specified by:
        getIgnoreCache in interface javax.jdo.JDOQLTypedQuery<T>
      • ignoreCache

        public javax.jdo.JDOQLTypedQuery<T> ignoreCache​(boolean flag)
        Specified by:
        ignoreCache in interface javax.jdo.JDOQLTypedQuery<T>
      • extension

        public javax.jdo.JDOQLTypedQuery<T> extension​(java.lang.String key,
                                                      java.lang.Object value)
        Specified by:
        extension in interface javax.jdo.JDOQLTypedQuery<T>
      • extensions

        public javax.jdo.JDOQLTypedQuery<T> extensions​(java.util.Map values)
        Specified by:
        extensions in interface javax.jdo.JDOQLTypedQuery<T>
      • cancelAll

        public void cancelAll()
        Specified by:
        cancelAll in interface javax.jdo.JDOQLTypedQuery<T>
      • cancel

        public void cancel​(java.lang.Thread thread)
        Specified by:
        cancel in interface javax.jdo.JDOQLTypedQuery<T>
      • saveAsNamedQuery

        public javax.jdo.JDOQLTypedQuery<T> saveAsNamedQuery​(java.lang.String name)
        Specified by:
        saveAsNamedQuery in interface javax.jdo.JDOQLTypedQuery<T>
      • assertIsModifiable

        protected void assertIsModifiable()
        Method to throw an exception if the query is currently not modifiable.
        Throws:
        org.datanucleus.exceptions.NucleusUserException - Thrown when it is unmodifiable
      • assertIsOpen

        protected void assertIsOpen()
        Method to assert if this Query is open.
        Throws:
        javax.jdo.JDOFatalUserException - if the Query is closed.
      • geospatialHelper

        public javax.jdo.query.geospatial.GeospatialHelper geospatialHelper()
        Specified by:
        geospatialHelper in interface javax.jdo.JDOQLTypedQuery<T>