|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LiveDataService
This interface defines a LiveData/CRUD service. These services must provide standard CRUD operations (Create, Read, Update, Delete) to the client.
| Method Summary | |
|---|---|
void |
delete(java.lang.Object o)
Delete the object. |
java.lang.Object |
insert(java.lang.Object o)
Insert the object, and return the same object (which may be updated as a result of the insert operation). |
com.wavemaker.runtime.service.TypedServiceReturn |
read(com.wavemaker.json.type.TypeDefinition type,
java.lang.Object o,
com.wavemaker.runtime.service.PropertyOptions propertyOptions,
com.wavemaker.runtime.service.PagingOptions pagingOptions)
LiveData interface's read() operation. |
java.lang.Object |
update(java.lang.Object o)
Update the parameter, and return the same object (may be updated as a result of the update operation). |
| Method Detail |
|---|
com.wavemaker.runtime.service.TypedServiceReturn read(com.wavemaker.json.type.TypeDefinition type,
java.lang.Object o,
com.wavemaker.runtime.service.PropertyOptions propertyOptions,
com.wavemaker.runtime.service.PagingOptions pagingOptions)
throws java.lang.Exception
type - The type of data to be returned (ignored if argument o is not
null, and this will be the same as o.getClass()).o - The object to read parameters based on (takes precedence over
type).propertyOptions - Specifies what properties to load.pagingOptions - Specifies how much to load.
TypedServiceReturn, containing a
LiveDataServiceResponse object with paging or other
information.TypedServiceReturn, containing the raw
Object to be returned to the client with no paging information.LiveDataServiceResponse is being
returned, the type information must contain those fields.
java.lang.Exception
java.lang.Object update(java.lang.Object o)
throws java.lang.Exception
o - The object to update.
java.lang.Exception
java.lang.Object insert(java.lang.Object o)
throws java.lang.Exception
o - The object to insert.
java.lang.Exception
void delete(java.lang.Object o)
throws java.lang.Exception
o - The object to delete.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||