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.Classes in dev.morphia that implement Datastore Modifier and Type Class Description class
DatastoreImpl
A generic (type-safe) wrapper around mongodb collectionsMethods in dev.morphia that return Datastore Modifier and Type Method Description static 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, for removal: This API element is subject to removal in a future version.Please useMorphia.createDatastore(MongoClient, String)
static Datastore
Morphia. createDatastore(String dbName, MapperOptions options)
Deprecated, for removal: This API element is subject to removal in a future version.Methods in dev.morphia with parameters of type Datastore Modifier and Type Method Description default void
EntityInterceptor. postLoad(Object ent, Document document, Datastore datastore)
default void
EntityInterceptor. postPersist(Object ent, Document document, Datastore datastore)
default void
EntityInterceptor. preLoad(Object ent, Document document, Datastore datastore)
default void
EntityInterceptor. prePersist(Object ent, 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 that return Datastore Modifier and Type Method Description protected Datastore
ExpressionCodec. getDatastore()
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
Methods in dev.morphia.mapping with parameters of type Datastore Modifier and Type Method Description MorphiaCodecProvider
EntityModelImporter. getCodecProvider(Datastore datastore)
Returns the codec provider responsible for creating the codecs for theEntityModel
s returned by this importer. -
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()
protected Datastore
MorphiaCodecProvider. 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 providerMorphiaTypesCodecProvider(Datastore datastore)
Create the 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 entityConstructors in dev.morphia.mapping.experimental with parameters of type Datastore Constructor Description CollectionReference(Datastore datastore, Mapper mapper, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.ListReference(Datastore datastore, Mapper mapper, EntityModel model, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.MapReference(Datastore datastore, Mapper mapper, 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, Mapper mapper, EntityModel entityModel, List ids)
Deprecated, for removal: This API element is subject to removal in a future version.SingleReference(Datastore datastore, Mapper mapper, EntityModel entityModel, Object id)
Deprecated, for removal: This API element is subject to removal in a future version. -
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 CriteriaContainerImpl(Datastore datastore, LegacyQuery<?> query, CriteriaJoin joinMethod)
Deprecated, for removal: This API element is subject to removal in a future version.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.Classes in dev.morphia.transactions that implement Datastore Modifier and Type Class Description class
MorphiaSessionImpl
-