Modifier and Type | Field and Description |
---|---|
protected Key<T> |
Ref.key
The key associated with this ref
|
protected Key<?> |
Key.parent
Cache the instance of the parent wrapper to avoid unnecessary garbage
|
Modifier and Type | Method and Description |
---|---|
<T> Key<T> |
ObjectifyFactory.allocateId(Class<T> clazz)
Allocates a single id from the allocator for the specified kind.
|
<T> Key<T> |
ObjectifyFactory.allocateId(Object parentKeyOrEntity,
Class<T> clazz)
Allocates a single id from the allocator for the specified kind.
|
static <T> Key<T> |
Key.create(Class<? extends T> kindClass,
long id)
Key.create(Blah.class, id) is easier to type than new Key
|
static <T> Key<T> |
Key.create(Class<? extends T> kindClass,
String name)
Key.create(Blah.class, name) is easier to type than new Key
|
static <T> Key<T> |
Key.create(com.google.cloud.datastore.Key raw)
Key.create(key) is easier to type than new Key
|
static <T> Key<T> |
Key.create(Key<?> parent,
Class<? extends T> kindClass,
long id)
Key.create(parent, Blah.class, id) is easier to type than new Key
|
static <T> Key<T> |
Key.create(Key<?> parent,
Class<? extends T> kindClass,
String name)
Key.create(parent, Blah.class, name) is easier to type than new Key
|
static <T> Key<T> |
Key.create(String urlSafeString)
Key.create(urlSafeString) is easier to type than new Key
|
static <T> Key<T> |
Key.create(T pojo)
Create a key from a registered POJO entity.
|
Key<T> |
Ref.getKey()
Same as key() but conforms to JavaBeans conventions in case this is being processed by a JSON
converter or expression language.
|
Key<?> |
NotFoundException.getKey() |
<V> Key<V> |
Key.getParent() |
<V> Key<V> |
Key.getRoot()
Gets the root of a parent graph of keys.
|
Key<T> |
Ref.key() |
static <V> Key<V> |
Key.key(com.google.cloud.datastore.Key raw)
Easy null-safe conversion of the raw key.
|
static <T> Key<T> |
Key.valueOf(String webSafeString)
This is an alias for Key.create(String) which exists for JAX-RS compliance.
|
Modifier and Type | Method and Description |
---|---|
int |
Key.compareTo(Key<?> other)
The new cloud sdk Key doesn't have compareTo(), so we reimplement the logic from the old GAE SDK.
|
static <T> Key<T> |
Key.create(Key<?> parent,
Class<? extends T> kindClass,
long id)
Key.create(parent, Blah.class, id) is easier to type than new Key
|
static <T> Key<T> |
Key.create(Key<?> parent,
Class<? extends T> kindClass,
String name)
Key.create(parent, Blah.class, name) is easier to type than new Key
|
static <T> Ref<T> |
Ref.create(Key<T> key)
Key.create(Blah.class, id) is easier to type than new Key
|
boolean |
Ref.equivalent(Key<T> other)
Type safe comparison for key equivalence
|
boolean |
Key.equivalent(Key<T> other)
A type-safe equivalence comparison
|
<T> EntityMetadata<T> |
ObjectifyFactory.getMetadata(Key<T> key) |
boolean |
Objectify.isLoaded(Key<?> key) |
static com.google.cloud.datastore.Key |
Key.key(Key<?> typed)
Easy null-safe conversion of the typed key.
|
Constructor and Description |
---|
LoadResult(Key<T> key,
Result<T> result) |
NotFoundException(Key<?> key)
Thrown when we at least know what we are looking for!
|
Ref(Key<T> key)
Create a Ref based on the key, with the specified session
|
Modifier and Type | Method and Description |
---|---|
<E> Result<Map<Key<E>,E>> |
Saver.entities(E... entities)
A convenience method for entities(Iterable)
|
<E> Map<Key<E>,E> |
Loader.entities(E... entities)
A convenient substitute for entities(Iterable)
|
<E> Result<Map<Key<E>,E>> |
Saver.entities(Iterable<E> entities)
Asynchronously save a batch of entities in the datastore.
|
<E> Map<Key<E>,E> |
Loader.entities(Iterable<E> entities)
Load multiple entities from the datastore in a batch.
|
<E> Result<Key<E>> |
Saver.entity(E entity)
Asynchronously save a single entity in the datastore.
|
<E> Map<Key<E>,E> |
Loader.keys(Iterable<Key<E>> keys)
Load multiple entities by key from the datastore in a batch.
|
<E> Map<Key<E>,E> |
Loader.keys(Key<? extends E>... keys)
A convenient substitute for keys(Iterable)
|
<E> Map<Key<E>,E> |
Loader.refs(Iterable<Ref<E>> refs)
Load multiple refs in a batch operation.
|
<E> Map<Key<E>,E> |
Loader.refs(Ref<? extends E>... refs)
A convenient substitute for refs(Iterable)
|
<E> Map<Key<E>,E> |
Loader.values(Iterable<?> keysOrEntities)
Fetch multiple entities from the datastore in a batch.
|
<E> Map<Key<E>,E> |
Loader.values(Object... keysOrEntities)
A convenient substitute for values(Iterable)
|
Modifier and Type | Method and Description |
---|---|
Result<Void> |
Deleter.key(Key<?> key)
Begin asynchronous deletion of a specific entity.
|
void |
DeferredDeleter.key(Key<?> key)
Defer deletion of a specific entity.
|
<E> LoadResult<E> |
Loader.key(Key<E> key)
Load a single entity by key.
|
Result<Void> |
Deleter.keys(Key<?>... keys)
Convenient substitute for keys(Iterable)
|
void |
DeferredDeleter.keys(Key<?>... keys)
Convenient substitute for keys(Iterable)
|
<E> Map<Key<E>,E> |
Loader.keys(Key<? extends E>... keys)
A convenient substitute for keys(Iterable)
|
<E> E |
Loader.now(Key<E> key)
Get the entity for a key immediately.
|
Modifier and Type | Method and Description |
---|---|
Result<Void> |
Deleter.keys(Iterable<? extends Key<?>> keys)
Begin asynchronous deletion of specific entities.
|
void |
DeferredDeleter.keys(Iterable<? extends Key<?>> keys)
Defer deletion of specific entities.
|
<E> Map<Key<E>,E> |
Loader.keys(Iterable<Key<E>> keys)
Load multiple entities by key from the datastore in a batch.
|
Modifier and Type | Method and Description |
---|---|
<T> Key<T> |
Keys.anythingToKey(Object keyOrEntity)
Gets the Key
|
<T> Key<T> |
Keys.createKey(Key<?> parent,
Class<T> kind,
long id) |
<T> Key<T> |
Keys.createKey(Key<?> parent,
Class<T> kind,
String name) |
<T> Key<T> |
Keys.createKeyAny(Key<?> parent,
Class<T> kind,
Object id)
Construct a Key> from a Long or String id
|
<T> Key<T> |
Keys.keyOf(T pojo) |
Modifier and Type | Method and Description |
---|---|
<T> List<Key<T>> |
Keys.createKeys(Key<?> parent,
Class<T> kind,
Iterable<?> ids)
Make a list of Key>s
|
<E> Result<Map<Key<E>,E>> |
SaverImpl.entities(E... entities) |
<E> Result<Map<Key<E>,E>> |
SaverImpl.entities(Iterable<E> entities) |
<E> Result<Key<E>> |
SaverImpl.entity(E entity) |
Set<Key<?>> |
Session.keys() |
<T> com.google.cloud.datastore.QueryResults<Key<T>> |
QueryEngine.queryKeysOnly(com.google.cloud.datastore.KeyQuery query)
Perform a keys-only query.
|
<E> Result<Map<Key<E>,E>> |
WriteEngine.save(Iterable<? extends E> entities)
The fundamental put() operation.
|
Result<Map<Key<?>,Object>> |
LoadEngine.translate(Result<Map<com.google.cloud.datastore.Key,com.google.cloud.datastore.Entity>> raw)
Asynchronously translate raw to processed; might produce successive load operations as refs are filled in
|
Modifier and Type | Method and Description |
---|---|
void |
Session.add(Key<?> key,
SessionValue<?> value)
Add/overwrite a SV.
|
void |
Session.addValue(Key<?> key,
Object value)
Convenience method
|
boolean |
Session.contains(Key<?> key) |
<T> Key<T> |
Keys.createKey(Key<?> parent,
Class<T> kind,
long id) |
<T> Key<T> |
Keys.createKey(Key<?> parent,
Class<T> kind,
String name) |
<T> Key<T> |
Keys.createKeyAny(Key<?> parent,
Class<T> kind,
Object id)
Construct a Key> from a Long or String id
|
<T> List<Key<T>> |
Keys.createKeys(Key<?> parent,
Class<T> kind,
Iterable<?> ids)
Make a list of Key>s
|
void |
Deferrer.deferDelete(Key<?> key) |
<T> SessionValue<T> |
Session.get(Key<T> key) |
<T> KeyMetadata<T> |
Keys.getMetadata(Key<T> key) |
boolean |
ObjectifyImpl.isLoaded(Key<?> key) |
Result<Void> |
DeleterImpl.key(Key<?> key) |
Result<Void> |
DeleterImpl.keys(Key<?>... keys) |
<T> Result<T> |
LoadEngine.load(Key<T> key)
Gets the result, possibly from the session, putting it in the session if necessary.
|
<T> Ref<T> |
LoadEngine.makeRef(Key<?> rootEntity,
LoadConditions loadConditions,
Key<T> key)
Create a Ref for the key, and maybe start a load operation depending on current load groups.
|
<T> Ref<T> |
LoadEngine.makeRef(Key<?> rootEntity,
LoadConditions loadConditions,
Key<T> key)
Create a Ref for the key, and maybe start a load operation depending on current load groups.
|
static com.google.cloud.datastore.Key |
Keys.raw(Key<?> key)
Null-safe extraction of the raw key
|
Modifier and Type | Method and Description |
---|---|
Result<Void> |
DeleterImpl.keys(Iterable<? extends Key<?>> keys) |
Constructor and Description |
---|
HybridQueryResults(LoadEngine loadEngine,
com.google.cloud.datastore.QueryResults<Key<T>> source,
int chunkSize) |
Constructor and Description |
---|
DeadRef(Key<T> key)
Create a Ref based on the key
|
DeadRef(Key<T> key,
T value)
Create a Ref based on the key and value
|
LiveRef(Key<T> key)
Create a Ref based on the key
|
LiveRef(Key<T> key,
Objectify ofy)
Create a Ref based on the key, with the specified session
|
Modifier and Type | Method and Description |
---|---|
protected Key<?> |
KeyTranslatorFactory.toPojo(com.google.cloud.datastore.Value<com.google.cloud.datastore.Key> value) |
Modifier and Type | Method and Description |
---|---|
<T> Ref<T> |
LoadContext.loadRef(Key<T> key,
LoadConditions loadConditions)
Create a Ref for the key, and maybe start a load operation depending on current load groups.
|
void |
LoadContext.setCurrentRoot(Key<?> rootEntity)
Sets the current root entity
|
protected com.google.cloud.datastore.Value<com.google.cloud.datastore.Key> |
KeyTranslatorFactory.toDatastore(Key<?> value) |
Modifier and Type | Method and Description |
---|---|
Key<?> |
KeyStringifier.fromString(String str) |
Modifier and Type | Method and Description |
---|---|
String |
KeyStringifier.toString(Key<?> obj) |
Modifier and Type | Method and Description |
---|---|
Key |
KeyDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
void |
KeySerializer.serialize(Key value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
KeyKeySerializer.serialize(Key value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
Copyright © 2018. All rights reserved.