Class DatastoreServiceFactory
- java.lang.Object
-
- com.google.appengine.api.datastore.DatastoreServiceFactory
-
public final class DatastoreServiceFactory extends Object
Creates DatastoreService implementations.
-
-
Constructor Summary
Constructors Constructor Description DatastoreServiceFactory()
Deprecated.Exposed by accident, do not instantiate.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AsyncDatastoreService
getAsyncDatastoreService()
Creates anAsyncDatastoreService
using the default config (DatastoreServiceConfig.Builder.withDefaults()
).static AsyncDatastoreService
getAsyncDatastoreService(DatastoreServiceConfig config)
Creates anAsyncDatastoreService
using the provided config.static DatastoreService
getDatastoreService()
Creates aDatastoreService
using the default config (DatastoreServiceConfig.Builder.withDefaults()
).static DatastoreService
getDatastoreService(DatastoreConfig oldConfig)
Deprecated.UsegetDatastoreService(DatastoreServiceConfig)
instead.static DatastoreService
getDatastoreService(DatastoreServiceConfig config)
Creates aDatastoreService
using the provided config.static DatastoreConfig
getDefaultDatastoreConfig()
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 aDatastoreService
using the provided config.
-
getDatastoreService
public static DatastoreService getDatastoreService()
Creates aDatastoreService
using the default config (DatastoreServiceConfig.Builder.withDefaults()
).
-
getDatastoreService
@Deprecated public static DatastoreService getDatastoreService(DatastoreConfig oldConfig)
Deprecated.UsegetDatastoreService(DatastoreServiceConfig)
instead.Creates aDatastoreService
using the provided config.
-
getAsyncDatastoreService
public static AsyncDatastoreService getAsyncDatastoreService(DatastoreServiceConfig config)
Creates anAsyncDatastoreService
using the provided config. The async datastore service does not support implicit transaction management policyImplicitTransactionManagementPolicy.AUTO
.- Throws:
IllegalArgumentException
- If the providedDatastoreServiceConfig
has an implicit transaction management policy ofImplicitTransactionManagementPolicy.AUTO
.
-
getAsyncDatastoreService
public static AsyncDatastoreService getAsyncDatastoreService()
Creates anAsyncDatastoreService
using the default config (DatastoreServiceConfig.Builder.withDefaults()
).
-
getDefaultDatastoreConfig
@Deprecated public static DatastoreConfig getDefaultDatastoreConfig()
Deprecated.UseDatastoreServiceConfig.Builder.withDefaults()
instead.
-
-