Modifier and Type | Method and Description |
---|---|
Key<?> |
Datastore.exists(Object keyOrEntity)
Does a query to check if the keyOrEntity exists in mongodb
|
Key<?> |
DatastoreImpl.exists(Object entityOrKey) |
Key<?> |
DatastoreImpl.exists(Object entityOrKey,
com.mongodb.ReadPreference readPreference) |
Key<?> |
AdvancedDatastore.exists(Object keyOrEntity,
com.mongodb.ReadPreference readPreference) |
<T> Key<T> |
Datastore.getKey(T entity)
Creates a (type-safe) reference to the entity; if stored this will become a
DBRef |
<T> Key<T> |
DatastoreImpl.getKey(T entity)
Deprecated.
|
<T> Key<T> |
DatastoreImpl.insert(String kind,
T entity) |
<T> Key<T> |
AdvancedDatastore.insert(String kind,
T entity) |
<T> Key<T> |
DatastoreImpl.insert(String kind,
T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
DatastoreImpl.insert(T entity) |
<T> Key<T> |
AdvancedDatastore.insert(T entity) |
<T> Key<T> |
DatastoreImpl.insert(T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
AdvancedDatastore.insert(T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
Datastore.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> |
DatastoreImpl.merge(T entity) |
<T> Key<T> |
Datastore.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> Key<T> |
DatastoreImpl.merge(T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
DatastoreImpl.save(String kind,
T entity) |
<T> Key<T> |
AdvancedDatastore.save(String kind,
T entity) |
<T> Key<T> |
DatastoreImpl.save(String kind,
T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
AdvancedDatastore.save(String kind,
T entity,
com.mongodb.WriteConcern wc) |
<T> Key<T> |
Datastore.save(T entity)
Saves the entity (Object) and updates the @Id field
|
<T> Key<T> |
DatastoreImpl.save(T entity) |
<T> Key<T> |
Datastore.save(T entity,
com.mongodb.WriteConcern wc)
Saves the entity (Object) and updates the @Id field, with the WriteConcern
|
<T> Key<T> |
DatastoreImpl.save(T entity,
com.mongodb.WriteConcern wc) |
Modifier and Type | Method and Description |
---|---|
<T> Iterable<Key<T>> |
DatastoreImpl.insert(Iterable<T> entities) |
<T> Iterable<Key<T>> |
DatastoreImpl.insert(Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
AdvancedDatastore.insert(Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
DatastoreImpl.insert(String kind,
Iterable<T> entities) |
<T> Iterable<Key<T>> |
AdvancedDatastore.insert(String kind,
Iterable<T> entities) |
<T> Iterable<Key<T>> |
DatastoreImpl.insert(String kind,
Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
AdvancedDatastore.insert(String kind,
Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
DatastoreImpl.insert(T... entities) |
<T> Iterable<Key<T>> |
AdvancedDatastore.insert(T... entities) |
<T> Iterable<Key<T>> |
Datastore.save(Iterable<T> entities)
Saves the entities (Objects) and updates the @Id field
|
<T> Iterable<Key<T>> |
DatastoreImpl.save(Iterable<T> entities) |
<T> Iterable<Key<T>> |
Datastore.save(Iterable<T> entities,
com.mongodb.WriteConcern wc)
Saves the entities (Objects) and updates the @Id field, with the WriteConcern
|
<T> Iterable<Key<T>> |
DatastoreImpl.save(Iterable<T> entities,
com.mongodb.WriteConcern wc) |
<T> Iterable<Key<T>> |
Datastore.save(T... entities)
Saves the entities (Objects) and updates the @Id field
|
<T> Iterable<Key<T>> |
DatastoreImpl.save(T... entities) |
Modifier and Type | Method and Description |
---|---|
int |
Key.compareTo(Key<T> other)
Compares based on the following traits, in order:
|
<T> T |
Datastore.getByKey(Class<T> clazz,
Key<T> key)
Find the given entity (by collectionName/id);
|
<T> T |
DatastoreImpl.getByKey(Class<T> clazz,
Key<T> key) |
<T> UpdateResults |
Datastore.update(Key<T> key,
UpdateOperations<T> ops)
updates the entity with the operations; this is an atomic operation
|
<T> UpdateResults |
DatastoreImpl.update(Key<T> key,
UpdateOperations<T> ops) |
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
Datastore.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> |
DatastoreImpl.getByKeys(Class<T> clazz,
Iterable<Key<T>> keys) |
<T> List<T> |
Datastore.getByKeys(Iterable<Key<T>> keys)
Find the given entities (by id); shorthand for
find("_id in", ids) |
<T> List<T> |
DatastoreImpl.getByKeys(Iterable<Key<T>> keys) |
Modifier and Type | Method and Description |
---|---|
Key<T> |
BasicDAO.findOneId() |
Key<T> |
DAO.findOneId()
Finds the first entity's ID
|
Key<T> |
BasicDAO.findOneId(Query<T> query) |
Key<T> |
DAO.findOneId(Query<T> q)
Finds the first entity's ID
|
Key<T> |
BasicDAO.findOneId(String key,
Object value) |
Key<T> |
DAO.findOneId(String key,
Object value)
Finds the first entity's ID
|
Key<T> |
BasicDAO.save(T entity) |
Key<T> |
DAO.save(T entity)
Saves the entity; either inserting or overriding the existing document
|
Key<T> |
BasicDAO.save(T entity,
com.mongodb.WriteConcern wc) |
Key<T> |
DAO.save(T entity,
com.mongodb.WriteConcern wc)
Saves the entity; either inserting or overriding the existing document
|
Modifier and Type | Method and Description |
---|---|
<T> Key<T> |
Mapper.getKey(T entity) |
<T> Key<T> |
Mapper.getKey(T entity,
String collection) |
<T> Key<T> |
Mapper.manualRefToKey(Class<T> type,
Object id) |
<T> Key<T> |
Mapper.manualRefToKey(String collection,
Object id) |
<T> Key<T> |
Mapper.refToKey(com.mongodb.DBRef ref) |
Modifier and Type | Method and Description |
---|---|
<T> List<Key<T>> |
Mapper.getKeysByManualRefs(Class<T> kindClass,
List<Object> refs)
Queries the server to check for each manual ref
|
<T> List<Key<T>> |
Mapper.getKeysByRefs(List<com.mongodb.DBRef> refs)
Queries the server to check for each DBRef
|
Modifier and Type | Method and Description |
---|---|
Object |
Mapper.keyToManualRef(Key key) |
com.mongodb.DBRef |
Mapper.keyToRef(Key key) |
String |
Mapper.updateCollection(Key key) |
Modifier and Type | Method and Description |
---|---|
Boolean |
EntityCache.exists(Key<?> k) |
Boolean |
DefaultEntityCache.exists(Key<?> k) |
<T> T |
EntityCache.getEntity(Key<T> k) |
<T> T |
DefaultEntityCache.getEntity(Key<T> k) |
<T> T |
EntityCache.getProxy(Key<T> k) |
<T> T |
DefaultEntityCache.getProxy(Key<T> k) |
void |
EntityCache.notifyExists(Key<?> k,
boolean exists) |
void |
DefaultEntityCache.notifyExists(Key<?> k,
boolean exists) |
<T> void |
EntityCache.putEntity(Key<T> k,
T t) |
<T> void |
DefaultEntityCache.putEntity(Key<T> k,
T t) |
<T> void |
EntityCache.putProxy(Key<T> k,
T t) |
<T> void |
DefaultEntityCache.putProxy(Key<T> k,
T t) |
Modifier and Type | Method and Description |
---|---|
<T> T |
LazyProxyFactory.createProxy(Class<T> targetClass,
Key<T> key,
DatastoreProvider p) |
<T> T |
CGLibLazyProxyFactory.createProxy(Class<T> targetClass,
Key<T> key,
DatastoreProvider p) |
Modifier and Type | Method and Description |
---|---|
Key<?> |
ProxiedEntityReference.__getKey() |
Key |
SerializableEntityObjectReference.__getKey() |
Modifier and Type | Method and Description |
---|---|
List<Key<?>> |
ProxiedEntityReferenceList.__getKeysAsList() |
List<Key<?>> |
SerializableCollectionObjectReference.__getKeysAsList() |
Map<Object,Key<?>> |
SerializableMapObjectReference.__getReferenceMap() |
Map<Object,Key<?>> |
ProxiedEntityReferenceMap.__getReferenceMap() |
Modifier and Type | Method and Description |
---|---|
void |
SerializableCollectionObjectReference.__add(Key key) |
void |
ProxiedEntityReferenceList.__add(Key<?> key) |
void |
SerializableMapObjectReference.__put(Object key,
Key k) |
void |
ProxiedEntityReferenceMap.__put(Object key,
Key<?> referenceKey) |
Modifier and Type | Method and Description |
---|---|
void |
ProxiedEntityReferenceList.__addAll(Collection<? extends Key<?>> keys) |
void |
SerializableCollectionObjectReference.__addAll(Collection<? extends Key<?>> keys) |
Constructor and Description |
---|
SerializableEntityObjectReference(Class targetClass,
DatastoreProvider p,
Key key) |
Modifier and Type | Method and Description |
---|---|
Key<T> |
QueryResults.getKey()
Get the key of the first entity in the result set.
|
Key<T> |
QueryImpl.getKey() |
Modifier and Type | Method and Description |
---|---|
List<Key<T>> |
QueryResults.asKeyList()
Execute the query and get the results (as a
List<Key<T>> ) This method is provided as a convenience; |
List<Key<T>> |
QueryImpl.asKeyList() |
Copyright © 2016. All rights reserved.