Package com.google.cloud.datastore
Class KeyFactory
A helper for creating keys for a specific
Datastore, using its associated projectId and
namespace.-
Constructor Summary
ConstructorsConstructorDescriptionKeyFactory(String projectId) KeyFactory(String projectId, String namespace) KeyFactory(String projectId, String namespace, String databaseId) -
Method Summary
Modifier and TypeMethodDescriptionprotected IncompleteKeybuild()newKey()newKey(long id) reset()Resets the KeyFactory to its initial state.Methods inherited from class com.google.cloud.datastore.BaseKey.Builder
addAncestor, addAncestors, addAncestors, setDatabaseId, setKind, setNamespace, setProjectId
-
Constructor Details
-
KeyFactory
-
KeyFactory
-
KeyFactory
-
-
Method Details
-
newKey
-
newKey
-
newKey
-
reset
Resets the KeyFactory to its initial state.- Returns:
thisfor chaining
-
build
- Specified by:
buildin classBaseKey.Builder<KeyFactory>
-