public final class KeyFactory extends BaseKey.Builder<KeyFactory>
Datastore, using its associated projectId and
namespace.| Constructor and Description |
|---|
KeyFactory(String projectId) |
KeyFactory(String projectId,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
protected IncompleteKey |
build() |
IncompleteKey |
newKey() |
Key |
newKey(long id) |
Key |
newKey(String name) |
KeyFactory |
reset()
Resets the KeyFactory to its initial state.
|
addAncestor, addAncestors, addAncestors, setKind, setNamespace, setProjectIdpublic KeyFactory(String projectId)
public IncompleteKey newKey()
public Key newKey(long id)
public KeyFactory reset()
this for chainingprotected IncompleteKey build()
build in class BaseKey.Builder<KeyFactory>Copyright © 2019 Google LLC. All rights reserved.