SRJRCFrames
v0.1.296

de.schwarzrot.data.access.support
Class InListConditionElement

java.lang.Object
  extended by de.schwarzrot.data.access.support.AbstractConditionElement
      extended by de.schwarzrot.data.access.support.InListConditionElement
All Implemented Interfaces:
ConditionElement

public class InListConditionElement
extends AbstractConditionElement

models a condition like the sql condition: in ( a, b, c ), where the assembling of the condition is performed by the DbUtil instance.

Author:
Reinhard Mantey

Field Summary
protected static String CLOSE_OPERATOR
           
protected static String OPEN_OPERATOR
           
protected static String SEPARATOR
           
 
Fields inherited from class de.schwarzrot.data.access.support.AbstractConditionElement
cnvFactory, EMPTY_STRING
 
Constructor Summary
InListConditionElement(String name, List<?> values)
           
InListConditionElement(String name, Object[] values)
           
 
Method Summary
 String getCloseOperator()
          returns the operator, that closes a condition.
 String getOpenOperator()
          returns the operator, that opens this condition.
 String getSeparator()
          returns the separator used to assemble sofisticated conditions.
 
Methods inherited from class de.schwarzrot.data.access.support.AbstractConditionElement
format, format, getName, getValue, setName, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_OPERATOR

protected static final String OPEN_OPERATOR
See Also:
Constant Field Values

CLOSE_OPERATOR

protected static final String CLOSE_OPERATOR
See Also:
Constant Field Values

SEPARATOR

protected static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

InListConditionElement

public InListConditionElement(String name,
                              List<?> values)

InListConditionElement

public InListConditionElement(String name,
                              Object[] values)
Method Detail

getCloseOperator

public String getCloseOperator()
Description copied from interface: ConditionElement
returns the operator, that closes a condition. For simple conditions this call will return an empty string only.

Specified by:
getCloseOperator in interface ConditionElement
Overrides:
getCloseOperator in class AbstractConditionElement
Returns:
an operator
See Also:
ConditionElement.getOpenOperator()

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

getSeparator

public String getSeparator()
Description copied from interface: ConditionElement
returns the separator used to assemble sofisticated conditions. For simple conditions, this call will return an empty string only.

Specified by:
getSeparator in interface ConditionElement
Overrides:
getSeparator in class AbstractConditionElement
Returns:
a separator

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.