Uses of Interface
dev.morphia.query.Query
-
Packages that use Query Package Description dev.morphia dev.morphia.aggregation dev.morphia.dao dev.morphia.query -
-
Uses of Query in dev.morphia
Methods in dev.morphia that return Query Modifier and Type Method Description <T> Query<T>AdvancedDatastore. createQuery(java.lang.Class<T> clazz, com.mongodb.DBObject q)<T> Query<T>AdvancedDatastore. createQuery(java.lang.String collection, java.lang.Class<T> clazz)Deprecated.this feature is being removed.<T> Query<T>AdvancedDatastore. createQuery(java.lang.String collection, java.lang.Class<T> clazz, com.mongodb.DBObject q)Deprecated.this feature is being removed.<T> Query<T>Datastore. createQuery(java.lang.Class<T> collection)Returns a new query bound to the collection (a specificDBCollection)<T> Query<T>DatastoreImpl. createQuery(java.lang.Class<T> collection)Deprecated.<T> Query<T>DatastoreImpl. createQuery(java.lang.Class<T> clazz, com.mongodb.DBObject q)Deprecated.<T> Query<T>DatastoreImpl. createQuery(java.lang.String collection, java.lang.Class<T> type)Deprecated.<T> Query<T>DatastoreImpl. createQuery(java.lang.String collection, java.lang.Class<T> type, com.mongodb.DBObject q)Deprecated.Query<T>MapreduceResults. createQuery()Deprecated.<T> Query<T>AdvancedDatastore. find(java.lang.String collection, java.lang.Class<T> clazz)Deprecated.this feature is being removed.<T,V>
Query<T>AdvancedDatastore. find(java.lang.String collection, java.lang.Class<T> clazz, java.lang.String property, V value, int offset, int size)Deprecated.useAdvancedDatastore.find(String, Class)and apply the options to theFindOptionsparameter<T> Query<T>Datastore. find(java.lang.Class<T> clazz)Find all instances by type<T,V>
Query<T>Datastore. find(java.lang.Class<T> clazz, java.lang.String property, V value)Deprecated.useQueryinstead<T,V>
Query<T>Datastore. find(java.lang.Class<T> clazz, java.lang.String property, V value, int offset, int size)Deprecated.useQueryinstead<T> Query<T>DatastoreImpl. find(java.lang.Class<T> clazz)Deprecated.<T,V>
Query<T>DatastoreImpl. find(java.lang.Class<T> clazz, java.lang.String property, V value)Deprecated.<T,V>
Query<T>DatastoreImpl. find(java.lang.Class<T> clazz, java.lang.String property, V value, int offset, int size)Deprecated.<T> Query<T>DatastoreImpl. find(java.lang.String collection, java.lang.Class<T> clazz)Deprecated.<T,V>
Query<T>DatastoreImpl. find(java.lang.String collection, java.lang.Class<T> clazz, java.lang.String property, V value, int offset, int size)Deprecated.<T,V>
Query<T>DatastoreImpl. find(java.lang.String collection, java.lang.Class<T> clazz, java.lang.String property, V value, int offset, int size, boolean validate)Deprecated.Find all instances by type in a different collection than what is mapped on the class given skipping some documents and returning a fixed number of the remaining.<T,V>
Query<T>Datastore. get(java.lang.Class<T> clazz, java.lang.Iterable<V> ids)Deprecated.useQueryinstead.<T,V>
Query<T>DatastoreImpl. get(java.lang.Class<T> clazz, java.lang.Iterable<V> ids)Deprecated.<T> Query<T>AdvancedDatastore. queryByExample(java.lang.String collection, T example)Returns a new query based on the example object<T> Query<T>Datastore. queryByExample(T example)Returns a new query based on the example object<T> Query<T>DatastoreImpl. queryByExample(java.lang.String collection, T ex)Deprecated.<T> Query<T>DatastoreImpl. queryByExample(T ex)Deprecated.Methods in dev.morphia with parameters of type Query Modifier and Type Method Description <T> com.mongodb.WriteResultDatastore. delete(Query<T> query)Deletes entities based on the query<T> com.mongodb.WriteResultDatastore. delete(Query<T> query, com.mongodb.WriteConcern wc)Deprecated.useDatastore.delete(Query, DeleteOptions)instead<T> com.mongodb.WriteResultDatastore. delete(Query<T> query, DeleteOptions options)Deletes entities based on the query<T> com.mongodb.WriteResultDatastoreImpl. delete(Query<T> query)Deprecated.<T> com.mongodb.WriteResultDatastoreImpl. delete(Query<T> query, com.mongodb.WriteConcern wc)Deprecated.<T> com.mongodb.WriteResultDatastoreImpl. delete(Query<T> query, DeleteOptions options)Deprecated.<T> TDatastore. findAndDelete(Query<T> query)Deletes the given entities based on the query (first item only).<T> TDatastore. findAndDelete(Query<T> query, FindAndModifyOptions options)Deletes the given entities based on the query (first item only).<T> TDatastoreImpl. findAndDelete(Query<T> query)Deprecated.<T> TDatastoreImpl. findAndDelete(Query<T> query, FindAndModifyOptions options)Deprecated.<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations)Find the first Entity from the Query, and modify it.<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion)<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion, boolean createIfMissing)<T> TDatastore. findAndModify(Query<T> query, UpdateOperations<T> operations, FindAndModifyOptions options)Find the first Entity from the Query, and modify it.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, boolean oldVersion, boolean createIfMissing)Deprecated.<T> TDatastoreImpl. findAndModify(Query<T> query, UpdateOperations<T> operations, FindAndModifyOptions options)Deprecated.<T> longDatastore. getCount(Query<T> query)Deprecated.usecount()instead<T> longDatastore. getCount(Query<T> query, CountOptions options)Deprecated.usecount(CountOptions)instead<T> longDatastoreImpl. getCount(Query<T> query)Deprecated.<T> longDatastoreImpl. getCount(Query<T> query, CountOptions options)Deprecated.<T> MapreduceResults<T>Datastore. mapReduce(MapreduceType type, Query q, java.lang.Class<T> outputType, com.mongodb.MapReduceCommand baseCommand)Deprecated.This feature will not be supported in 2.0<T> MapreduceResults<T>Datastore. mapReduce(MapreduceType type, Query q, java.lang.String map, java.lang.String reduce, java.lang.String finalize, java.util.Map<java.lang.String,java.lang.Object> scopeFields, java.lang.Class<T> outputType)Deprecated.This feature will not be supported in 2.0<T> MapreduceResults<T>DatastoreImpl. mapReduce(MapreduceType type, Query query, java.lang.Class<T> outputType, com.mongodb.MapReduceCommand baseCommand)Deprecated.<T> MapreduceResults<T>DatastoreImpl. mapReduce(MapreduceType type, Query query, java.lang.String map, java.lang.String reduce, java.lang.String finalize, java.util.Map<java.lang.String,java.lang.Object> scopeFields, java.lang.Class<T> outputType)Deprecated.MapReduceOptions<T>MapReduceOptions. query(Query query)Deprecated.Sets the query defining the input for the job.<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations)Updates all entities found with the operations; this is an atomic operation per entity<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. update(Query<T> query, UpdateOperations<T> operations, UpdateOptions options)Updates all entities found with the operations; this is an atomic operation per entity<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.<T> UpdateResultsDatastoreImpl. update(Query<T> query, UpdateOperations<T> operations, UpdateOptions options)Deprecated.<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastore. updateFirst(Query<T> query, T entity, boolean createIfMissing)Deprecated.useDatastore.update(Query, UpdateOperations, UpdateOptions)with upsert set to the value of createIfMissing<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations)Deprecated.<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing)Deprecated.<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, UpdateOperations<T> operations, boolean createIfMissing, com.mongodb.WriteConcern wc)Deprecated.<T> UpdateResultsDatastoreImpl. updateFirst(Query<T> query, T entity, boolean createIfMissing)Deprecated. -
Uses of Query in dev.morphia.aggregation
Methods in dev.morphia.aggregation that return Query Modifier and Type Method Description QueryGeoNear. getQuery()Limits the results to the documents that match the query.Methods in dev.morphia.aggregation with parameters of type Query Modifier and Type Method Description AggregationPipelineAggregationPipeline. match(Query query)Filters the document stream to allow only matching documents to pass unmodified into the next pipeline stage.AggregationPipelineAggregationPipelineImpl. match(Query query)GeoNear.GeoNearBuilderGeoNear.GeoNearBuilder. setQuery(Query query)Limits the results to the documents that match the query. -
Uses of Query in dev.morphia.dao
Methods in dev.morphia.dao that return Query Modifier and Type Method Description Query<T>BasicDAO. createQuery()Deprecated.Query<T>DAO. createQuery()Deprecated.Starts a query for this DAO entities typeQuery<T>BasicDAO. find()Deprecated.Query<T>BasicDAO. find(Query<T> query)Deprecated.Query<T>DAO. find()Deprecated.Finds all the documents in the collection mapped by the entity classQuery<T>DAO. find(Query<T> query)Deprecated.Finds entities matching a queryMethods in dev.morphia.dao with parameters of type Query Modifier and Type Method Description longBasicDAO. count(Query<T> query)Deprecated.longDAO. count(Query<T> query)Deprecated.com.mongodb.WriteResultBasicDAO. deleteByQuery(Query<T> query)Deprecated.com.mongodb.WriteResultDAO. deleteByQuery(Query<T> query)Deprecated.Delete the entity matching a querybooleanBasicDAO. exists(Query<T> query)Deprecated.booleanDAO. exists(Query<T> query)Deprecated.checks for entities which match the criteriaQuery<T>BasicDAO. find(Query<T> query)Deprecated.Query<T>DAO. find(Query<T> query)Deprecated.Finds entities matching a queryjava.util.List<K>BasicDAO. findIds(Query<T> query)Deprecated.java.util.List<K>DAO. findIds(Query<T> query)Deprecated.Finds the entities Ts by the criteria {key:value}TBasicDAO. findOne(Query<T> query)Deprecated.TDAO. findOne(Query<T> query)Deprecated.Finds the first entity matching the query.Key<T>BasicDAO. findOneId(Query<T> query)Deprecated.Key<T>DAO. findOneId(Query<T> query)Deprecated.Finds the first entity's IDUpdateResultsBasicDAO. update(Query<T> query, UpdateOperations<T> ops)Deprecated.UpdateResultsDAO. update(Query<T> query, UpdateOperations<T> ops)Deprecated.Updates all entities matched by the constraints with the modifiers supplied.UpdateResultsBasicDAO. updateFirst(Query<T> query, UpdateOperations<T> ops)Deprecated.UpdateResultsDAO. updateFirst(Query<T> query, UpdateOperations<T> ops)Deprecated.Updates the first entity matched by the constraints with the modifiers supplied. -
Uses of Query in dev.morphia.query
Classes in dev.morphia.query that implement Query Modifier and Type Class Description classQueryImpl<T>Implementation of QueryMethods in dev.morphia.query that return Query Modifier and Type Method Description Query<T>Query. batchSize(int value)Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. batchSize(int value)Deprecated.Query<T>Query. cloneQuery()Creates and returns a copy of thisQuery.Query<T>Query. comment(java.lang.String comment)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. comment(java.lang.String comment)Deprecated.<T> Query<T>AbstractQueryFactory. createQuery(Datastore datastore)<T> Query<T>AbstractQueryFactory. createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type)<T> Query<T>DefaultQueryFactory. createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type, com.mongodb.DBObject query)<T> Query<T>QueryFactory. createQuery(Datastore datastore)Creates an unvalidatedQuerytypically for use in aggregation pipelines.<T> Query<T>QueryFactory. createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type)Creates and returns aQueryfor the given arguments.<T> Query<T>QueryFactory. createQuery(Datastore datastore, com.mongodb.DBCollection collection, java.lang.Class<T> type, com.mongodb.DBObject query)Creates and returns aQueryfor the given arguments.Query<T>Query. disableCursorTimeout()Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. disableCursorTimeout()Deprecated.Query<T>Query. disableSnapshotMode()Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. disableSnapshotMode()Deprecated.Query<T>Query. disableValidation()Turns off validation (for all calls made after)Query<T>QueryImpl. disableValidation()Query<T>Query. enableCursorTimeout()Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. enableCursorTimeout()Deprecated.Query<T>Query. enableSnapshotMode()Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. enableSnapshotMode()Deprecated.Query<T>Query. enableValidation()Turns on validation (for all calls made after); by default validation is onQuery<T>QueryImpl. enableValidation()Query<T>Query. filter(java.lang.String condition, java.lang.Object value)Create a filter based on the specified condition and value.Query<T>QueryImpl. filter(java.lang.String condition, java.lang.Object value)Query<T>Query. hintIndex(java.lang.String idxName)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. hintIndex(java.lang.String idxName)Deprecated.Query<T>Query. limit(int value)Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. limit(int value)Deprecated.Query<T>Query. lowerIndexBound(com.mongodb.DBObject lowerBound)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. lowerIndexBound(com.mongodb.DBObject lowerBound)Deprecated.Query<T>Query. maxScan(int value)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. maxScan(int value)Deprecated.Query<T>Query. maxTime(long maxTime, java.util.concurrent.TimeUnit maxTimeUnit)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. maxTime(long value, java.util.concurrent.TimeUnit unit)Deprecated.Query<T>Query. offset(int value)Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. offset(int value)Deprecated.Query<T>Query. order(Meta sort)Sorts based on a metadata (defines return order).Query<T>Query. order(Sort... sorts)Sorts based on a specified sort keys (defines return order).Query<T>Query. order(java.lang.String sort)Deprecated.useorder(Sort...)Query<T>QueryImpl. order(Meta sort)Query<T>QueryImpl. order(Sort... sorts)Query<T>QueryImpl. order(java.lang.String sort)Query<T>Query. project(Meta meta)Adds a metadata field to a projection.Query<T>Query. project(java.lang.String field, boolean include)Adds a field to the projection clause.Query<T>Query. project(java.lang.String field, ArraySlice slice)Adds an sliced array field to a projection.Query<T>QueryImpl. project(Meta meta)Query<T>QueryImpl. project(java.lang.String field, boolean include)Query<T>QueryImpl. project(java.lang.String field, ArraySlice slice)Query<T>Query. queryNonPrimary()Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. queryNonPrimary()Deprecated.Query<T>Query. queryPrimaryOnly()Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. queryPrimaryOnly()Deprecated.Query<T>Query. retrievedFields(boolean include, java.lang.String... fields)Deprecated.useproject(String, boolean)insteadQuery<T>QueryImpl. retrievedFields(boolean include, java.lang.String... list)Deprecated.Query<T>Query. retrieveKnownFields()Limits the fields retrieved to those of the query type -- dangerous with interfaces and abstract classesQuery<T>QueryImpl. retrieveKnownFields()Query<T>Query. returnKey()Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. returnKey()Deprecated.Query<T>Query. search(java.lang.String text)Perform a text search on the content of the fields indexed with a text index..Query<T>Query. search(java.lang.String text, java.lang.String language)Perform a text search on the content of the fields indexed with a text index..Query<T>QueryImpl. search(java.lang.String search)Query<T>QueryImpl. search(java.lang.String search, java.lang.String language)Query<T>Query. upperIndexBound(com.mongodb.DBObject upperBound)Deprecated.use the methods that accept Options directly.Query<T>QueryImpl. upperIndexBound(com.mongodb.DBObject upperBound)Deprecated.Query<T>Query. useReadPreference(com.mongodb.ReadPreference readPref)Deprecated.use the methods that accept Options directlyQuery<T>QueryImpl. useReadPreference(com.mongodb.ReadPreference readPref)Deprecated.Query<T>Query. where(java.lang.String js)Limit the query using this javascript block; only one per queryQuery<T>Query. where(org.bson.types.CodeWScope js)Limit the query using this javascript block; only one per queryQuery<T>QueryImpl. where(java.lang.String js)Query<T>QueryImpl. where(org.bson.types.CodeWScope js)Methods in dev.morphia.query that return types with arguments of type Query Modifier and Type Method Description FieldEnd<? extends Query<T>>Query. field(java.lang.String field)Fluent query interface:createQuery(Ent.class).field("count").greaterThan(7)...FieldEnd<? extends Query<T>>QueryImpl. field(java.lang.String name)Methods in dev.morphia.query with parameters of type Query Modifier and Type Method Description TFieldEnd. elemMatch(Query query)Checks that a field matches the provided query definitionTFieldEndImpl. elemMatch(Query query)
-