|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PredicateExpr
Interface for predicate expressions, these are expression which evaluate to either "true" or "false". They are used in the "where" part of the query, or can be evaluated stand-alone.
Method Summary | |
---|---|
Tristate |
appliesTo(org.outerj.daisy.repository.Document document)
Checks if this conditionl expression could evaluate to true for a document, without really knowing everything about the document. |
int |
bindSql(java.sql.PreparedStatement stmt,
int bindPos,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
|
boolean |
evaluate(org.outerj.daisy.repository.Document document,
org.outerj.daisy.repository.Version version,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
Evaluates the expression for the given document and version. |
void |
generateSql(java.lang.StringBuffer sql,
SqlGenerationContext context)
|
AclConditionViolation |
isAclAllowed()
Checks if this PredicateExpr only uses stuff allowed in ACL object conditions. |
void |
prepare(QueryContext context)
Needs to be called before usage of other methods. |
Methods inherited from interface org.outerj.daisy.query.model.Expression |
---|
getColumn, getLine, getLocation, setLocation |
Method Detail |
---|
void prepare(QueryContext context) throws org.outerj.daisy.repository.query.QueryException
org.outerj.daisy.repository.query.QueryException
boolean evaluate(org.outerj.daisy.repository.Document document, org.outerj.daisy.repository.Version version, org.outerj.daisy.repository.query.EvaluationContext evaluationContext) throws org.outerj.daisy.repository.query.QueryException
org.outerj.daisy.repository.query.QueryException
void generateSql(java.lang.StringBuffer sql, SqlGenerationContext context) throws org.outerj.daisy.repository.query.QueryException
org.outerj.daisy.repository.query.QueryException
int bindSql(java.sql.PreparedStatement stmt, int bindPos, org.outerj.daisy.repository.query.EvaluationContext evaluationContext) throws java.sql.SQLException, org.outerj.daisy.repository.query.QueryException
bindPos
- the binding position on which to bind the next value
java.sql.SQLException
org.outerj.daisy.repository.query.QueryException
AclConditionViolation isAclAllowed()
Tristate appliesTo(org.outerj.daisy.repository.Document document) throws org.outerj.daisy.repository.query.QueryException
The result can be:
org.outerj.daisy.repository.query.QueryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |