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)Creates a (type-safe) reference to the entity; if stored this will become aDBRef<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)Inserts entities in to the mapped collection.<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)Inserts entities in to the mapped collection.<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(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(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 intKey. compareTo(Key<T> other)<T> TDatastore. getByKey(java.lang.Class<T> clazz, Key<T> key)Deprecated.use aQueryinstead<T> TDatastoreImpl. getByKey(java.lang.Class<T> clazz, Key<T> key)Deprecated.<T> UpdateResultsDatastore. update(Key<T> key, UpdateOperations<T> operations)Deprecated.useDatastore.update(Query, UpdateOperations)instead<T> UpdateResultsDatastoreImpl. 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 aQueryinstead<T> java.util.List<T>Datastore. getByKeys(java.lang.Iterable<Key<T>> keys)Deprecated.use aQueryinstead<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.DBRefMapper. keyToDBRef(Key key)Deprecated.Converts a Key to a DBRefjava.lang.StringMapper. 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.BooleanDefaultEntityCache. exists(Key<?> k)java.lang.BooleanEntityCache. exists(Key<?> k)Looks for a Key in the cache<T> TDefaultEntityCache. getEntity(Key<T> k)<T> TEntityCache. getEntity(Key<T> k)Returns the entity for a Key<T> TDefaultEntityCache. getProxy(Key<T> k)<T> TEntityCache. getProxy(Key<T> k)Returns a proxy for the entity for a KeyvoidDefaultEntityCache. notifyExists(Key<?> k, boolean exists)voidEntityCache. notifyExists(Key<?> k, boolean exists)Notifies the cache of the existence of a Key<T> voidDefaultEntityCache. putEntity(Key<T> k, T t)<T> voidEntityCache. putEntity(Key<T> k, T t)Adds an entity to the cache<T> voidDefaultEntityCache. putProxy(Key<T> k, T t)<T> voidEntityCache. 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> TCGLibLazyProxyFactory. createProxy(Datastore datastore, java.lang.Class<T> targetClass, Key<T> key, boolean ignoreMissing)<T> TLazyProxyFactory. 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 KeyEntityObjectReference. __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 voidCollectionObjectReference. __add(Key key)voidProxiedEntityReferenceList. __add(Key<?> key)voidMapObjectReference. __put(java.lang.Object key, Key k)voidProxiedEntityReferenceMap. __put(java.lang.Object key, Key<?> referenceKey)protected java.lang.ObjectAbstractReference. fetch(Key<?> id)Method parameters in dev.morphia.mapping.lazy.proxy with type arguments of type Key Modifier and Type Method Description voidCollectionObjectReference. __addAll(java.util.Collection<? extends Key<?>> keys)voidProxiedEntityReferenceList. __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.
-