|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.scape_project.watch.dao.AbstractDO<AsyncRequest>
eu.scape_project.watch.dao.AsyncRequestDAO
public final class AsyncRequestDAO
AsyncRequest
data access object.
Method Summary | |
---|---|
int |
count(String bindings)
Count the results of a query for AsyncRequest . |
AsyncRequest |
delete(AsyncRequest request)
Cascading delete request, including all triggers, and fire remove event. |
AsyncRequest |
findById(String requestId)
Find AsyncRequest by id. |
static AsyncRequestDAO |
getInstance()
Get singleton instance. |
Collection<AsyncRequest> |
list(int start,
int max)
List all async requests. |
List<AsyncRequest> |
query(String bindings,
int start,
int max)
Query for AsyncRequest . |
AsyncRequest |
save(AsyncRequest request)
Deeply save request, including all triggers, and fire update event. |
Methods inherited from class eu.scape_project.watch.dao.AbstractDO |
---|
addDOListener, count, delete, findById, fireOnRemoved, fireOnUpdated, query, removeDOListener, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AsyncRequestDAO getInstance()
public AsyncRequest findById(String requestId)
AsyncRequest
by id.
requestId
- the request ud
AsyncRequest
or null
if not foundpublic List<AsyncRequest> query(String bindings, int start, int max)
AsyncRequest
.
bindings
- The query bindings, see
AbstractDO.query(Class, String, int, int)
start
- The index of the first item to retrievemax
- The maximum number of items to retrieve
AsyncRequest
filtered by the above constraintsAbstractDO.query(Class, String, int, int)
public Collection<AsyncRequest> list(int start, int max)
start
- The index of the first item to retrievemax
- The maximum number of items to retrieve
AsyncRequest
filtered by the above constraintspublic int count(String bindings)
AsyncRequest
.
bindings
- The query bindings, see AbstractDO.count(Class, String)
public AsyncRequest save(AsyncRequest request)
save
in class AbstractDO<AsyncRequest>
request
- The async request to save
public AsyncRequest delete(AsyncRequest request)
delete
in class AbstractDO<AsyncRequest>
request
- The async request to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |