org.objectweb.medor.filter.rdb.lib
Class BasicRdbFieldOperand

java.lang.Object
  |
  +--org.objectweb.medor.lib.BasicField
        |
        +--org.objectweb.medor.query.rdb.lib.BasicRdbField
              |
              +--org.objectweb.medor.filter.rdb.lib.BasicRdbFieldOperand
All Implemented Interfaces:
Cloneable, java.lang.Cloneable, Expression, Field, QueryTreeField, RdbField, RdbFieldOperand

public class BasicRdbFieldOperand
extends BasicRdbField
implements RdbFieldOperand


Field Summary
 
Fields inherited from interface org.objectweb.medor.api.Field
NONULLS, NULLABLE, NULLABLEUNKNOWN, PNAMENAME
 
Method Summary
 void compileExpression()
          nothing to do.
 void evaluate(ParameterOperand[] values, Tuple t)
          Not evaluable.
 Operand getResult()
          No result (this is not evaluable).
 boolean isCompiled()
          Can be considered as compiled, since nothing to do.
 
Methods inherited from class org.objectweb.medor.query.rdb.lib.BasicRdbField
getColumnName, getQueryTree
 
Methods inherited from class org.objectweb.medor.lib.BasicField
clone, getName, getNullStatus, getType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.filter.api.Expression
getType
 
Methods inherited from interface org.objectweb.medor.api.Cloneable
clone
 
Methods inherited from interface org.objectweb.medor.query.rdb.api.RdbField
getColumnName
 
Methods inherited from interface org.objectweb.medor.query.api.QueryTreeField
getQueryTree
 
Methods inherited from interface org.objectweb.medor.api.Field
getName, getNullStatus, getType
 

Method Detail

isCompiled

public boolean isCompiled()
Can be considered as compiled, since nothing to do.

Specified by:
isCompiled in interface Expression
Returns:
true if the expression is compiled and false if it is not

compileExpression

public void compileExpression()
                       throws TypingException,
                              MalformedExpressionException
nothing to do.

Specified by:
compileExpression in interface Expression
Throws:
MalformedExpressionException - if syntax error
TypingException - when incompatible types error occures.

getResult

public Operand getResult()
                  throws java.lang.IllegalStateException
No result (this is not evaluable).

Specified by:
getResult in interface Expression
Returns:
an Operand Object
Throws:
java.lang.IllegalStateException - if this expression is not compiled.

evaluate

public void evaluate(ParameterOperand[] values,
                     Tuple t)
              throws MedorException,
                     java.lang.IllegalStateException
Not evaluable.

Specified by:
evaluate in interface Expression
Parameters:
values - a list of ParameterOperand
t - Tuple
Throws:
java.lang.IllegalStateException - if this expression is not compiled.
MedorException - if evaluation error