Uses of Interface
dev.morphia.Datastore
-
Packages that use Datastore Package Description dev.morphia dev.morphia.dao dev.morphia.mapping dev.morphia.mapping.experimental dev.morphia.mapping.lazy dev.morphia.mapping.lazy.proxy dev.morphia.query dev.morphia.query.internal -
-
Uses of Datastore in dev.morphia
Subinterfaces of Datastore in dev.morphia Modifier and Type Interface Description interfaceAdvancedDatastoreThis interface exposes advancedDatastorefeatures, like interacting with DBObject and low-level options.Classes in dev.morphia that implement Datastore Modifier and Type Class Description classDatastoreImplDeprecated.This is an internal implementation of a published API.Methods in dev.morphia that return Datastore Modifier and Type Method Description DatastoreMorphia. createDatastore(com.mongodb.MongoClient mongoClient, Mapper mapper, java.lang.String dbName)Creates a new Datastore for interacting with MongoDB using POJOsDatastoreMorphia. createDatastore(com.mongodb.MongoClient mongoClient, java.lang.String dbName)It is best to use a Mongo singleton instance here.Methods in dev.morphia with parameters of type Datastore Modifier and Type Method Description <T> TMorphia. fromDBObject(Datastore datastore, java.lang.Class<T> entityClass, com.mongodb.DBObject dbObject)Creates an entity and populates its state based on the dbObject given.<T> TMorphia. fromDBObject(Datastore datastore, java.lang.Class<T> entityClass, com.mongodb.DBObject dbObject, EntityCache cache)Creates an entity and populates its state based on the dbObject given.voidMapreduceResults. setInlineRequiredOptions(Datastore datastore, java.lang.Class<T> clazz, Mapper mapper, EntityCache cache)Deprecated.Sets the required options when the operation type was INLINEConstructors in dev.morphia with parameters of type Datastore Constructor Description DAO(java.lang.Class<T> entityClass, Datastore ds)Deprecated. -
Uses of Datastore in dev.morphia.dao
Methods in dev.morphia.dao that return Datastore Modifier and Type Method Description DatastoreBasicDAO. getDatastore()Deprecated.DatastoreDAO. getDatastore()Deprecated.Constructors in dev.morphia.dao with parameters of type Datastore Constructor Description BasicDAO(Datastore ds)Deprecated.BasicDAO(java.lang.Class<T> entityClass, Datastore ds)Deprecated.Create a new BasicDAO -
Uses of Datastore in dev.morphia.mapping
Methods in dev.morphia.mapping with parameters of type Datastore Modifier and Type Method Description <T> TMapper. fromDb(Datastore datastore, com.mongodb.DBObject dbObject, T entity, EntityCache cache)Deprecated.no replacement is plannedvoidCustomMapper. fromDBObject(Datastore datastore, com.mongodb.DBObject dbObject, MappedField mf, java.lang.Object entity, EntityCache cache, Mapper mapper)Deprecated.Creates an entity and populates its state based on the dbObject given.<T> TMapper. fromDBObject(Datastore datastore, java.lang.Class<T> entityClass, com.mongodb.DBObject dbObject, EntityCache cache)Deprecated.no replacement is plannedvoidMapper. updateKeyAndVersionInfo(Datastore datastore, com.mongodb.DBObject dbObj, EntityCache cache, java.lang.Object entity)Deprecated. -
Uses of Datastore in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental with parameters of type Datastore Modifier and Type Method Description static MorphiaReference<?>CollectionReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, java.lang.Class paramType, com.mongodb.DBObject dbObject)Decodes a document in to entitiesstatic MapReferenceMapReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, com.mongodb.DBObject dbObject)Decodes a document in to entitiesstatic MorphiaReference<?>SingleReference. decode(Datastore datastore, Mapper mapper, MappedField mappedField, java.lang.Class paramType, com.mongodb.DBObject dbObject)Decodes a document in to an entity -
Uses of Datastore in dev.morphia.mapping.lazy
Methods in dev.morphia.mapping.lazy that return Datastore Modifier and Type Method Description DatastoreDatastoreProvider. get()Deprecated.Methods in dev.morphia.mapping.lazy with parameters of type Datastore Modifier and Type Method Description <T extends java.util.Collection>
TCGLibLazyProxyFactory. createListProxy(Datastore datastore, T listToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)<T extends java.util.Collection>
TLazyProxyFactory. createListProxy(Datastore datastore, T listToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)Creates a proxy for a List.<T extends java.util.Map>
TCGLibLazyProxyFactory. createMapProxy(Datastore datastore, T mapToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)<T extends java.util.Map>
TLazyProxyFactory. createMapProxy(Datastore datastore, T mapToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)Creates a proxy for a Map.<T> TCGLibLazyProxyFactory. createProxy(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)<T> TLazyProxyFactory. createProxy(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)Creates a proxy for a Class.voidDatastoreProvider. register(Datastore ds)Deprecated.Registers a Datastore with this provider -
Uses of Datastore in dev.morphia.mapping.lazy.proxy
Methods in dev.morphia.mapping.lazy.proxy that return Datastore Modifier and Type Method Description DatastoreAbstractReference. getDatastore()Constructors in dev.morphia.mapping.lazy.proxy with parameters of type Datastore Constructor Description AbstractReference(Datastore datastore, java.lang.Class referenceObjClass, boolean ignoreMissing)CollectionObjectReference(java.util.Collection<T> type, java.lang.Class<T> referenceObjClass, boolean ignoreMissing, Datastore datastore)Creates a CollectionObjectReferenceEntityObjectReference(Datastore datastore, java.lang.Class targetClass, Key key, boolean ignoreMissing)Creates an object referenceMapObjectReference(Datastore datastore, java.util.Map mapToProxy, java.lang.Class referenceObjClass, boolean ignoreMissing)Creates a MapObjectReference -
Uses of Datastore in dev.morphia.query
Methods in dev.morphia.query with parameters of type Datastore Modifier and Type Method Description <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.Constructors in dev.morphia.query with parameters of type Datastore Constructor Description MorphiaIterator(Datastore datastore, java.util.Iterator<com.mongodb.DBObject> it, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection, EntityCache cache)Deprecated.Creates a MorphiaIteratorMorphiaKeyIterator(Datastore datastore, com.mongodb.DBCursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)Deprecated.CreateQueryImpl(java.lang.Class<T> clazz, com.mongodb.DBCollection coll, Datastore ds)Creates a Query for the given type and collection -
Uses of Datastore in dev.morphia.query.internal
Constructors in dev.morphia.query.internal with parameters of type Datastore Constructor Description MorphiaCursor(Datastore datastore, com.mongodb.Cursor cursor, Mapper mapper, java.lang.Class<T> clazz, EntityCache cache)Creates a MorphiaCursorMorphiaKeyCursor(Datastore datastore, com.mongodb.Cursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)Create
-