|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.query.model.AbstractFunction
public abstract class AbstractFunction
Field Summary | |
---|---|
protected java.util.List |
params
|
Constructor Summary | |
---|---|
AbstractFunction()
|
Method Summary | |
---|---|
void |
addParam(ValueExpr param)
|
int |
bindPreConditions(java.sql.PreparedStatement stmt,
int bindPos)
|
int |
bindValueExpr(java.sql.PreparedStatement stmt,
int bindPos,
QValueType valueType,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
|
boolean |
canTestAppliesTo()
|
void |
generateSqlValueExpr(java.lang.StringBuffer sql,
SqlGenerationContext context)
Generates the SQL for this expression. |
int |
getColumn()
|
java.lang.String |
getExpression()
Get a textual representation of this expression, i.e. |
int |
getLine()
|
java.lang.String |
getLocation()
|
protected ValueExpr |
getParam(int index)
|
java.lang.String |
getSqlPreConditions(SqlGenerationContext context)
Generates any SQL conditions needed outside of the main value expression (which is generated using ValueExpr.generateSqlValueExpr(StringBuffer, SqlGenerationContext) ). |
AclConditionViolation |
isAclAllowed()
Returns non-null if this ValueExpr is not fitted for use in ACL document selection expressions. |
boolean |
isMultiValue()
|
boolean |
isOutputOnly()
Returns true for ValueExpr's which cannot be searched on (i.e. |
boolean |
isSymbolicIdentifier()
Returns true if this ValueExpr represents a symbolic identifier. |
void |
prepare(QueryContext context)
A method that should be called before any of the others. |
void |
setLocation(int line,
int column)
|
java.lang.Object |
translateSymbolic(ValueExpr valueExpr,
org.outerj.daisy.repository.query.EvaluationContext evaluationContext)
See ValueExpr.isSymbolicIdentifier() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.outerj.daisy.query.model.Function |
---|
getFunctionName |
Methods inherited from interface org.outerj.daisy.query.model.ValueExpr |
---|
evaluate, evaluate, getOutputValue, getOutputValueType, getTitle, getValueType |
Field Detail |
---|
protected java.util.List params
Constructor Detail |
---|
public AbstractFunction()
Method Detail |
---|
public void setLocation(int line, int column)
setLocation
in interface Expression
public java.lang.String getLocation()
getLocation
in interface Expression
public int getLine()
getLine
in interface Expression
public int getColumn()
getColumn
in interface Expression
public void addParam(ValueExpr param)
addParam
in interface Function
protected ValueExpr getParam(int index)
public void prepare(QueryContext context) throws org.outerj.daisy.repository.query.QueryException
ValueExpr
prepare
in interface ValueExpr
org.outerj.daisy.repository.query.QueryException
public java.lang.String getSqlPreConditions(SqlGenerationContext context) throws org.outerj.daisy.repository.query.QueryException
ValueExpr
ValueExpr.generateSqlValueExpr(StringBuffer, SqlGenerationContext)
).
Should throw an exception if this is an output-only ValueExpr.
getSqlPreConditions
in interface ValueExpr
org.outerj.daisy.repository.query.QueryException
public int bindPreConditions(java.sql.PreparedStatement stmt, int bindPos) throws java.sql.SQLException, org.outerj.daisy.repository.query.QueryException
bindPreConditions
in interface ValueExpr
java.sql.SQLException
org.outerj.daisy.repository.query.QueryException
public boolean isSymbolicIdentifier()
ValueExpr
If this method returns true, then ValueExpr.translateSymbolic(org.outerj.daisy.query.model.ValueExpr, org.outerj.daisy.repository.query.EvaluationContext)
can
be called to convert the symbolic value to the test value.
isSymbolicIdentifier
in interface ValueExpr
public boolean isMultiValue()
isMultiValue
in interface ValueExpr
public boolean isOutputOnly()
ValueExpr
isOutputOnly
in interface ValueExpr
public AclConditionViolation isAclAllowed()
ValueExpr
isAclAllowed
in interface ValueExpr
public java.lang.Object translateSymbolic(ValueExpr valueExpr, org.outerj.daisy.repository.query.EvaluationContext evaluationContext) throws org.outerj.daisy.repository.query.QueryException
ValueExpr
ValueExpr.isSymbolicIdentifier()
. This method should only be called
if ValueExpr.isSymbolicIdentifier()
returns true.
translateSymbolic
in interface ValueExpr
org.outerj.daisy.repository.query.QueryException
public void generateSqlValueExpr(java.lang.StringBuffer sql, SqlGenerationContext context) throws org.outerj.daisy.repository.query.QueryException
ValueExpr
Should throw an exception if this is an output-only ValueExpr.
generateSqlValueExpr
in interface ValueExpr
org.outerj.daisy.repository.query.QueryException
public int bindValueExpr(java.sql.PreparedStatement stmt, int bindPos, QValueType valueType, org.outerj.daisy.repository.query.EvaluationContext evaluationContext) throws java.sql.SQLException, org.outerj.daisy.repository.query.QueryException
bindValueExpr
in interface ValueExpr
java.sql.SQLException
org.outerj.daisy.repository.query.QueryException
public java.lang.String getExpression()
ValueExpr
getExpression
in interface ValueExpr
public boolean canTestAppliesTo()
canTestAppliesTo
in interface ValueExpr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |