|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.scape_project.watch.dao.AbstractDO<Entity>
eu.scape_project.watch.dao.EntityDAO
public final class EntityDAO
Entity
data access object.
Method Summary | |
---|---|
int |
count(String bindings)
Count the results of a query for Entity . |
Entity |
findById(String entityName)
Find Entity by id. |
static String |
getEntityRDFId(String entityName)
Get Entity RDF ID. |
static EntityDAO |
getInstance()
Get singleton instance. |
Collection<Entity> |
listWithType(String type,
int start,
int max)
List Entity that have the defined type. |
List<Entity> |
query(String bindings,
int start,
int max)
Query for Entity . |
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 |
---|
public static String getEntityRDFId(String entityName)
entityName
- The entity name that uniquely identifies this entity.
public static EntityDAO getInstance()
public Entity findById(String entityName)
Entity
by id.
entityName
- the entity name
Entity
or null
if not foundpublic List<Entity> query(String bindings, int start, int max)
Entity
.
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
Entity
filtered by the above constraintsAbstractDO.query(Class, String, int, int)
public int count(String bindings)
Entity
.
bindings
- The query bindings, see AbstractDO.count(Class, String)
public Collection<Entity> listWithType(String type, int start, int max)
Entity
that have the defined type.
type
- the EntityType
related to the Entity
start
- the index of the first item to returnmax
- the maximum number of items to return
Entity
filtered by the defined constraints
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |