public class DatastoreImpl extends Object implements AdvancedDatastore
| Constructor and Description |
|---|
DatastoreImpl(Mapper mapper,
com.mongodb.Mongo mongo,
String dbName) |
DatastoreImpl(Morphia morphia,
com.mongodb.Mongo mongo) |
DatastoreImpl(Morphia morphia,
com.mongodb.Mongo mongo,
String dbName) |
DatastoreImpl(Morphia morphia,
com.mongodb.Mongo mongo,
String dbName,
String username,
char[] password)
Deprecated.
Authentication is already handled by the Mongo instance
|
| Modifier and Type | Method and Description |
|---|---|
DatastoreImpl |
copy(String database) |
<T> Query<T> |
createQuery(Class<T> type)
Returns a new query bound to the kind (a specific
DBCollection) |
<T> Query<T> |
createQuery(Class<T> type,
com.mongodb.DBObject q) |
<T> Query<T> |
createQuery(String kind,
Class<T> type) |
<T> Query<T> |
createQuery(String kind,
Class<T> type,
com.mongodb.DBObject q) |
<T,V> com.mongodb.DBRef |
createRef(Class<T> clazz,
V id)
Creates a reference to the entity (using the current DB -can be null-, the collectionName, and id)
|
<T> com.mongodb.DBRef |
createRef(T entity)
Creates a reference to the entity (using the current DB -can be null-, the collectionName, and id)
|
<T> UpdateOperations<T> |
createUpdateOperations(Class<T> clazz)
The builder for all update operations
|
<T> UpdateOperations<T> |
createUpdateOperations(Class<T> kind,
com.mongodb.DBObject ops) |
<T,V> com.mongodb.WriteResult |
delete(Class<T> clazz,
Iterable<V> ids)
Deletes the given entities (by id)
|
<T,V> com.mongodb.WriteResult |
delete(Class<T> clazz,
V id)
Deletes the given entity (by id)
|
<T,V> com.mongodb.WriteResult |
delete(Class<T> clazz,
V id,
com.mongodb.WriteConcern wc) |
<T> com.mongodb.WriteResult |
delete(Query<T> query)
Deletes the given entities based on the query
|
<T> com.mongodb.WriteResult |
delete(Query<T> query,
com.mongodb.WriteConcern wc)
Deletes the given entities based on the query, with the WriteConcern
|
<T,V> com.mongodb.WriteResult |
delete(String kind,
Class<T> clazz,
V id) |
<T,V> com.mongodb.WriteResult |
delete(String kind,
Class<T> clazz,
V id,
com.mongodb.WriteConcern wc) |
<T> com.mongodb.WriteResult |
delete(String kind,
T id)
No validation or conversion is done to the id
|
<T> com.mongodb.WriteResult |
delete(T entity)
Deletes the given entity (by @Id)
|
<T> com.mongodb.WriteResult |
delete(T entity,
com.mongodb.WriteConcern wc)
Deletes the given entity (by @Id), with the WriteConcern
|
void |
ensureCaps()
ensure capped DBCollections for
Entity(s) |
<T> void |
ensureIndex(Class<T> type,
boolean background,
IndexFieldDef... fields) |
<T> void |
ensureIndex(Class<T> type,
IndexFieldDef... fields)
Ensures (creating if necessary) the index including the field(s) + directions
|
<T> void |
ensureIndex(Class<T> type,
String fields)
Ensures (creating if necessary) the index including the field(s) + directions; eg fields = "field1, -field2" ({field1:1, field2:-1})
|
<T> void |
ensureIndex(Class<T> type,
String name,
IndexDirection dir)
Ensures (creating if necessary) the index and direction
|
<T> void |
ensureIndex(Class<T> clazz,
String name,
IndexFieldDef[] definitions,
boolean unique,
boolean dropDupsOnCreate)
Deprecated.
IndexFieldDef is deprecated
|
<T> void |
ensureIndex(Class<T> clazz,
String name,
String fields,
boolean unique,
boolean dropDupsOnCreate)
Ensures (creating if necessary) the index including the field(s) + directions; eg fields = "field1, -field2" ({field1:1, field2:-1})
|
<T> void |
ensureIndex(Class<T> clazz,
String name,
String fields,
boolean unique,
boolean dropDupsOnCreate,
boolean background) |
void |
ensureIndex(Class clazz,
String name,
IndexFieldDef[] definitions,
boolean unique,
boolean dropDupsOnCreate,
boolean background)
Deprecated.
IndexFieldDef is deprecated
|
void |
ensureIndexes()
Ensures (creating if necessary) the indexes found during class mapping (using
@Indexed, @Indexes) |
void |
ensureIndexes(boolean background)
Ensures (creating if necessary) the indexes found during class mapping (using
@Indexed, @Indexes), possibly in the background |
<T> void |
ensureIndexes(Class<T> clazz)
Ensures (creating if necessary) the indexes found during class mapping (using
@Indexed, @Indexes) |
<T> void |
ensureIndexes(Class<T> clazz,
boolean background)
Ensures (creating if necessary) the indexes found during class mapping (using
@Indexed, @Indexes), possibly in the background |
Key<?> |
exists(Object entityOrKey)
Does a query to check if the keyOrEntity exists in mongodb
|
Key<?> |
exists(Object entityOrKey,
com.mongodb.ReadPreference readPreference) |
<T> Query<T> |
find(Class<T> clazz)
Find all instances by type
|
<T,V> Query<T> |
find(Class<T> clazz,
String property,
V value)
Find all instances by collectionName, and filter property.
|
<T,V> Query<T> |
find(Class<T> clazz,
String property,
V value,
int offset,
int size)
Find all instances by collectionName, and filter property.
|
<T> Query<T> |
find(String kind,
Class<T> clazz) |
<T,V> Query<T> |
find(String kind,
Class<T> clazz,
String property,
V value,
int offset,
int size) |
<T,V> Query<T> |
find(String kind,
Class<T> clazz,
String property,
V value,
int offset,
int size,
boolean validate) |
<T> T |
findAndDelete(Query<T> qi)
Deletes the given entities based on the query (first item only).
|
<T> T |
findAndModify(Query<T> q,
UpdateOperations<T> ops)
Find the first Entity from the Query, and modify it.
|
<T> T |
findAndModify(Query<T> query,
UpdateOperations<T> ops,
boolean oldVersion)
Find the first Entity from the Query, and modify it.
|
<T> T |
findAndModify(Query<T> qi,
UpdateOperations<T> ops,
boolean oldVersion,
boolean createIfMissing)
Find the first Entity from the Query, and modify it.
|
<T> T |
get(Class<T> clazz,
com.mongodb.DBRef ref)
Find the given entity (by collectionName/id);
|
<T,V> Query<T> |
get(Class<T> clazz,
Iterable<V> ids)
Find the given entities (by id); shorthand for
find("_id in", ids) |
<T,V> T |
get(Class<T> clazz,
V id)
Find the given entity (by id); shorthand for
find("_id ", id) |
<T,V> T |
get(String kind,
Class<T> clazz,
V id) |
<T> T |
get(T entity)
Find the given entity (by collectionName/id); think of this as refresh
|
<T> T |
getByKey(Class<T> clazz,
Key<T> key)
Find the given entity (by collectionName/id);
|
<T> List<T> |
getByKeys(Class<T> clazz,
Iterable<Key<T>> keys)
Find the given entities (by id), verifying they are of the correct type; shorthand for
find("_id in", ids) |
<T> List<T> |
getByKeys(Iterable<Key<T>> keys)
Find the given entities (by id); shorthand for
find("_id in", ids) |
com.mongodb.DBCollection |
getCollection(Class clazz) |
com.mongodb.DBCollection |
getCollection(Object obj) |
<T> long |
getCount(Class<T> clazz)
Gets the count this kind (
DBCollection) |
<T> long |
getCount(Query<T> query)
Gets the count of items returned by this query; same as
query.countAll() |
long |
getCount(String kind)
Gets the count this kind
|
<T> long |
getCount(T entity)
Gets the count this kind (
DBCollection) |
com.mongodb.DB |
getDB() |
com.mongodb.DBDecoderFactory |
getDecoderFact() |
com.mongodb.WriteConcern |
getDefaultWriteConcern() |
<T> Key<T> |
getKey(T entity)
Deprecated.
|
<T> List<Key<T>> |
getKeysByRefs(List<com.mongodb.DBRef> refs)
Queries the server to check for each DBRef
|
Mapper |
getMapper() |
com.mongodb.Mongo |
getMongo() |
QueryFactory |
getQueryFactory()
Returns the current
QueryFactory. |
com.mongodb.WriteConcern |
getWriteConcern(Object clazzOrEntity)
Gets the write concern for entity or returns the default write concern for this datastore
|
<T> Iterable<Key<T>> |
insert(Iterable<T> entities) |
<T> Iterable<Key<T>> |
insert(Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
insert(String kind,
Iterable<T> entities) |
<T> Iterable<Key<T>> |
insert(String kind,
Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
insert(String kind,
T entity) |
<T> Key<T> |
insert(String kind,
T entity,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
insert(T... entities) |
<T> Key<T> |
insert(T entity) |
<T> Key<T> |
insert(T entity,
com.mongodb.WriteConcern wc) |
static <T> List<com.mongodb.DBRef> |
keysAsRefs(List<Key<T>> keys,
Mapper mapper)
Converts a list of keys to refs
|
<T> MapreduceResults<T> |
mapReduce(MapreduceType type,
Query query,
Class<T> outputType,
com.mongodb.MapReduceCommand baseCommand)
Runs a map/reduce job at the server; this should be used with a server version 1.7.4 or higher
|
<T> MapreduceResults<T> |
mapReduce(MapreduceType type,
Query query,
String map,
String reduce,
String finalize,
Map<String,Object> scopeFields,
Class<T> outputType)
Runs a map/reduce job at the server; this should be used with a server version 1.7.4 or higher
|
<T> Key<T> |
merge(T entity)
Work as if you did an update with each field in the entity doing a $set; Only at the top level of the entity.
|
<T> Key<T> |
merge(T entity,
com.mongodb.WriteConcern wc)
Work as if you did an update with each field in the entity doing a $set; Only at the top level of the entity.
|
<T> Query<T> |
queryByExample(String kind,
T ex)
Returns a new query based on the example object
|
<T> Query<T> |
queryByExample(T ex)
Returns a new query based on the example object
|
static <T> List<Key<T>> |
refsToKeys(Mapper mapper,
List<com.mongodb.DBRef> refs,
Class<T> c)
Converts a list of refs to keys
|
<T> Iterable<Key<T>> |
save(Iterable<T> entities)
Saves the entities (Objects) and updates the @Id field
|
<T> Iterable<Key<T>> |
save(Iterable<T> entities,
com.mongodb.WriteConcern wc)
Saves the entities (Objects) and updates the @Id field, with the WriteConcern
|
<T> Key<T> |
save(String kind,
T entity) |
<T> Key<T> |
save(String kind,
T entity,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
save(T... entities)
Saves the entities (Objects) and updates the @Id field
|
<T> Key<T> |
save(T entity)
Saves the entity (Object) and updates the @Id field
|
<T> Key<T> |
save(T entity,
com.mongodb.WriteConcern wc)
Saves the entity (Object) and updates the @Id field, with the WriteConcern
|
com.mongodb.DBDecoderFactory |
setDecoderFact(com.mongodb.DBDecoderFactory fact) |
void |
setDefaultWriteConcern(com.mongodb.WriteConcern wc) |
void |
setQueryFactory(QueryFactory queryFactory)
Replaces the current
QueryFactory with the given value. |
<T> UpdateResults<T> |
update(Key<T> key,
UpdateOperations<T> ops)
updates the entity with the operations; this is an atomic operation
|
<T> UpdateResults<T> |
update(Query<T> query,
UpdateOperations<T> ops)
updates all entities found with the operations; this is an atomic operation per entity
|
<T> UpdateResults<T> |
update(Query<T> query,
UpdateOperations<T> ops,
boolean createIfMissing)
updates all entities found with the operations, if nothing is found insert the update as an entity if "createIfMissing" is true; this
is an atomic operation per entity
|
<T> UpdateResults<T> |
update(Query<T> query,
UpdateOperations<T> ops,
boolean createIfMissing,
com.mongodb.WriteConcern wc) |
<T> UpdateResults<T> |
update(T ent,
UpdateOperations<T> ops)
updates the entity with the operations; this is an atomic operation
|
<T> UpdateResults<T> |
updateFirst(Query<T> query,
T entity,
boolean createIfMissing)
updates the first entity found with the operations, if nothing is found insert the update as an entity if "createIfMissing" is true;
this is an atomic operation per entity
|
<T> UpdateResults<T> |
updateFirst(Query<T> query,
UpdateOperations<T> ops)
updates the first entity found with the operations; this is an atomic operation
|
<T> UpdateResults<T> |
updateFirst(Query<T> query,
UpdateOperations<T> ops,
boolean createIfMissing)
updates the first entity found with the operations, if nothing is found insert the update as an entity if "createIfMissing" is true;
this is an atomic operation per entity
|
<T> UpdateResults<T> |
updateFirst(Query<T> query,
UpdateOperations<T> ops,
boolean createIfMissing,
com.mongodb.WriteConcern wc) |
public DatastoreImpl(Morphia morphia, com.mongodb.Mongo mongo)
public DatastoreImpl(Morphia morphia, com.mongodb.Mongo mongo, String dbName, String username, char[] password)
public DatastoreImpl copy(String database)
public <T,V> com.mongodb.DBRef createRef(Class<T> clazz, V id)
AdvancedDatastorecreateRef in interface AdvancedDatastorepublic <T> com.mongodb.DBRef createRef(T entity)
AdvancedDatastorecreateRef in interface AdvancedDatastore@Deprecated public <T> Key<T> getKey(T entity)
DatastoreDBRefpublic <T> com.mongodb.WriteResult delete(String kind, T id)
AdvancedDatastoredelete in interface AdvancedDatastorepublic <T,V> com.mongodb.WriteResult delete(String kind, Class<T> clazz, V id)
delete in interface AdvancedDatastorepublic <T,V> com.mongodb.WriteResult delete(String kind, Class<T> clazz, V id, com.mongodb.WriteConcern wc)
delete in interface AdvancedDatastorepublic <T,V> com.mongodb.WriteResult delete(Class<T> clazz, V id)
Datastorepublic <T,V> com.mongodb.WriteResult delete(Class<T> clazz, V id, com.mongodb.WriteConcern wc)
public <T,V> com.mongodb.WriteResult delete(Class<T> clazz, Iterable<V> ids)
Datastorepublic <T> com.mongodb.WriteResult delete(T entity)
Datastorepublic <T> com.mongodb.WriteResult delete(T entity,
com.mongodb.WriteConcern wc)
Datastorepublic <T> com.mongodb.WriteResult delete(Query<T> query)
Datastorepublic <T> com.mongodb.WriteResult delete(Query<T> query, com.mongodb.WriteConcern wc)
Datastorepublic <T> void ensureIndex(Class<T> type, String fields)
DatastoreensureIndex in interface Datastorepublic <T> void ensureIndex(Class<T> clazz, String name, IndexFieldDef[] definitions, boolean unique, boolean dropDupsOnCreate)
DatastoreensureIndex in interface Datastorepublic <T> void ensureIndex(Class<T> clazz, String name, String fields, boolean unique, boolean dropDupsOnCreate)
DatastoreensureIndex in interface Datastorepublic <T> void ensureIndex(Class<T> clazz, String name, String fields, boolean unique, boolean dropDupsOnCreate, boolean background)
public void ensureIndex(Class clazz, String name, IndexFieldDef[] definitions, boolean unique, boolean dropDupsOnCreate, boolean background)
public <T> void ensureIndex(Class<T> type, String name, IndexDirection dir)
DatastoreensureIndex in interface Datastorepublic <T> void ensureIndex(Class<T> type, IndexFieldDef... fields)
DatastoreensureIndex in interface Datastorepublic <T> void ensureIndex(Class<T> type, boolean background, IndexFieldDef... fields)
public <T> void ensureIndexes(Class<T> clazz)
Datastore@Indexed, @Indexes)ensureIndexes in interface Datastorepublic <T> void ensureIndexes(Class<T> clazz, boolean background)
Datastore@Indexed, @Indexes), possibly in the backgroundensureIndexes in interface Datastorepublic void ensureIndexes()
Datastore@Indexed, @Indexes)ensureIndexes in interface Datastorepublic void ensureIndexes(boolean background)
Datastore@Indexed, @Indexes), possibly in the backgroundensureIndexes in interface Datastorepublic void ensureCaps()
DatastoreEntity(s)ensureCaps in interface Datastorepublic <T> Query<T> queryByExample(T ex)
DatastorequeryByExample in interface Datastorepublic <T> Query<T> queryByExample(String kind, T ex)
AdvancedDatastorequeryByExample in interface AdvancedDatastorepublic <T> Query<T> createQuery(Class<T> type)
DatastoreDBCollection)createQuery in interface Datastorepublic <T> Query<T> createQuery(String kind, Class<T> type)
createQuery in interface AdvancedDatastorepublic <T> Query<T> createQuery(Class<T> type, com.mongodb.DBObject q)
createQuery in interface AdvancedDatastorepublic <T> Query<T> createQuery(String kind, Class<T> type, com.mongodb.DBObject q)
createQuery in interface AdvancedDatastorepublic <T> Query<T> find(String kind, Class<T> clazz)
find in interface AdvancedDatastorepublic <T> Query<T> find(Class<T> clazz)
Datastorepublic <T,V> Query<T> find(Class<T> clazz, String property, V value)
DatastoreFind all instances by collectionName, and filter property.
This is the same as: find(clazzOrEntity).filter(property,
value);
public <T,V> Query<T> find(String kind, Class<T> clazz, String property, V value, int offset, int size)
find in interface AdvancedDatastorepublic <T,V> Query<T> find(String kind, Class<T> clazz, String property, V value, int offset, int size, boolean validate)
public <T,V> Query<T> find(Class<T> clazz, String property, V value, int offset, int size)
DatastoreFind all instances by collectionName, and filter property.
This is the same as: find(clazzOrEntity).filter(property,
value).offset(offset).limit(size);
public <T> T get(Class<T> clazz, com.mongodb.DBRef ref)
AdvancedDatastoreget in interface AdvancedDatastorepublic <T,V> Query<T> get(Class<T> clazz, Iterable<V> ids)
Datastorefind("_id in", ids)public <T> List<Key<T>> getKeysByRefs(List<com.mongodb.DBRef> refs)
public <T> List<T> getByKeys(Iterable<Key<T>> keys)
Datastorefind("_id in", ids)public <T> List<T> getByKeys(Class<T> clazz, Iterable<Key<T>> keys)
Datastorefind("_id in", ids)public <T,V> T get(String kind, Class<T> clazz, V id)
get in interface AdvancedDatastorepublic <T,V> T get(Class<T> clazz, V id)
Datastorefind("_id ", id)public <T> T getByKey(Class<T> clazz, Key<T> key)
Datastorepublic <T> T get(T entity)
Datastorepublic Key<?> exists(Object entityOrKey)
Datastorepublic Key<?> exists(Object entityOrKey, com.mongodb.ReadPreference readPreference)
exists in interface AdvancedDatastorereadPreference - Uses the supplied ReadPreference for the check. If readPreference is null the preference is taken from the
annotation or uses the default preference.Datastore.exists(Object)public com.mongodb.DBCollection getCollection(Class clazz)
getCollection in interface Datastorepublic com.mongodb.DBCollection getCollection(Object obj)
public <T> long getCount(T entity)
DatastoreDBCollection)public <T> long getCount(Class<T> clazz)
DatastoreDBCollection)public long getCount(String kind)
AdvancedDatastoregetCount in interface AdvancedDatastorepublic <T> long getCount(Query<T> query)
Datastorequery.countAll()public Mapper getMapper()
public <T> Iterable<Key<T>> insert(String kind, Iterable<T> entities, com.mongodb.WriteConcern wc)
insert in interface AdvancedDatastorepublic <T> Iterable<Key<T>> insert(String kind, Iterable<T> entities)
insert in interface AdvancedDatastorepublic <T> Iterable<Key<T>> insert(Iterable<T> entities, com.mongodb.WriteConcern wc)
insert in interface AdvancedDatastorepublic <T> Iterable<Key<T>> insert(T... entities)
insert in interface AdvancedDatastorepublic <T> Key<T> insert(T entity)
insert in interface AdvancedDatastorepublic <T> Key<T> insert(T entity, com.mongodb.WriteConcern wc)
insert in interface AdvancedDatastorepublic <T> Key<T> insert(String kind, T entity)
insert in interface AdvancedDatastorepublic <T> Iterable<Key<T>> save(Iterable<T> entities)
Datastorepublic <T> Iterable<Key<T>> save(Iterable<T> entities, com.mongodb.WriteConcern wc)
Datastorepublic <T> Iterable<Key<T>> save(T... entities)
Datastorepublic <T> Key<T> save(T entity)
Datastorepublic <T> Key<T> save(String kind, T entity)
save in interface AdvancedDatastorepublic <T> Key<T> save(String kind, T entity, com.mongodb.WriteConcern wc)
save in interface AdvancedDatastorepublic <T> Key<T> save(T entity, com.mongodb.WriteConcern wc)
Datastorepublic <T> UpdateOperations<T> createUpdateOperations(Class<T> clazz)
DatastorecreateUpdateOperations in interface Datastorepublic <T> UpdateOperations<T> createUpdateOperations(Class<T> kind, com.mongodb.DBObject ops)
createUpdateOperations in interface AdvancedDatastorepublic <T> UpdateResults<T> update(Query<T> query, UpdateOperations<T> ops, boolean createIfMissing)
Datastorepublic <T> UpdateResults<T> update(Query<T> query, UpdateOperations<T> ops, boolean createIfMissing, com.mongodb.WriteConcern wc)
public <T> UpdateResults<T> update(T ent, UpdateOperations<T> ops)
Datastorepublic <T> UpdateResults<T> update(Key<T> key, UpdateOperations<T> ops)
Datastorepublic <T> UpdateResults<T> update(Query<T> query, UpdateOperations<T> ops)
Datastorepublic <T> UpdateResults<T> updateFirst(Query<T> query, UpdateOperations<T> ops)
DatastoreupdateFirst in interface Datastorepublic <T> UpdateResults<T> updateFirst(Query<T> query, UpdateOperations<T> ops, boolean createIfMissing)
DatastoreupdateFirst in interface Datastorepublic <T> UpdateResults<T> updateFirst(Query<T> query, UpdateOperations<T> ops, boolean createIfMissing, com.mongodb.WriteConcern wc)
updateFirst in interface Datastorepublic <T> UpdateResults<T> updateFirst(Query<T> query, T entity, boolean createIfMissing)
DatastoreupdateFirst in interface Datastorepublic <T> Key<T> merge(T entity)
Datastorepublic <T> Key<T> merge(T entity, com.mongodb.WriteConcern wc)
Datastorepublic <T> T findAndDelete(Query<T> qi)
DatastorefindAndDelete in interface Datastorepublic <T> T findAndModify(Query<T> q, UpdateOperations<T> ops)
DatastorefindAndModify in interface Datastorepublic <T> T findAndModify(Query<T> query, UpdateOperations<T> ops, boolean oldVersion)
DatastorefindAndModify in interface Datastorequery - the query to find the Entity with; You are not allowed to offset/skip in the query.oldVersion - indicated the old version of the Entity should be returnedpublic <T> T findAndModify(Query<T> qi, UpdateOperations<T> ops, boolean oldVersion, boolean createIfMissing)
DatastorefindAndModify in interface Datastoreqi - the query to find the Entity with; You are not allowed to offset/skip in the query.oldVersion - indicated the old version of the Entity should be returnedcreateIfMissing - if the query returns no results, then a new object will be created (sets upsert=true)public <T> MapreduceResults<T> mapReduce(MapreduceType type, Query query, Class<T> outputType, com.mongodb.MapReduceCommand baseCommand)
DatastoremapReduce in interface DatastoreT - The type of resulting datatype - MapreduceTypequery - The query (only the criteria, limit and sort will be used)outputType - The type of resulting data; inline is not working yetbaseCommand - The base command to fill in and send to the serverpublic <T> MapreduceResults<T> mapReduce(MapreduceType type, Query query, String map, String reduce, String finalize, Map<String,Object> scopeFields, Class<T> outputType)
DatastoremapReduce in interface DatastoreT - The type of resulting datatype - MapreduceTypequery - The query (only the criteria, limit and sort will be used)map - The map function, in javascript, as a stringreduce - The reduce function, in javascript, as a stringfinalize - The finalize function, in javascript, as a string; can be nullscopeFields - Each map entry will be a global variable in all the functions; can be nulloutputType - The type of resulting data; inline is not working yetpublic static <T> List<com.mongodb.DBRef> keysAsRefs(List<Key<T>> keys, Mapper mapper)
public static <T> List<Key<T>> refsToKeys(Mapper mapper, List<com.mongodb.DBRef> refs, Class<T> c)
public com.mongodb.WriteConcern getWriteConcern(Object clazzOrEntity)
public com.mongodb.WriteConcern getDefaultWriteConcern()
getDefaultWriteConcern in interface Datastorepublic void setDefaultWriteConcern(com.mongodb.WriteConcern wc)
setDefaultWriteConcern in interface Datastorepublic com.mongodb.DBDecoderFactory setDecoderFact(com.mongodb.DBDecoderFactory fact)
setDecoderFact in interface AdvancedDatastorepublic com.mongodb.DBDecoderFactory getDecoderFact()
getDecoderFact in interface AdvancedDatastorepublic void setQueryFactory(QueryFactory queryFactory)
DatastoreQueryFactory with the given value.setQueryFactory in interface DatastoreQueryFactorypublic QueryFactory getQueryFactory()
DatastoreQueryFactory.getQueryFactory in interface DatastoreQueryFactoryCopyright © 2015. All rights reserved.