|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.elmo.sesame.SesameQuery
public class SesameQuery
Implements ElmoQuery for use with SesameManager.
| Field Summary | |
|---|---|
protected SesameManager |
manager
|
protected TupleQuery |
query
|
| Constructor Summary | |
|---|---|
SesameQuery(SesameManager manager,
TupleQuery query)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes any open results from this query. |
Iterator |
evaluate()
Evaluates the query and returns an iterator over the result. |
int |
executeUpdate()
|
boolean |
getIncludeInferred()
|
List |
getResultList()
Evaluates the query and returns the results disconnected from the query. |
Object |
getSingleResult()
Evaluates the query and return the first result. |
SesameQuery |
setFirstResult(int startPosition)
Skips to the startPosition of the results. |
SesameQuery |
setFlushMode(FlushModeType flushMode)
|
SesameQuery |
setHint(String hintName,
Object value)
|
void |
setIncludeInferred(boolean include)
|
SesameQuery |
setMaxResults(int maxResult)
Terminates the result list after reading maxResult |
SesameQuery |
setParameter(int arg0,
Calendar arg1,
TemporalType arg2)
|
SesameQuery |
setParameter(int arg0,
Date arg1,
TemporalType arg2)
|
SesameQuery |
setParameter(int arg0,
Object arg1)
|
SesameQuery |
setParameter(String name,
Calendar value,
TemporalType temporalType)
|
SesameQuery |
setParameter(String name,
Date value,
TemporalType temporalType)
|
SesameQuery |
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. |
SesameQuery |
setQName(String name,
QName qname)
Assigns entity by name to the given parameter name. |
SesameQuery |
setType(String name,
Class<?> concept)
Assigns a concept to the given name. |
SesameQuery |
setValue(String name,
Value value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SesameManager manager
protected TupleQuery query
| Constructor Detail |
|---|
public SesameQuery(SesameManager manager,
TupleQuery query)
| Method Detail |
|---|
public void close()
ElmoQuery
close in interface ElmoQuerypublic Iterator evaluate()
ElmoQuery
evaluate in interface ElmoQuerypublic Object getSingleResult()
ElmoQuery
getSingleResult in interface QuerygetSingleResult in interface ElmoQuerypublic List getResultList()
ElmoQuery
getResultList in interface QuerygetResultList in interface ElmoQuerypublic SesameQuery setFirstResult(int startPosition)
ElmoQuerystartPosition of the results.
setFirstResult in interface QuerysetFirstResult in interface ElmoQuerypublic SesameQuery setMaxResults(int maxResult)
ElmoQuerymaxResult
setMaxResults in interface QuerysetMaxResults in interface ElmoQuerypublic boolean getIncludeInferred()
public void setIncludeInferred(boolean include)
public ElmoQuery setParameter(String name,
String label,
Locale locale)
ElmoQuerylocale.
setParameter in interface ElmoQueryname - Name of the variable to bind to.
public SesameQuery setParameter(String name,
Object value)
ElmoQuery
setParameter in interface QuerysetParameter in interface ElmoQueryname - Name of the variable to bind to.value - managed entity or literal.
public SesameQuery setType(String name,
Class<?> concept)
ElmoQuery
setType in interface ElmoQueryname - Name of the variable to bind to.concept - Registered concept.
public SesameQuery setQName(String name,
QName qname)
ElmoQuery
setQName in interface ElmoQueryname - Name of the variable to bind to.qname - Name of the entity.
public SesameQuery setValue(String name,
Value value)
public String toString()
toString in class Objectpublic int executeUpdate()
executeUpdate in interface Querypublic SesameQuery setFlushMode(FlushModeType flushMode)
setFlushMode in interface Query
public SesameQuery setHint(String hintName,
Object value)
setHint in interface Query
public SesameQuery setParameter(String name,
Date value,
TemporalType temporalType)
setParameter in interface Query
public SesameQuery setParameter(String name,
Calendar value,
TemporalType temporalType)
setParameter in interface Query
public SesameQuery setParameter(int arg0,
Object arg1)
setParameter in interface Query
public SesameQuery setParameter(int arg0,
Date arg1,
TemporalType arg2)
setParameter in interface Query
public SesameQuery setParameter(int arg0,
Calendar arg1,
TemporalType arg2)
setParameter in interface Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||