SRJRCFrames
v0.1.296

de.schwarzrot.data.access.support
Class AlternatingSequence

java.lang.Object
  extended by de.schwarzrot.data.access.support.AbstractConditionElement
      extended by 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

Field Summary
 
Fields inherited from class de.schwarzrot.data.access.support.AbstractConditionElement
cnvFactory, EMPTY_STRING
 
Constructor Summary
AlternatingSequence(ConditionElement[] elems)
           
AlternatingSequence(List<ConditionElement> args)
           
 
Method Summary
 String format(EntityDescriptor ed, DbUtil du)
          format the condition text with given parameters
 String getOpenOperator()
          returns the operator, that opens this condition.
 
Methods inherited from class de.schwarzrot.data.access.support.AbstractConditionElement
format, getCloseOperator, getName, getSeparator, getValue, setName, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternatingSequence

public AlternatingSequence(ConditionElement[] elems)

AlternatingSequence

public AlternatingSequence(List<ConditionElement> args)
Method Detail

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 entity
du - - 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()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
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.