|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElmoQuery
Interface used to bind and evaluate a query
| Method Summary | |
|---|---|
void |
close()
Closes any open results from this query. |
Iterator<?> |
evaluate()
Evaluates the query and returns an iterator over the result. |
List |
getResultList()
Evaluates the query and returns the results disconnected from the query. |
Object |
getSingleResult()
Evaluates the query and return the first result. |
ElmoQuery |
setFirstResult(int startPosition)
Skips to the startPosition of the results. |
ElmoQuery |
setMaxResults(int maxResult)
Terminates the result list after reading maxResult |
ElmoQuery |
setParameter(String name,
Object value)
Assigns an entity or literal to the given name. |
ElmoQuery |
setParameter(String name,
String label,
Locale locale)
Binds a literal with no type and a language of locale. |
ElmoQuery |
setQName(String name,
QName qname)
Assigns entity by name to the given parameter name. |
ElmoQuery |
setType(String name,
Class<?> concept)
Assigns a concept to the given name. |
| Method Detail |
|---|
void close()
Iterator<?> evaluate()
Object getSingleResult()
List getResultList()
ElmoQuery setFirstResult(int startPosition)
startPosition of the results.
startPosition - ElmoQuery setMaxResults(int maxResult)
maxResult
maxResult -
ElmoQuery setType(String name,
Class<?> concept)
name - Name of the variable to bind to.concept - Registered concept.
ElmoQuery setQName(String name,
QName qname)
name - Name of the variable to bind to.qname - Name of the entity.
ElmoQuery setParameter(String name,
String label,
Locale locale)
locale.
name - Name of the variable to bind to.label - locale -
ElmoQuery setParameter(String name,
Object value)
name - Name of the variable to bind to.value - managed entity or literal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||