de.schwarzrot.data.access.support
Class AlternatingSequence
java.lang.Object
de.schwarzrot.data.access.support.AbstractConditionElement
de.schwarzrot.data.access.support.AlternatingSequence
- All Implemented Interfaces:
- ConditionElement
public class AlternatingSequence
- extends AbstractConditionElement
create a sequence of conditions, which only one of them must match.
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlternatingSequence
public AlternatingSequence(ConditionElement[] elems)
AlternatingSequence
public AlternatingSequence(List<ConditionElement> args)
format
public String format(EntityDescriptor ed,
DbUtil du)
- Description copied from interface:
ConditionElement
- format the condition text with given parameters
- Specified by:
format
in interface ConditionElement
- Overrides:
format
in class AbstractConditionElement
- Parameters:
ed
- - type of involved entitydu
- - the involved utility instance
- Returns:
- - the condition string ready to use in sql
getOpenOperator
public String getOpenOperator()
- Description copied from interface:
ConditionElement
- returns the operator, that opens this condition. Simple conditions like
'Equal' only have a single operator, so it is returned as opening
operator.
- Returns:
- an operator
- See Also:
ConditionElement.getCloseOperator()
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.