|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects which apply a set of additional constraints
to a listStatements operation. These are generated by factory methods
on the driver IRDBDriver.createConstraints(com.hp.hpl.mesa.rdf.jena.rdb.ModelRDB)
since different database layouts may require different
constraint implementations.
Method Summary | |
IConstraints |
addIntConstraint(java.lang.String op,
int constraint)
Add a constraint that the object field should match the given integer literal using the sql comparison operator op - examples include "≥" and "≤=". |
IConstraints |
addObjectConstraint(Literal l)
Add a constraint that the object field should match the given literal exactly |
IConstraints |
addObjectConstraint(Resource r)
Add a constraint that the object field should match the given resource |
IConstraints |
addPropertyConstraint(Resource r)
Add a constraint that the property field should match the given resource |
IConstraints |
addStringConstraint(java.lang.String op,
java.lang.String constraint)
Add a constraint that the object field should match the given string literal using the sql comparison operator op - such as "LIKE" or "NOT LIKE" |
IConstraints |
addSubjectConstraint(Resource r)
Add a constraint that the subject field should match the given resource |
IConstraints |
reset()
Clear all constraints |
ResultSetIterator |
runQuery(IRDBDriver driver,
ModelRDB m)
Execute the query implied by this set of constraints against the statements in the given model. |
Method Detail |
public IConstraints addSubjectConstraint(Resource r) throws RDFException
public IConstraints addPropertyConstraint(Resource r) throws RDFException
public IConstraints addObjectConstraint(Resource r) throws RDFException
public IConstraints addObjectConstraint(Literal l) throws RDFException
public IConstraints addStringConstraint(java.lang.String op, java.lang.String constraint)
public IConstraints addIntConstraint(java.lang.String op, int constraint)
public IConstraints reset()
public ResultSetIterator runQuery(IRDBDriver driver, ModelRDB m) throws RDFException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |