|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.query.model.AbstractPredicateExpr
org.outerj.daisy.query.model.LinksToOrFrom
public class LinksToOrFrom
Constructor Summary | |
---|---|
LinksToOrFrom(long documentId,
boolean inLastVersion,
boolean inLiveVersion,
org.outerj.daisy.linkextraction.LinkType[] linkTypes,
boolean fromMode)
|
|
LinksToOrFrom(long documentId,
java.lang.String branch,
java.lang.String language,
boolean inLastVersion,
boolean inLiveVersion,
org.outerj.daisy.linkextraction.LinkType[] linkTypes,
boolean fromMode)
|
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 class org.outerj.daisy.query.model.AbstractPredicateExpr |
---|
getColumn, getLine, getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinksToOrFrom(long documentId, boolean inLastVersion, boolean inLiveVersion, org.outerj.daisy.linkextraction.LinkType[] linkTypes, boolean fromMode)
public LinksToOrFrom(long documentId, java.lang.String branch, java.lang.String language, boolean inLastVersion, boolean inLiveVersion, org.outerj.daisy.linkextraction.LinkType[] linkTypes, boolean fromMode)
Method Detail |
---|
public void prepare(QueryContext context) throws org.outerj.daisy.repository.query.QueryException
PredicateExpr
org.outerj.daisy.repository.query.QueryException
public 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
PredicateExpr
org.outerj.daisy.repository.query.QueryException
public void generateSql(java.lang.StringBuffer sql, SqlGenerationContext context) throws org.outerj.daisy.repository.query.QueryException
org.outerj.daisy.repository.query.QueryException
public int bindSql(java.sql.PreparedStatement stmt, int bindPos, org.outerj.daisy.repository.query.EvaluationContext evaluationContext) throws java.sql.SQLException
bindPos
- the binding position on which to bind the next value
java.sql.SQLException
public AclConditionViolation isAclAllowed()
PredicateExpr
public Tristate appliesTo(org.outerj.daisy.repository.Document document)
PredicateExpr
The result can be:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |