org.outerj.daisy.query.model
Class LinksToOrFrom
java.lang.Object
org.outerj.daisy.query.model.LinksToOrFrom
- All Implemented Interfaces:
- CondExpr
- public class LinksToOrFrom
- extends java.lang.Object
- implements CondExpr
Constructor Summary |
LinksToOrFrom(long documentId,
boolean inLastVersion,
boolean inLiveVersion,
LinkType[] linkTypes,
boolean fromMode)
|
LinksToOrFrom(long documentId,
java.lang.String branch,
java.lang.String language,
boolean inLastVersion,
boolean inLiveVersion,
LinkType[] linkTypes,
boolean fromMode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinksToOrFrom
public LinksToOrFrom(long documentId,
boolean inLastVersion,
boolean inLiveVersion,
LinkType[] linkTypes,
boolean fromMode)
LinksToOrFrom
public LinksToOrFrom(long documentId,
java.lang.String branch,
java.lang.String language,
boolean inLastVersion,
boolean inLiveVersion,
LinkType[] linkTypes,
boolean fromMode)
prepare
public void prepare(QueryContext context)
throws QueryException
- Specified by:
prepare
in interface CondExpr
- Throws:
QueryException
evaluate
public boolean evaluate(org.outerj.daisy.repository.Document document)
throws QueryException
- Specified by:
evaluate
in interface CondExpr
- Throws:
QueryException
generateSql
public void generateSql(java.lang.StringBuffer sql,
SqlGenerationContext context)
throws QueryException
- Specified by:
generateSql
in interface CondExpr
- Throws:
QueryException
bindSql
public int bindSql(java.sql.PreparedStatement stmt,
int bindPos)
throws java.sql.SQLException
- Specified by:
bindSql
in interface CondExpr
- Parameters:
bindPos
- the binding position on which to bind the next value
- Returns:
- the next binding position
- Throws:
java.sql.SQLException
isAclAllowed
public AclConditionViolation isAclAllowed()
- Description copied from interface:
CondExpr
- Checks if this CondExpr only uses stuff allowed in ACL object conditions.
Returns null if successfull.
- Specified by:
isAclAllowed
in interface CondExpr
appliesTo
public Tristate appliesTo(long documentType,
long collection)
- Description copied from interface:
CondExpr
- Checks if this conditionl expression could evaluate to true
for a document which has the given documentType id and collection id.
The collection id is optional, specify -1 to ignore.
The result can be:
- yes, if the expression is guaranteed to evaluate
to true for such a document,
- no,if the expression is guaranteed to evaluate to
false for such a document,
- maybe, if the epxression could apply but the exact
outcome depends on further information.
- Specified by:
appliesTo
in interface CondExpr
Copyright © -2005 . All Rights Reserved.