|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Deprecated public interface DatastoreService
The datastore service.
| Method Summary | |
|---|---|
Map<String,Object> |
createObject(String modelName,
Map<String,Object> toCreate)
Deprecated. Creates a new object in the datastore. |
Boolean |
deleteObject(String modelName,
String objectId)
Deprecated. Deletes an object in the datastore. |
Set<String> |
getObjectModelNames()
Deprecated. Retrieves a list of the object models declared for the current application. |
List<Map<String,Object>> |
readObjects(String modelName,
Map<String,List<String>> queryFields)
Deprecated. Reads a list of objects matching the given query fields from the datastore. |
Map<String,Object> |
updateObject(String modelName,
String objectId,
Map<String,Object> newValue)
Deprecated. Updates an object in the datastore. |
| Method Detail |
|---|
Map<String,Object> createObject(String modelName,
Map<String,Object> toCreate)
throws InvalidSchemaException,
DatastoreException
modelName - the name of the relevant object model; must be a type already declared for the current applicationtoCreate - the object to create; must match the schema declared for the relevant object type
InvalidSchemaException - if the object model specified does not exist, or the object to create does not match
the expected schema for that object model
DatastoreException - if the connection to the datastore fails or the datastore encounters an error
List<Map<String,Object>> readObjects(String modelName,
Map<String,List<String>> queryFields)
throws InvalidSchemaException,
DatastoreException
modelName - the name of the relevant object model; must be a type already declared for the current applicationqueryFields - a map from fields to query to the query values; takes the form of a map from field names to
lists of possible string values for that field
InvalidSchemaException - if the object model specified does not exist
DatastoreException - if the connection to the datastore fails or the datastore encounters an error
Map<String,Object> updateObject(String modelName,
String objectId,
Map<String,Object> newValue)
throws InvalidSchemaException,
DatastoreException
modelName - the name of the relevant object model; must be a type already declared for the current applicationobjectId - the id of the object to updatenewValue - the fields to update, and their intended values; must not contain the id field of the object
InvalidSchemaException - if newValue contains illegal types or does not match fields in the object to update,
or the object model does not exist
DatastoreException - if the connection to the datastore fails or the datastore encounters an error
Boolean deleteObject(String modelName,
String objectId)
throws InvalidSchemaException,
DatastoreException
modelName - the name of the relevant object model; must be a type already declared for the current applicationobjectId - the id of the object to delete
InvalidSchemaException - if the object model specified does not exist
DatastoreException - if the connection to the datastore fails or the datastore encounters an error
Set<String> getObjectModelNames()
throws ConnectException
ConnectException - if the list of object models cannot be retrieved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||