public final class DatastoreServiceFactoryCreates DatastoreService implementations.
Static Methods
getAsyncDatastoreService()
public static AsyncDatastoreService getAsyncDatastoreService()Creates an AsyncDatastoreService using the default config ( DatastoreServiceConfig.Builder#withDefaults()).
| Returns | |
|---|---|
| Type | Description | 
| AsyncDatastoreService | |
getAsyncDatastoreService(DatastoreServiceConfig config)
public static AsyncDatastoreService getAsyncDatastoreService(DatastoreServiceConfig config)Creates an AsyncDatastoreService using the provided config. The async datastore service
 does not support implicit transaction management policy ImplicitTransactionManagementPolicy#AUTO.
| Parameter | |
|---|---|
| Name | Description | 
| config | DatastoreServiceConfig | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncDatastoreService | |
getDatastoreService()
public static DatastoreService getDatastoreService()Creates a DatastoreService using the default config ( DatastoreServiceConfig.Builder#withDefaults()).
| Returns | |
|---|---|
| Type | Description | 
| DatastoreService | |
getDatastoreService(DatastoreConfig oldConfig) (deprecated)
public static DatastoreService getDatastoreService(DatastoreConfig oldConfig)Deprecated. Use #getDatastoreService(DatastoreServiceConfig) instead.
Creates a DatastoreService using the provided config.
| Parameter | |
|---|---|
| Name | Description | 
| oldConfig | DatastoreConfig | 
| Returns | |
|---|---|
| Type | Description | 
| DatastoreService | |
getDatastoreService(DatastoreServiceConfig config)
public static DatastoreService getDatastoreService(DatastoreServiceConfig config)Creates a DatastoreService using the provided config.
| Parameter | |
|---|---|
| Name | Description | 
| config | DatastoreServiceConfig | 
| Returns | |
|---|---|
| Type | Description | 
| DatastoreService | |
getDefaultDatastoreConfig() (deprecated)
public static DatastoreConfig getDefaultDatastoreConfig()Deprecated. Use DatastoreServiceConfig.Builder#withDefaults() instead.
| Returns | |
|---|---|
| Type | Description | 
| DatastoreConfig | |
Constructors
DatastoreServiceFactory() (deprecated)
public DatastoreServiceFactory()Deprecated. Exposed by accident, do not instantiate.