Uses of Class
dev.morphia.Key
-
Packages that use Key Package Description dev.morphia dev.morphia.dao dev.morphia.mapping dev.morphia.mapping.cache dev.morphia.mapping.lazy dev.morphia.mapping.lazy.proxy dev.morphia.query dev.morphia.query.internal -
-
Uses of Key in dev.morphia
Methods in dev.morphia that return Key Modifier and Type Method Description Key<?>
AdvancedDatastore. exists(java.lang.Object keyOrEntity, com.mongodb.ReadPreference readPreference)
Deprecated.useMongoIterable.first()
insteadKey<?>
Datastore. exists(java.lang.Object keyOrEntity)
Deprecated.useMongoIterable.first()
insteadKey<?>
DatastoreImpl. exists(java.lang.Object entityOrKey)
Deprecated.Key<?>
DatastoreImpl. exists(java.lang.Object entityOrKey, com.mongodb.ReadPreference readPreference)
Deprecated.<T> Key<T>
Datastore. getKey(T entity)
Deprecated.<T> Key<T>
DatastoreImpl. getKey(T entity)
Deprecated.<T> Key<T>
AdvancedDatastore. insert(java.lang.String collection, T entity)
Deprecated.this feature is being removed.<T> Key<T>
AdvancedDatastore. insert(java.lang.String collection, T entity, InsertOptions options)
Deprecated.this feature is being removed.<T> Key<T>
AdvancedDatastore. insert(T entity)
Inserts an entity in to the mapped collection.<T> Key<T>
AdvancedDatastore. insert(T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
AdvancedDatastore. insert(T entity, InsertOptions options)
Inserts an entity in to the mapped collection.protected <T> Key<T>
DatastoreImpl. insert(com.mongodb.DBCollection dbColl, T entity, InsertOptions options)
Deprecated.<T> Key<T>
DatastoreImpl. insert(java.lang.String collection, T entity)
Deprecated.<T> Key<T>
DatastoreImpl. insert(java.lang.String collection, T entity, com.mongodb.WriteConcern wc)
Deprecated.Inserts an entity in to the database<T> Key<T>
DatastoreImpl. insert(java.lang.String collection, T entity, InsertOptions options)
Deprecated.<T> Key<T>
DatastoreImpl. insert(T entity)
Deprecated.<T> Key<T>
DatastoreImpl. insert(T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
DatastoreImpl. insert(T entity, InsertOptions options)
Deprecated.<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>
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)
Deprecated.<T> Key<T>
DatastoreImpl. merge(T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
AdvancedDatastore. save(java.lang.String collection, T entity)
Deprecated.this feature is being removed.<T> Key<T>
AdvancedDatastore. save(java.lang.String collection, T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
AdvancedDatastore. save(java.lang.String collection, T entity, InsertOptions options)
Deprecated.this feature is being removed.<T> Key<T>
Datastore. save(T entity)
Saves an entity (Object) and updates the @Id field The return type will change in 2.0<T> Key<T>
Datastore. save(T entity, com.mongodb.WriteConcern wc)
Deprecated.useDatastore.save(Object, InsertOptions)
instead<T> Key<T>
Datastore. save(T entity, InsertOptions options)
Saves an entity (Object) and updates the @Id field The return type will change in 2.0protected <T> Key<T>
DatastoreImpl. save(com.mongodb.DBCollection dbColl, T entity, InsertOptions options)
Deprecated.<T> Key<T>
DatastoreImpl. save(java.lang.String collection, T entity)
Deprecated.<T> Key<T>
DatastoreImpl. save(java.lang.String collection, T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
DatastoreImpl. save(java.lang.String collection, T entity, InsertOptions options)
Deprecated.<T> Key<T>
DatastoreImpl. save(T entity)
Deprecated.<T> Key<T>
DatastoreImpl. save(T entity, com.mongodb.WriteConcern wc)
Deprecated.<T> Key<T>
DatastoreImpl. save(T entity, InsertOptions options)
Deprecated.Methods in dev.morphia that return types with arguments of type Key Modifier and Type Method Description <T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.Iterable<T> entities)
Deprecated.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.Iterable<T> entities, InsertOptions options)
Deprecated.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.String collection, java.lang.Iterable<T> entities)
Deprecated.this feature is being removed.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.String collection, java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.lang.String collection, java.lang.Iterable<T> entities, InsertOptions options)
Deprecated.this feature is being removed.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.util.List<T> entities)
Inserts entities in to the mapped collection.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(java.util.List<T> entities, InsertOptions options)
Inserts entities in to the mapped collection.<T> java.lang.Iterable<Key<T>>
AdvancedDatastore. insert(T... entities)
Deprecated.useAdvancedDatastore.insert(Iterable)
instead<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.Iterable<T> entities)
Deprecated.Inserts entities in to the database<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.Iterable<T> entities, InsertOptions options)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.String collection, java.lang.Iterable<T> entities)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.String collection, java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.lang.String collection, java.lang.Iterable<T> entities, InsertOptions options)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(java.util.List<T> entities)
Deprecated.Inserts entities in to the database<T> java.util.List<Key<T>>
DatastoreImpl. insert(java.util.List<T> entities, InsertOptions options)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. insert(T... entities)
Deprecated.<T> java.lang.Iterable<Key<T>>
Datastore. save(java.lang.Iterable<T> entities)
Saves the entities (Objects) and updates the @Id field The return type will change in 2.0<T> java.lang.Iterable<Key<T>>
Datastore. save(java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.useDatastore.save(Iterable, InsertOptions)
instead<T> java.lang.Iterable<Key<T>>
Datastore. save(java.lang.Iterable<T> entities, InsertOptions options)
Saves the entities (Objects) and updates the @Id field, with the WriteConcern The return type will change in 2.0<T> java.lang.Iterable<Key<T>>
Datastore. save(T... entities)
Deprecated.useDatastore.save(Iterable, InsertOptions)
instead<T> java.lang.Iterable<Key<T>>
DatastoreImpl. save(java.lang.Iterable<T> entities)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. save(java.lang.Iterable<T> entities, com.mongodb.WriteConcern wc)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. save(java.lang.Iterable<T> entities, InsertOptions options)
Deprecated.<T> java.lang.Iterable<Key<T>>
DatastoreImpl. save(T... entities)
Deprecated.Methods in dev.morphia with parameters of type Key Modifier and Type Method Description int
Key. compareTo(Key<T> other)
<T> T
Datastore. getByKey(java.lang.Class<T> clazz, Key<T> key)
Deprecated.use aQuery
instead<T> T
DatastoreImpl. getByKey(java.lang.Class<T> clazz, Key<T> key)
Deprecated.<T> UpdateResults
Datastore. update(Key<T> key, UpdateOperations<T> operations)
Deprecated.useDatastore.update(Query, UpdateOperations)
instead<T> UpdateResults
DatastoreImpl. update(Key<T> key, UpdateOperations<T> operations)
Deprecated.Method parameters in dev.morphia with type arguments of type Key Modifier and Type Method Description <T> java.util.List<T>
Datastore. getByKeys(java.lang.Class<T> clazz, java.lang.Iterable<Key<T>> keys)
Deprecated.use aQuery
instead<T> java.util.List<T>
Datastore. getByKeys(java.lang.Iterable<Key<T>> keys)
Deprecated.use aQuery
instead<T> java.util.List<T>
DatastoreImpl. getByKeys(java.lang.Class<T> clazz, java.lang.Iterable<Key<T>> keys)
Deprecated.<T> java.util.List<T>
DatastoreImpl. getByKeys(java.lang.Iterable<Key<T>> keys)
Deprecated. -
Uses of Key in dev.morphia.dao
Methods in dev.morphia.dao that return Key Modifier and Type Method Description Key<T>
BasicDAO. findOneId()
Deprecated.Key<T>
BasicDAO. findOneId(Query<T> query)
Deprecated.Key<T>
BasicDAO. findOneId(java.lang.String key, java.lang.Object value)
Deprecated.Key<T>
DAO. findOneId()
Deprecated.Finds the first entity's IDKey<T>
DAO. findOneId(Query<T> query)
Deprecated.Finds the first entity's IDKey<T>
DAO. findOneId(java.lang.String key, java.lang.Object value)
Deprecated.Finds the first entity's ID matching a queryKey<T>
BasicDAO. save(T entity)
Deprecated.Key<T>
BasicDAO. save(T entity, com.mongodb.WriteConcern wc)
Deprecated.Key<T>
DAO. save(T entity)
Deprecated.Saves the entity; either inserting or overriding the existing documentKey<T>
DAO. save(T entity, com.mongodb.WriteConcern wc)
Deprecated.Saves the entity; either inserting or overriding the existing documentMethod parameters in dev.morphia.dao with type arguments of type Key Modifier and Type Method Description protected java.util.List<?>
BasicDAO. keysToIds(java.util.List<Key<T>> keys)
Deprecated.Converts from a Listto their id values -
Uses of Key in dev.morphia.mapping
Methods in dev.morphia.mapping that return Key Modifier and Type Method Description <T> Key<T>
Mapper. getKey(T entity)
Deprecated.Gets the Key for an entity<T> Key<T>
Mapper. getKey(T entity, java.lang.String collection)
Deprecated.Gets the Key for an entity and a specific collection<T> Key<T>
Mapper. manualRefToKey(java.lang.Class<T> type, java.lang.Object id)
Deprecated.Creates a Key for a type and an ID value<T> Key<T>
Mapper. refToKey(com.mongodb.DBRef ref)
Deprecated.Converts a DBRef to a KeyMethods in dev.morphia.mapping that return types with arguments of type Key Modifier and Type Method Description <T> java.util.List<Key<T>>
Mapper. getKeysByManualRefs(java.lang.Class<T> clazz, java.util.List<java.lang.Object> refs)
Deprecated.Gets the Keys for a list of objects<T> java.util.List<Key<T>>
Mapper. getKeysByRefs(java.util.List<com.mongodb.DBRef> refs)
Deprecated.Gets the Keys for a list of objectsMethods in dev.morphia.mapping with parameters of type Key Modifier and Type Method Description com.mongodb.DBRef
Mapper. keyToDBRef(Key key)
Deprecated.Converts a Key to a DBRefjava.lang.String
Mapper. updateCollection(Key key)
Deprecated.Updates the collection value on a Key with the mapped value on the Key's type Class -
Uses of Key in dev.morphia.mapping.cache
Methods in dev.morphia.mapping.cache with parameters of type Key Modifier and Type Method Description java.lang.Boolean
DefaultEntityCache. exists(Key<?> k)
java.lang.Boolean
EntityCache. exists(Key<?> k)
Looks for a Key in the cache<T> T
DefaultEntityCache. getEntity(Key<T> k)
<T> T
EntityCache. getEntity(Key<T> k)
Returns the entity for a Key<T> T
DefaultEntityCache. getProxy(Key<T> k)
<T> T
EntityCache. getProxy(Key<T> k)
Returns a proxy for the entity for a Keyvoid
DefaultEntityCache. notifyExists(Key<?> k, boolean exists)
void
EntityCache. notifyExists(Key<?> k, boolean exists)
Notifies the cache of the existence of a Key<T> void
DefaultEntityCache. putEntity(Key<T> k, T t)
<T> void
EntityCache. putEntity(Key<T> k, T t)
Adds an entity to the cache<T> void
DefaultEntityCache. putProxy(Key<T> k, T t)
<T> void
EntityCache. putProxy(Key<T> k, T t)
Adds a proxy to the cache -
Uses of Key in dev.morphia.mapping.lazy
Methods in dev.morphia.mapping.lazy with parameters of type Key Modifier and Type Method Description <T> T
CGLibLazyProxyFactory. createProxy(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)
<T> T
LazyProxyFactory. createProxy(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)
Creates a proxy for a Class. -
Uses of Key in dev.morphia.mapping.lazy.proxy
Methods in dev.morphia.mapping.lazy.proxy that return Key Modifier and Type Method Description Key
EntityObjectReference. __getKey()
Key<?>
ProxiedEntityReference. __getKey()
Methods in dev.morphia.mapping.lazy.proxy that return types with arguments of type Key Modifier and Type Method Description java.util.List<Key<?>>
CollectionObjectReference. __getKeysAsList()
java.util.List<Key<?>>
ProxiedEntityReferenceList. __getKeysAsList()
java.util.Map<java.lang.Object,Key<?>>
MapObjectReference. __getReferenceMap()
java.util.Map<java.lang.Object,Key<?>>
ProxiedEntityReferenceMap. __getReferenceMap()
Methods in dev.morphia.mapping.lazy.proxy with parameters of type Key Modifier and Type Method Description void
CollectionObjectReference. __add(Key key)
void
ProxiedEntityReferenceList. __add(Key<?> key)
void
MapObjectReference. __put(java.lang.Object key, Key k)
void
ProxiedEntityReferenceMap. __put(java.lang.Object key, Key<?> referenceKey)
protected java.lang.Object
AbstractReference. fetch(Key<?> id)
Method parameters in dev.morphia.mapping.lazy.proxy with type arguments of type Key Modifier and Type Method Description void
CollectionObjectReference. __addAll(java.util.Collection<? extends Key<?>> keys)
void
ProxiedEntityReferenceList. __addAll(java.util.Collection<? extends Key<?>> keys)
Constructors in dev.morphia.mapping.lazy.proxy with parameters of type Key Constructor Description EntityObjectReference(Datastore datastore, java.lang.Class targetClass, Key key, boolean ignoreMissing)
Creates an object reference -
Uses of Key in dev.morphia.query
Methods in dev.morphia.query that return Key Modifier and Type Method Description protected Key<T>
MorphiaKeyIterator. convertItem(com.mongodb.DBObject dbObj)
Deprecated.Key<T>
Query. getKey()
Deprecated.useMongoIterable.first()
insteadKey<T>
Query. getKey(FindOptions options)
Deprecated.useMongoIterable.first()
insteadKey<T>
QueryImpl. getKey()
Key<T>
QueryImpl. getKey(FindOptions options)
Methods in dev.morphia.query that return types with arguments of type Key Modifier and Type Method Description java.util.List<Key<T>>
Query. asKeyList()
Deprecated.useQuery.keys()
java.util.List<Key<T>>
Query. asKeyList(FindOptions options)
Deprecated.java.util.List<Key<T>>
QueryImpl. asKeyList()
java.util.List<Key<T>>
QueryImpl. asKeyList(FindOptions options)
-
Uses of Key in dev.morphia.query.internal
Methods in dev.morphia.query.internal that return Key Modifier and Type Method Description Key<T>
MorphiaKeyCursor. next()
Key<T>
MorphiaKeyCursor. tryNext()
Methods in dev.morphia.query.internal that return types with arguments of type Key Modifier and Type Method Description java.util.List<Key<T>>
MorphiaKeyCursor. toList()
Converts this cursor to a List.
-