|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.rdb.ConstraintsGeneric
Implemention of the IConstraints interface used to specify search constraints on Jena statements. This implementation is suitable for any of the generic table layouts (whether hash or generator based) and should work for any reasonable database.
Constructor Summary | |
ConstraintsGeneric(ModelRDB model)
Constructor. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstraintsGeneric(ModelRDB model)
Method Detail |
public ResultSetIterator runQuery(IRDBDriver driver, ModelRDB m) throws RDFException
runQuery
in interface IConstraints
public IConstraints addSubjectConstraint(Resource r) throws RDFException
addSubjectConstraint
in interface IConstraints
public IConstraints addPropertyConstraint(Resource r) throws RDFException
addPropertyConstraint
in interface IConstraints
public IConstraints addObjectConstraint(Resource r) throws RDFException
addObjectConstraint
in interface IConstraints
public IConstraints addObjectConstraint(Literal l) throws RDFException
addObjectConstraint
in interface IConstraints
public IConstraints reset()
reset
in interface IConstraints
public IConstraints addStringConstraint(java.lang.String op, java.lang.String constraint)
addStringConstraint
in interface IConstraints
public IConstraints addIntConstraint(java.lang.String op, int constraint)
addIntConstraint
in interface IConstraints
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |