org.olat.course.condition.operators
Class AbstractOperator
java.lang.Object
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
|
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 |
AbstractOperator
public AbstractOperator()
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: