com.google.appengine.api.datastore
Class DatastoreServiceFactory
- java.lang.Object
-
- com.google.appengine.api.datastore.DatastoreServiceFactory
-
public final class DatastoreServiceFactory extends java.lang.ObjectCreates DatastoreService implementations.
-
-
Constructor Summary
Constructors Constructor and Description DatastoreServiceFactory()Deprecated.Exposed by accident, do not instantiate.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static AsyncDatastoreServicegetAsyncDatastoreService()Creates anAsyncDatastoreServiceusing the default config (DatastoreServiceConfig.Builder.withDefaults()).static AsyncDatastoreServicegetAsyncDatastoreService(DatastoreServiceConfig config)Creates anAsyncDatastoreServiceusing the provided config.static DatastoreServicegetDatastoreService()Creates aDatastoreServiceusing the default config (DatastoreServiceConfig.Builder.withDefaults()).static DatastoreServicegetDatastoreService(DatastoreConfig oldConfig)Deprecated.UsegetDatastoreService(DatastoreServiceConfig)instead.static DatastoreServicegetDatastoreService(DatastoreServiceConfig config)Creates aDatastoreServiceusing the provided config.static DatastoreConfiggetDefaultDatastoreConfig()Deprecated.UseDatastoreServiceConfig.Builder.withDefaults()instead.
-
-
-
Constructor Detail
-
DatastoreServiceFactory
@Deprecated public DatastoreServiceFactory()
Deprecated. Exposed by accident, do not instantiate.
-
-
Method Detail
-
getDatastoreService
public static DatastoreService getDatastoreService(DatastoreServiceConfig config)
Creates aDatastoreServiceusing the provided config.
-
getAsyncDatastoreService
public static AsyncDatastoreService getAsyncDatastoreService(DatastoreServiceConfig config)
Creates anAsyncDatastoreServiceusing the provided config. The async datastore service does not support implicit transaction management policyImplicitTransactionManagementPolicy.AUTO.- Throws:
java.lang.IllegalArgumentException- If the providedDatastoreServiceConfighas an implicit transaction management policy ofImplicitTransactionManagementPolicy.AUTO.
-
getDatastoreService
public static DatastoreService getDatastoreService()
Creates aDatastoreServiceusing the default config (DatastoreServiceConfig.Builder.withDefaults()).
-
getAsyncDatastoreService
public static AsyncDatastoreService getAsyncDatastoreService()
Creates anAsyncDatastoreServiceusing the default config (DatastoreServiceConfig.Builder.withDefaults()).
-
getDatastoreService
@Deprecated public static DatastoreService getDatastoreService(DatastoreConfig oldConfig)
Deprecated. UsegetDatastoreService(DatastoreServiceConfig)instead.Creates aDatastoreServiceusing the provided config.
-
getDefaultDatastoreConfig
@Deprecated public static DatastoreConfig getDefaultDatastoreConfig()
Deprecated. UseDatastoreServiceConfig.Builder.withDefaults()instead.
-
-