public class DomainObjectApi<T> extends Object
Request objects, based on actions which the user
might want to perform| Constructor and Description |
|---|
DomainObjectApi(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
Request<T> |
create(T t)
Create a new object
|
Request<T> |
delete(String id)
Delete an object by ID
|
Request<List<T>> |
find()
Find multiple objects using search parameters
|
Request<List<T>> |
find(QueryOptions queryOptions)
Find multiple objects using search parameters
|
Request<T> |
get(String id)
Retrieve a single object by ID
|
public Request<T> get(String id)
id - - the object's IDpublic Request<List<T>> find(QueryOptions queryOptions)
queryOptions - - search parameterspublic Request<T> create(T t)
t - - the object to createpublic Request<T> delete(String id)
id - - the object's IDCopyright © 2017. All rights reserved.