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.Mongo mongo,
String dbName)
It is best to use a Mongo singleton instance here.
|
Datastore |
Morphia.createDatastore(com.mongodb.Mongo mon,
String dbName,
String user,
char[] pw)
Deprecated.
use #createDatastore(com.mongodb.Mongo,java.lang.String) which a MongoClient instance which will authenticate for you
|
Datastore |
Morphia.createDatastore(String dbName)
Deprecated.
use #createDatastore(com.mongodb.Mongo,java.lang.String) which a MongoClient instance which will authenticate for you
|
Datastore |
Morphia.createDatastore(String dbName,
String user,
char[] pw)
Deprecated.
use #createDatastore(com.mongodb.Mongo,java.lang.String) which a MongoClient instance which will authenticate for you
|
static Datastore |
DatastoreService.getDatastore()
Connects to "test" database on localhost by default
|
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) |
Modifier and Type | Method and Description |
---|---|
Datastore |
DefaultDatastoreProvider.get() |
Datastore |
DatastoreHolder.get() |
Datastore |
DatastoreProvider.get() |
Modifier and Type | Method and Description |
---|---|
void |
DatastoreHolder.set(Datastore store) |
Modifier and Type | Method and Description |
---|---|
<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)
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 . |
<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. |
Constructor and Description |
---|
QueryImpl(Class<T> clazz,
com.mongodb.DBCollection coll,
Datastore ds) |
QueryImpl(Class<T> clazz,
com.mongodb.DBCollection coll,
Datastore ds,
com.mongodb.DBObject baseQuery)
Deprecated.
|
QueryImpl(Class<T> clazz,
com.mongodb.DBCollection coll,
Datastore ds,
int offset,
int limit)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static com.mongodb.DB |
Helper.getDB(Datastore ds) |
Copyright © 2015. All rights reserved.