|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for conditional expressions, i.e. those used in the "where" part of a query.
Method Summary | |
Tristate |
appliesTo(long documentType,
long collection)
Checks if this conditionl expression could evaluate to true for a document which has the given documentType id and collection id. |
int |
bindSql(java.sql.PreparedStatement stmt,
int bindPos)
|
boolean |
evaluate(org.outerj.daisy.repository.Document document)
|
void |
generateSql(java.lang.StringBuffer sql,
SqlGenerationContext context)
|
AclConditionViolation |
isAclAllowed()
Checks if this CondExpr only uses stuff allowed in ACL object conditions. |
void |
prepare(QueryContext context)
|
Method Detail |
public void prepare(QueryContext context) throws QueryException
QueryException
public boolean evaluate(org.outerj.daisy.repository.Document document) throws QueryException
QueryException
public void generateSql(java.lang.StringBuffer sql, SqlGenerationContext context) throws QueryException
QueryException
public int bindSql(java.sql.PreparedStatement stmt, int bindPos) throws java.sql.SQLException
bindPos
- the binding position on which to bind the next value
java.sql.SQLException
public AclConditionViolation isAclAllowed()
public Tristate appliesTo(long documentType, long collection)
The result can be:
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |