Package | Description |
---|---|
org.mongodb.morphia | |
org.mongodb.morphia.dao | |
org.mongodb.morphia.mapping.lazy | |
org.mongodb.morphia.query | |
org.mongodb.morphia.utils |
Modifier and Type | Interface and Description |
---|---|
interface |
AdvancedDatastore
This interface exposes advanced
Datastore features, like interacting with DBObject and low-level options. |
Modifier and Type | Class and Description |
---|---|
class |
DatastoreImpl
A generic (type-safe) wrapper around mongodb collections
|
Modifier and Type | Method and Description |
---|---|
Datastore |
Morphia.createDatastore(com.mongodb.MongoClient mongoClient,
Mapper mapper,
String dbName)
Creates a new Datastore for interacting with MongoDB using POJOs
|
Datastore |
Morphia.createDatastore(com.mongodb.MongoClient mongoClient,
String dbName)
It is best to use a Mongo singleton instance here.
|
Constructor and Description |
---|
DAO(Class<T> entityClass,
Datastore ds)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Datastore |
BasicDAO.getDatastore() |
Datastore |
DAO.getDatastore()
returns the underlying datastore
|
Constructor and Description |
---|
BasicDAO(Class<T> entityClass,
Datastore ds)
Create a new BasicDAO
|
Modifier and Type | Method and Description |
---|---|
Datastore |
DatastoreProvider.get() |
Datastore |
ThreadLocalDatastoreProvider.get() |
Datastore |
DatastoreHolder.get() |
Datastore |
SingleDatastoreProvider.get() |
Datastore |
DefaultDatastoreProvider.get() |
Modifier and Type | Method and Description |
---|---|
void |
DatastoreProvider.register(Datastore ds) |
void |
ThreadLocalDatastoreProvider.register(Datastore ds) |
void |
SingleDatastoreProvider.register(Datastore ds) |
void |
DefaultDatastoreProvider.register(Datastore ds) |
void |
DatastoreHolder.set(Datastore store) |
Modifier and Type | Method and Description |
---|---|
<T> Query<T> |
QueryFactory.createQuery(Datastore datastore)
Creates an unvalidated
Query typically for use in aggregation pipelines. |
<T> Query<T> |
AbstractQueryFactory.createQuery(Datastore datastore) |
<T> Query<T> |
QueryFactory.createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type)
Creates and returns a
Query for the given arguments. |
<T> Query<T> |
AbstractQueryFactory.createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type) |
<T> Query<T> |
QueryFactory.createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type,
com.mongodb.DBObject query)
Creates and returns a
Query for the given arguments. |
<T> Query<T> |
DefaultQueryFactory.createQuery(Datastore datastore,
com.mongodb.DBCollection collection,
Class<T> type,
com.mongodb.DBObject query)
Creates and returns a
QueryImpl . |
Constructor and Description |
---|
QueryImpl(Class<T> clazz,
com.mongodb.DBCollection coll,
Datastore ds) |
Modifier and Type | Method and Description |
---|---|
static com.mongodb.DB |
Helper.getDB(Datastore ds) |
Copyright © 2016. All rights reserved.