|
||||||||||
| 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 Expressionpublic java.lang.String getLocation()
getLocation in interface Expressionpublic int getLine()
getLine in interface Expressionpublic int getColumn()
getColumn in interface Expressionpublic void addParam(ValueExpr param)
addParam in interface Functionprotected ValueExpr getParam(int index)
public void prepare(QueryContext context)
throws org.outerj.daisy.repository.query.QueryException
ValueExpr
prepare in interface ValueExprorg.outerj.daisy.repository.query.QueryException
public java.lang.String getSqlPreConditions(SqlGenerationContext context)
throws org.outerj.daisy.repository.query.QueryException
ValueExprValueExpr.generateSqlValueExpr(StringBuffer, SqlGenerationContext)).
Should throw an exception if this is an output-only ValueExpr.
getSqlPreConditions in interface ValueExprorg.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 ValueExprjava.sql.SQLException
org.outerj.daisy.repository.query.QueryExceptionpublic boolean isSymbolicIdentifier()
ValueExprIf 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 ValueExprpublic boolean isMultiValue()
isMultiValue in interface ValueExprpublic boolean isOutputOnly()
ValueExpr
isOutputOnly in interface ValueExprpublic 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
ValueExprValueExpr.isSymbolicIdentifier(). This method should only be called
if ValueExpr.isSymbolicIdentifier() returns true.
translateSymbolic in interface ValueExprorg.outerj.daisy.repository.query.QueryException
public void generateSqlValueExpr(java.lang.StringBuffer sql,
SqlGenerationContext context)
throws org.outerj.daisy.repository.query.QueryException
ValueExprShould throw an exception if this is an output-only ValueExpr.
generateSqlValueExpr in interface ValueExprorg.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 ValueExprjava.sql.SQLException
org.outerj.daisy.repository.query.QueryExceptionpublic java.lang.String getExpression()
ValueExpr
getExpression in interface ValueExprpublic boolean canTestAppliesTo()
canTestAppliesTo in interface ValueExpr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||