Uses of Interface
dev.morphia.Datastore
-
-
Uses of Datastore in dev.morphia
Subinterfaces of Datastore in dev.morphia Modifier and Type Interface Description interface
AdvancedDatastore
Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.morphia that return Datastore Modifier and Type Method Description static Datastore
Morphia. createDatastore(MongoClient mongoClient)
Creates a Datastore configured via config file.static Datastore
Morphia. createDatastore(MongoClient mongoClient, MorphiaConfig config)
Creates a Datastore configured via config filestatic Datastore
Morphia. createDatastore(MongoClient mongoClient, String dbName)
It is best to use a Mongo singleton instance here.static Datastore
Morphia. createDatastore(MongoClient mongoClient, String dbName, MapperOptions options)
It is best to use a Mongo singleton instance here.static Datastore
Morphia. createDatastore(String dbName)
Deprecated.useMorphia.createDatastore(MongoClient)
and provide a configuration file instead.static Datastore
Morphia. createDatastore(String dbName, MapperOptions options)
Creates a DatastoreMethods in dev.morphia with parameters of type Datastore Modifier and Type Method Description default void
EntityInterceptor. postLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.default void
EntityListener. postLoad(T entity, Document document, Datastore datastore)
default void
EntityInterceptor. postPersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.default void
EntityListener. postPersist(T entity, Document document, Datastore datastore)
default void
EntityInterceptor. preLoad(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.default void
EntityListener. preLoad(T entity, Document document, Datastore datastore)
default void
EntityInterceptor. prePersist(Object ent, Document document, Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.default void
EntityListener. prePersist(T entity, Document document, Datastore datastore)
-
Uses of Datastore in dev.morphia.aggregation
Constructors in dev.morphia.aggregation with parameters of type Datastore Constructor Description AggregationPipelineImpl(Datastore datastore, MongoCollection collection, Class source)
Deprecated, for removal: This API element is subject to removal in a future version.Creates an AggregationPipeline -
Uses of Datastore in dev.morphia.aggregation.codecs
Methods in dev.morphia.aggregation.codecs with parameters of type Datastore Modifier and Type Method Description static void
ExpressionHelper. array(Datastore datastore, BsonWriter writer, String name, List<dev.morphia.aggregation.expressions.impls.Expression> list, EncoderContext encoderContext)
static void
ExpressionHelper. expression(Datastore datastore, BsonWriter writer, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
ExpressionHelper. expression(Datastore datastore, BsonWriter writer, String name, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
ExpressionHelper. value(Datastore datastore, BsonWriter writer, Object value, EncoderContext encoderContext)
static void
ExpressionHelper. value(Datastore datastore, BsonWriter writer, String name, Object value, EncoderContext encoderContext)
static void
ExpressionHelper. wrapExpression(Datastore datastore, BsonWriter writer, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
static void
ExpressionHelper. wrapExpression(Datastore datastore, BsonWriter writer, String name, dev.morphia.aggregation.expressions.impls.Expression expression, EncoderContext encoderContext)
Constructors in dev.morphia.aggregation.codecs with parameters of type Datastore Constructor Description AggregationCodecProvider(Datastore datastore)
ExpressionCodec(Datastore datastore)
-
Uses of Datastore in dev.morphia.aggregation.codecs.stages
Methods in dev.morphia.aggregation.codecs.stages that return Datastore Modifier and Type Method Description Datastore
StageCodec. getDatastore()
-
Uses of Datastore in dev.morphia.aggregation.expressions
Methods in dev.morphia.aggregation.expressions with parameters of type Datastore Modifier and Type Method Description void
DateExpressions.DateExpression. encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
void
ObjectExpressions.MergeObjects. encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
-
Uses of Datastore in dev.morphia.mapping.codec
Methods in dev.morphia.mapping.codec that return Datastore Modifier and Type Method Description Datastore
BaseReferenceCodec. getDatastore()
Constructors in dev.morphia.mapping.codec with parameters of type Datastore Constructor Description BaseReferenceCodec(Datastore datastore, PropertyModel property)
Creates a codecLegacyQueryCodec(Datastore datastore)
Deprecated.Creates a codecMorphiaCodecProvider(Datastore datastore)
Creates a providerObjectCodec(Datastore datastore)
Creates a codec -
Uses of Datastore in dev.morphia.mapping.codec.pojo
Methods in dev.morphia.mapping.codec.pojo that return Datastore Modifier and Type Method Description Datastore
MorphiaCodec. getDatastore()
Methods in dev.morphia.mapping.codec.pojo with parameters of type Datastore Modifier and Type Method Description void
EntityModel. callLifecycleMethods(Class<? extends Annotation> event, Object entity, Document document, Datastore datastore)
Invokes any lifecycle methodsCodec<?>
PropertyModel. specializeCodec(Datastore datastore)
Constructors in dev.morphia.mapping.codec.pojo with parameters of type Datastore Constructor Description MorphiaCodec(Datastore datastore, EntityModel model, List<PropertyCodecProvider> propertyCodecProviders, DiscriminatorLookup discriminatorLookup, CodecRegistry registry)
Creates a new codec -
Uses of Datastore in dev.morphia.mapping.codec.references
Methods in dev.morphia.mapping.codec.references with parameters of type Datastore Modifier and Type Method Description static Object
ReferenceCodec. processId(Datastore datastore, Object decode, DecoderContext decoderContext)
Decodes an ID valueConstructors in dev.morphia.mapping.codec.references with parameters of type Datastore Constructor Description ReferenceCodec(Datastore datastore, PropertyModel propertyModel)
Creates a codec -
Uses of Datastore in dev.morphia.mapping.experimental
Methods in dev.morphia.mapping.experimental that return Datastore Modifier and Type Method Description protected Datastore
MorphiaReference. getDatastore()
Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.morphia.mapping.experimental with parameters of type Datastore Modifier and Type Method Description static MapReference
MapReference. decode(Datastore datastore, Mapper mapper, PropertyModel property, Document document)
Deprecated, for removal: This API element is subject to removal in a future version.Decodes a document in to entitiesstatic MorphiaReference<?>
SingleReference. decode(Datastore datastore, Mapper mapper, PropertyModel mappedField, Class<?> paramType, Document document)
Deprecated, for removal: This API element is subject to removal in a future version.Decodes a document in to an entitystatic <V> MorphiaReference<V>
MorphiaReference. wrap(Datastore datastore, V value)
Deprecated, for removal: This API element is subject to removal in a future version.Wraps an idValue in a MorphiaReference to storing on an entityConstructors in dev.morphia.mapping.experimental with parameters of type Datastore Constructor Description CollectionReference(Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.CollectionReference(Datastore datastore, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.ListReference(Datastore datastore, EntityModel model, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.ListReference(Datastore datastore, List<T> values)
Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance with prepopulated values.MapReference(Datastore datastore, Map<String,Object> ids, EntityModel entityModel)
Deprecated, for removal: This API element is subject to removal in a future version.MorphiaReferenceCodec(Datastore datastore, PropertyModel propertyModel)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a codecSetReference(Datastore datastore, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.SetReference(Datastore datastore, Set<T> values)
Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance with prepopulated values.SingleReference(Datastore datastore, EntityModel entityModel, Object id)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Datastore in dev.morphia.mapping.lifecycle
Methods in dev.morphia.mapping.lifecycle with parameters of type Datastore Modifier and Type Method Description protected Object[]
EntityListenerAdapter. collectArgs(Method method, Object entity, Document document, Datastore datastore)
void
EntityListenerAdapter. postLoad(Object entity, Document document, Datastore datastore)
void
EntityListenerAdapter. postPersist(Object entity, Document document, Datastore datastore)
void
EntityListenerAdapter. preLoad(Object entity, Document document, Datastore datastore)
void
EntityListenerAdapter. prePersist(Object entity, Document document, Datastore datastore)
-
Uses of Datastore in dev.morphia.query
Methods in dev.morphia.query that return Datastore Modifier and Type Method Description protected Datastore
LegacyQuery. getDatastore()
Deprecated.Methods in dev.morphia.query with parameters of type Datastore Modifier and Type Method Description <T> Query<T>
DefaultQueryFactory. createQuery(Datastore datastore, Class<T> type, Document query)
<T> Query<T>
DefaultQueryFactory. createQuery(Datastore datastore, String collection, Class<T> type)
<T> Query<T>
LegacyQueryFactory. createQuery(Datastore datastore, Class<T> type, Document seed)
Deprecated.<T> Query<T>
LegacyQueryFactory. createQuery(Datastore datastore, String collection, Class<T> type)
Deprecated.default <T> Query<T>
QueryFactory. createQuery(Datastore datastore)
Deprecated, for removal: This API element is subject to removal in a future version.this method is no longer useddefault <T> Query<T>
QueryFactory. createQuery(Datastore datastore, Class<T> type)
Creates a new query for the given type.<T> Query<T>
QueryFactory. createQuery(Datastore datastore, Class<T> type, Document query)
Creates and returns aQuery
for the given arguments.<T> Query<T>
QueryFactory. createQuery(Datastore datastore, String collection, Class<T> type)
Creates and returns aQuery
for the given arguments.Object
OperationTarget. encode(Datastore datastore)
Encodes this targetConstructors in dev.morphia.query with parameters of type Datastore Constructor Description FieldEndImpl(Datastore datastore, String field, T target, EntityModel model, boolean validating)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a FieldEnd for a particular field.LegacyQuery(Datastore datastore, String collectionName, Class<T> type)
Deprecated.Creates a Query for the given type and collection -
Uses of Datastore in dev.morphia.query.filters
Methods in dev.morphia.query.filters with parameters of type Datastore Modifier and Type Method Description void
Filter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
GeoIntersectsFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
GeoWithinFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
LogicalFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
NearFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
RegexFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
void
TextSearchFilter. encode(Datastore datastore, BsonWriter writer, EncoderContext context)
protected Object
Filter. getValue(Datastore datastore)
protected void
Filter. writeNamedValue(String name, Object value, Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
protected void
Filter. writeUnnamedValue(Object value, Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
-
Uses of Datastore in dev.morphia.transactions
Subinterfaces of Datastore in dev.morphia.transactions Modifier and Type Interface Description interface
MorphiaSession
Wraps a ClientSession reference for convenient use of MongoDB's multidocument transaction support.
-