eu.scape_project.watch.dao
Class RequestDAO

java.lang.Object
  extended by eu.scape_project.watch.dao.AbstractDO
      extended by eu.scape_project.watch.dao.RequestDAO

public final class RequestDAO
extends AbstractDO

Data Access Object for synchronous requests.

Author:
Luis Faria

Method Summary
static RequestDAO getInstance()
          Get singleton instance.
 List<? extends thewebsemantic.binding.RdfBean<?>> query(RequestTarget target, String query, int start, int max)
          Make a synchronous request to the KB.
 
Methods inherited from class eu.scape_project.watch.dao.AbstractDO
addDOListener, count, delete, delete, findById, fireOnRemoved, fireOnUpdated, query, removeDOListener, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RequestDAO getInstance()
Get singleton instance.

Returns:
The singleton instance

query

public List<? extends thewebsemantic.binding.RdfBean<?>> query(RequestTarget target,
                                                               String query,
                                                               int start,
                                                               int max)
Make a synchronous request to the KB.

Parameters:
target - The request target
query - The request query
start - The index of the first item to retrieve
max - The maximum number of items to retrieve
Returns:
A list of resources, of the type defined in the target, filtered by the above constraints


Copyright © 2012. All Rights Reserved.