org.apache.expreval.expr
Class MultipleExpressionContext

java.lang.Object
  extended by org.apache.expreval.expr.MultipleExpressionContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExpressionProperty, ExpressionTree, SelectExpressionContext, SimpleExpressionContext, StatementPredicate

public abstract class MultipleExpressionContext
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
protected MultipleExpressionContext()
           
protected MultipleExpressionContext(TypeSignature typeSignature, GenericValue... vals)
           
 
Method Summary
 void addColumnToUsedList(GenericColumn column)
           
 void addExpression(GenericValue genericValue)
           
 void addNamedParameter(NamedParameter param)
           
abstract  boolean allowColumns()
           
abstract  String asString()
           
 Object evaluate(HConnectionImpl conn, int i, boolean allowColumns, boolean allowCollections, Object object)
           
 Object evaluateConstant(int i, boolean allowCollections)
           
 List<ColumnAttrib> getAttribsUsedInExpr()
           
 List<GenericColumn> getColumnsUsedInExpr()
           
protected  List<GenericValue> getExpressionList()
           
protected  GenericValue getGenericValue(int i)
           
 Mapping getMapping()
           
 MappingContext getMappingContext()
           
 Map<String,List<NamedParameter>> getNamedParamMap()
           
 List<NamedParameter> getParameterList()
           
 ResultAccessor getResultAccessor()
           
 TableMapping getTableMapping()
           
 void optimize()
           
 void reset()
           
protected  void setGenericValue(int i, GenericValue treeRoot)
           
 void setMappingContext(MappingContext mappingContext)
           
 int setParameter(String name, Object val)
           
abstract  boolean useResultData()
           
 void validateTypes(boolean allowColumns, boolean allowCollections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleExpressionContext

protected MultipleExpressionContext()

MultipleExpressionContext

protected MultipleExpressionContext(TypeSignature typeSignature,
                                    GenericValue... vals)
Method Detail

asString

public abstract String asString()

useResultData

public abstract boolean useResultData()

allowColumns

public abstract boolean allowColumns()

getColumnsUsedInExpr

public List<GenericColumn> getColumnsUsedInExpr()

getAttribsUsedInExpr

public List<ColumnAttrib> getAttribsUsedInExpr()

addExpression

public void addExpression(GenericValue genericValue)

getNamedParamMap

public Map<String,List<NamedParameter>> getNamedParamMap()

getExpressionList

protected List<GenericValue> getExpressionList()

getMappingContext

public MappingContext getMappingContext()

getMapping

public Mapping getMapping()
                   throws HBqlException
Throws:
HBqlException

getTableMapping

public TableMapping getTableMapping()

getResultAccessor

public ResultAccessor getResultAccessor()
                                 throws HBqlException
Throws:
HBqlException

setMappingContext

public void setMappingContext(MappingContext mappingContext)
                       throws HBqlException
Throws:
HBqlException

getGenericValue

protected GenericValue getGenericValue(int i)

evaluate

public Object evaluate(HConnectionImpl conn,
                       int i,
                       boolean allowColumns,
                       boolean allowCollections,
                       Object object)
                throws HBqlException,
                       ResultMissingColumnException,
                       NullColumnValueException
Throws:
HBqlException
ResultMissingColumnException
NullColumnValueException

evaluateConstant

public Object evaluateConstant(int i,
                               boolean allowCollections)
                        throws HBqlException
Throws:
HBqlException

reset

public void reset()

setGenericValue

protected void setGenericValue(int i,
                               GenericValue treeRoot)

optimize

public void optimize()
              throws HBqlException
Throws:
HBqlException

validateTypes

public void validateTypes(boolean allowColumns,
                          boolean allowCollections)
                   throws HBqlException
Throws:
HBqlException

getParameterList

public List<NamedParameter> getParameterList()

addNamedParameter

public void addNamedParameter(NamedParameter param)

setParameter

public int setParameter(String name,
                        Object val)
                 throws HBqlException
Throws:
HBqlException

addColumnToUsedList

public void addColumnToUsedList(GenericColumn column)


Copyright © 2011. All Rights Reserved.