org.olat.course.condition.operators
Interface Operator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractOperator, AttributeEndswithOperator, AttributeStartswithOperator, EqualsOperator, GreaterThanEqualsOperator, GreaterThanOperator, HasAttributeOperator, HasNotAttributeOperator, IsInAttributeOperator, IsNotInAttributeOperator, LowerThanEqualsOperator, LowerThanOperator

public interface Operator
extends java.io.Serializable

Description:
Interface for the operators in extended easy mode.

Initial Date: 23.10.2006

Author:
Lars Eberle (BPS Bildungsportal Sachsen GmbH)

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.
 java.lang.String getLabelKey()
           
 java.lang.String getOperator()
           
 java.lang.String getOperatorKey()
           
 

Method Detail

getLabelKey

java.lang.String getLabelKey()
Returns:
the key of the operators label to be translated

getOperator

java.lang.String getOperator()
Returns:
the operators function name

getOperatorKey

java.lang.String getOperatorKey()
Returns:
the operators key (e.g. for use in StaticSingleSelectionFields)

buildExpression

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).

Parameters:
attribute -
value -
Returns:
an expression like
hasAttribute("attributeValue", "valueToBeTested")

buildSQLStatement

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.

Parameters:
attribute -
value -
Returns: