|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.object.ObjectQuery
public class ObjectQuery
Extends Query by providing setObject(String, Object) and
setType(String, Class) for object binding.
| Field Summary | |
|---|---|
protected ObjectConnection |
manager
|
protected TupleQuery |
query
|
| Constructor Summary | |
|---|---|
ObjectQuery(ObjectConnection manager,
TupleQuery query)
|
|
| Method Summary | ||
|---|---|---|
Result<?> |
evaluate()
Evaluates the query returning a result of Object or result of Object[], if there is more than one binding. |
|
Result<Object[]> |
evaluate(Class<?>... concepts)
Evaluates the query returning a result of Object[]. |
|
|
evaluate(Class<T> concept)
Evaluates the query returning a result of a single Object, assumed to implement the given concept. |
|
BindingSet |
getBindings()
|
|
Dataset |
getDataset()
|
|
boolean |
getIncludeInferred()
|
|
int |
getMaxQueryTime()
|
|
void |
removeBinding(String name)
|
|
void |
setBinding(String name,
Value value)
|
|
void |
setDataset(Dataset arg0)
|
|
void |
setIncludeInferred(boolean include)
|
|
void |
setMaxQueryTime(int sec)
|
|
void |
setObject(String name,
Object value)
Binds the specified variable to the supplied object. |
|
void |
setType(String name,
Class<?> concept)
Binds the specified variable to the supplied concept. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ObjectConnection manager
protected TupleQuery query
| Constructor Detail |
|---|
public ObjectQuery(ObjectConnection manager,
TupleQuery query)
| Method Detail |
|---|
public BindingSet getBindings()
getBindings in interface Querypublic void removeBinding(String name)
removeBinding in interface Query
public void setBinding(String name,
Value value)
setBinding in interface Querypublic Dataset getDataset()
getDataset in interface Querypublic void setDataset(Dataset arg0)
setDataset in interface Querypublic int getMaxQueryTime()
getMaxQueryTime in interface Querypublic void setMaxQueryTime(int sec)
setMaxQueryTime in interface Querypublic boolean getIncludeInferred()
getIncludeInferred in interface Querypublic void setIncludeInferred(boolean include)
setIncludeInferred in interface Query
public void setObject(String name,
Object value)
name - variable namevalue - datatype or concept implementation
public void setType(String name,
Class<?> concept)
name - variable nameconcept - a registered concept class or interface
public Result<?> evaluate()
throws QueryEvaluationException
QueryEvaluationException
public <T> Result<T> evaluate(Class<T> concept)
throws QueryEvaluationException
QueryEvaluationException
public Result<Object[]> evaluate(Class<?>... concepts)
throws QueryEvaluationException
QueryEvaluationExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||