Send feedback
Class DatastoreFactory (3.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
3.11.0 (latest)
3.7.0
3.3.0
3.2.0
3.1.0
2.40.0
2.37.0
2.36.0
2.34.0
2.33.3
2.32.3
2.31.4
2.30.0
2.29.1
2.28.2
2.27.1
2.26.4
2.25.2
2.24.3
2.23.0
2.22.0
2.21.3
2.20.2
2.19.2
2.18.5
2.17.6
public class DatastoreFactory
Static Fields
DEFAULT_HOST
public static final String DEFAULT_HOST
Field Value
Type
Description
String
VERSION
public static final String VERSION
Field Value
Type
Description
String
Static Methods
get()
public static DatastoreFactory get ()
logMethodCalls()
public static void logMethodCalls ()
Starts logging datastore method calls to the console. (Useful within tests.)
Constructors
DatastoreFactory()
public DatastoreFactory ()
Methods
create(DatastoreOptions options)
public Datastore create ( DatastoreOptions options )
Provides access to a datastore using the provided options. Logs into the application using the
credentials available via these options.
makeClient(DatastoreOptions options)
public HttpRequestFactory makeClient ( DatastoreOptions options )
Constructs a Google APIs HTTP client with the associated credentials.
Returns
Type
Description
com.google.api.client.http.HttpRequestFactory
newRemoteRpc(DatastoreOptions options)
protected RemoteRpc newRemoteRpc ( DatastoreOptions options )
Returns
Type
Description
com.google.datastore.utils.RemoteRpc
Send feedback
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-20 UTC."],[],[]]