Uses of Class
com.google.appengine.api.datastore.Key
-
Packages that use Key Package Description com.google.appengine.api.datastore -
-
Uses of Key in com.google.appengine.api.datastore
Methods in com.google.appengine.api.datastore that return Key Modifier and Type Method Description KeyAdminDatastoreService.KeyBuilder. build()static KeyEntities. createEntityGroupKey(Key key)Create an __entity_group__ key for the entity group containingkey.static KeyExtendableEntityUtil. createKey(Key parent, String kind)Creates a newKeywith the provided parent and kind.static KeyKeyFactory. createKey(@Nullable Key parent, String kind, long id)Creates a newKeywith the provided parent from its kind and ID.static KeyKeyFactory. createKey(@Nullable Key parent, String kind, String name)Creates a newKeywith the provided parent from its kind and name.static KeyKeyFactory. createKey(String kind, long id)Creates a newKeyhaving no parent from its kind and ID.static KeyKeyFactory. createKey(String kind, String name)Creates a newKeyhaving no parent from its kind and name.static KeyEntities. createKindKey(String kind)Create a __kind__ key forkind.static KeyEntities. createNamespaceKey(String namespace)Create a __namespace__ key fornamespace.static KeyEntities. createPropertyKey(String kind, String property)Create a __property__ key forpropertyofkind.KeyQuery. getAncestor()Gets the current ancestor for this query, or null if there is no ancestor specified.KeyKey. getChild(String kind, long id)Creates a new key havingthisas parent and the given numeric identifier.KeyKey. getChild(String kind, String name)Creates a new key havingthisas parent and the given name.KeyKeyRange. getEnd()Returns the lastKeyin the range.@Nullable KeyEmbeddedEntity. getKey()Returns the key ornull.KeyEntity. getKey()Returns theKeythat represents thisEntity.KeyEntityNotFoundException. getKey()KeyKeyFactory.Builder. getKey()Returns the most recently addedKey.@Nullable KeyEntity. getParent()Get aKeythat corresponds to this the parentEntityof thisEntity.@Nullable KeyKey. getParent()If thisKeyhas a parent, return aKeythat represents it.KeyKeyRange. getStart()Returns the firstKeyin the range.KeyDatastoreService. put(Entity entity)If the specifiedEntitydoes not yet exist in the data store, create it and assign itsKey.KeyDatastoreService. put(Transaction txn, Entity entity)Exhibits the same behavior asDatastoreService.put(Entity), but executes within the provided transaction.static KeyKeyFactory. stringToKey(String encoded)Converts aString-representation of aKeyinto theKeyinstance it represents.Methods in com.google.appengine.api.datastore that return types with arguments of type Key Modifier and Type Method Description Future<Map<Key,Entity>>AdminDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)Future<Map<Key,Entity>>AdminDatastoreService. get(Iterable<Key> keys)Future<Map<Key,Entity>>AsyncDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)Future<Map<Key,Entity>>AsyncDatastoreService. get(Iterable<Key> keys)Map<Key,Entity>DatastoreService. get(Transaction txn, Iterable<Key> keys)Exhibits the same behavior asDatastoreService.get(Iterable), but executes within the provided transaction.Map<Key,Entity>DatastoreService. get(Iterable<Key> keys)Retrieves the set ofEntitiesmatchingkeys.Iterator<Key>KeyRange. iterator()Future<Key>AdminDatastoreService. put(@Nullable Transaction txn, Entity entity)Future<List<Key>>AdminDatastoreService. put(@Nullable Transaction txn, Iterable<Entity> entities)Future<Key>AdminDatastoreService. put(Entity entity)Future<List<Key>>AdminDatastoreService. put(Iterable<Entity> entities)Future<Key>AsyncDatastoreService. put(@Nullable Transaction txn, Entity entity)Future<List<Key>>AsyncDatastoreService. put(@Nullable Transaction txn, Iterable<Entity> entities)Future<Key>AsyncDatastoreService. put(Entity entity)Future<List<Key>>AsyncDatastoreService. put(Iterable<Entity> entities)List<Key>DatastoreService. put(Transaction txn, Iterable<Entity> entities)Exhibits the same behavior asDatastoreService.put(Iterable), but executes within the provided transaction.List<Key>DatastoreService. put(Iterable<Entity> entities)Performs a batchputof allentities.Methods in com.google.appengine.api.datastore with parameters of type Key Modifier and Type Method Description Future<KeyRange>AdminDatastoreService. allocateIds(@Nullable Key parent, String kind, long num)Future<KeyRange>AsyncDatastoreService. allocateIds(@Nullable Key parent, String kind, long num)KeyRangeDatastoreService. allocateIds(Key parent, String kind, long num)IDs are allocated within a namespace defined by a parent key and a kind.static booleanExtendableEntityUtil. areKeysEqual(Key key1, Key key2)Check if the inputKeyobjects are equal (including keys that are incomplete).intKey. compareTo(Key other)Compares twoKeyobjects.static KeyEntities. createEntityGroupKey(Key key)Create an __entity_group__ key for the entity group containingkey.static KeyExtendableEntityUtil. createKey(Key parent, String kind)Creates a newKeywith the provided parent and kind.static KeyKeyFactory. createKey(@Nullable Key parent, String kind, long id)Creates a newKeywith the provided parent from its kind and ID.static KeyKeyFactory. createKey(@Nullable Key parent, String kind, String name)Creates a newKeywith the provided parent from its kind and name.static StringKeyFactory. createKeyString(@Nullable Key parent, String kind, long id)Shorthand for invokingKeyFactory.keyToString(Key)on the result ofKeyFactory.createKey(Key, String, long)static StringKeyFactory. createKeyString(@Nullable Key parent, String kind, String name)Shorthand for invokingKeyFactory.keyToString(Key)on the result ofKeyFactory.createKey(Key, String, String)Future<Void>AdminDatastoreService. delete(@Nullable Transaction txn, Key... keys)Future<Void>AdminDatastoreService. delete(Key... keys)Future<Void>AsyncDatastoreService. delete(@Nullable Transaction txn, Key... keys)Future<Void>AsyncDatastoreService. delete(Key... keys)voidDatastoreService. delete(Key... keys)Deletes theEntity entitiesspecified bykeys.voidDatastoreService. delete(Transaction txn, Key... keys)Exhibits the same behavior asDatastoreService.delete(Key...), but executes within the provided transaction.Future<Entity>AdminDatastoreService. get(@Nullable Transaction txn, Key key)Future<Entity>AdminDatastoreService. get(Key key)Future<Entity>AsyncDatastoreService. get(@Nullable Transaction txn, Key key)Future<Entity>AsyncDatastoreService. get(Key key)EntityDatastoreService. get(Key key)Retrieves theEntitywith the specifiedKey.EntityDatastoreService. get(Transaction txn, Key key)Exhibits the same behavior asDatastoreService.get(Key), but executes within the provided transaction.static @Nullable StringEntities. getNamespaceFromNamespaceKey(Key namespaceKey)Extract the namespace name from a __namespace__ key.static StringKeyFactory. keyToString(Key key)Converts aKeyinto a websafe string.QueryQuery. setAncestor(Key ancestor)Sets an ancestor for this query.voidEmbeddedEntity. setKey(@Nullable Key key)Method parameters in com.google.appengine.api.datastore with type arguments of type Key Modifier and Type Method Description Future<Void>AdminDatastoreService. delete(@Nullable Transaction txn, Iterable<Key> keys)Future<Void>AdminDatastoreService. delete(Iterable<Key> keys)Future<Void>AsyncDatastoreService. delete(@Nullable Transaction txn, Iterable<Key> keys)Future<Void>AsyncDatastoreService. delete(Iterable<Key> keys)voidDatastoreService. delete(Transaction txn, Iterable<Key> keys)Exhibits the same behavior asDatastoreService.delete(Iterable), but executes within the provided transaction.voidDatastoreService. delete(Iterable<Key> keys)Equivalent toDatastoreService.delete(Key...).Future<Map<Key,Entity>>AdminDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)Future<Map<Key,Entity>>AdminDatastoreService. get(Iterable<Key> keys)Future<Map<Key,Entity>>AsyncDatastoreService. get(@Nullable Transaction txn, Iterable<Key> keys)Future<Map<Key,Entity>>AsyncDatastoreService. get(Iterable<Key> keys)Map<Key,Entity>DatastoreService. get(Transaction txn, Iterable<Key> keys)Exhibits the same behavior asDatastoreService.get(Iterable), but executes within the provided transaction.Map<Key,Entity>DatastoreService. get(Iterable<Key> keys)Retrieves the set ofEntitiesmatchingkeys.Constructors in com.google.appengine.api.datastore with parameters of type Key Constructor Description Builder(Key key)Create aBuilder, establishing the providedKeyas the topmost ancestor.Entity(Key key)Create a newEntityuniquely identified by the providedKey.Entity(String kind, long id, Key parent)Create a newEntitywith the specified kind and ID and parentEntity.Entity(String kind, @Nullable Key parent)Create a newEntitywith the specified kind and parentEntity.Entity(String kind, String keyName, Key parent)Create a newEntitywith the specified kind, key name, and parentEntity.EntityNotFoundException(Key key)KeyRange(Key parent, String kind, long start, long end)Query(@Nullable String kind, @Nullable Key ancestor)Query(Key ancestor)
-