org.olat.course.condition.operators
Class AbstractOperator

java.lang.Object
  extended by org.olat.course.condition.operators.AbstractOperator
All Implemented Interfaces:
java.io.Serializable, Operator
Direct Known Subclasses:
AttributeEndswithOperator, AttributeStartswithOperator, EqualsOperator, GreaterThanEqualsOperator, GreaterThanOperator, HasAttributeOperator, HasNotAttributeOperator, IsInAttributeOperator, IsNotInAttributeOperator, LowerThanEqualsOperator, LowerThanOperator

public abstract class AbstractOperator
extends java.lang.Object
implements Operator

Description:
Abstract class for the operators in extended easy mode.

Initial Date: 23.10.2006

Author:
Lars Eberle (BPS Bildungsportal Sachsen GmbH)
See Also:
Serialized Form

Constructor Summary
AbstractOperator()
           
 
Method Summary
 java.lang.String buildExpression(java.lang.String attribute, java.lang.String value)
          Builds the expression using the given attribute and value and the operator (depending which class implements this method).
 java.lang.String buildSQLStatement(java.lang.String attribute, java.lang.String value)
          Builds the SQL statement using the given attribute and value and the operator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.olat.course.condition.operators.Operator
getLabelKey, getOperator, getOperatorKey
 

Constructor Detail

AbstractOperator

public AbstractOperator()
Method Detail

buildExpression

public java.lang.String buildExpression(java.lang.String attribute,
                                        java.lang.String value)
Builds the expression using the given attribute and value and the operator (depending which class implements this method).

Specified by:
buildExpression in interface Operator
Parameters:
attribute -
value -
Returns:
an expression like
hasAttribute("attributeValue", "valueToBeTested")

buildSQLStatement

public java.lang.String buildSQLStatement(java.lang.String attribute,
                                          java.lang.String value)
Builds the SQL statement using the given attribute and value and the operator.

Specified by:
buildSQLStatement in interface Operator
Parameters:
attribute -
value -
Returns: