|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.data.access.support.AbstractConditionElement
public abstract class AbstractConditionElement
abstract helper class for convenience of creation of ConditionElement
s.
Field Summary | |
---|---|
protected static ConverterFactory |
cnvFactory
|
protected static String |
EMPTY_STRING
|
Constructor Summary | |
---|---|
AbstractConditionElement()
default constructor for automated building |
|
AbstractConditionElement(String name,
Object value)
constructor for manual setup, so both instance variables could be set |
Method Summary | |
---|---|
String |
format(EntityDescriptor ed,
DbUtil du)
format the condition text with given parameters |
String |
format(EntityDescriptor ed,
PropertyInfo pi,
DbUtil du,
Object physValue)
format the condition text with the given parameters |
String |
getCloseOperator()
returns the operator, that closes a condition. |
String |
getName()
returns the property name used in the condition |
String |
getSeparator()
returns the separator used to assemble sofisticated conditions. |
Object |
getValue()
returns the value of this condition |
void |
setName(String name)
sets the property name of this condition |
void |
setValue(Object value)
sets the value used by this condition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.schwarzrot.data.access.support.ConditionElement |
---|
getOpenOperator |
Field Detail |
---|
protected static final String EMPTY_STRING
protected static ConverterFactory cnvFactory
Constructor Detail |
---|
public AbstractConditionElement()
public AbstractConditionElement(String name, Object value)
name
- the property name of this conditionvalue
- the value for this conditionMethod Detail |
---|
public String format(EntityDescriptor ed, DbUtil du)
ConditionElement
format
in interface ConditionElement
ed
- - type of involved entitydu
- - the involved utility instance
public String format(EntityDescriptor ed, PropertyInfo pi, DbUtil du, Object physValue)
ConditionElement
format
in interface ConditionElement
ed
- - the type of the involved entitypi
- - the description of the propertydu
- - the involved utility instancephysValue
- - the physical values bound to this condition
public String getCloseOperator()
ConditionElement
getCloseOperator
in interface ConditionElement
ConditionElement.getOpenOperator()
public final String getName()
ConditionElement
getName
in interface ConditionElement
public String getSeparator()
ConditionElement
getSeparator
in interface ConditionElement
public Object getValue()
ConditionElement
getValue
in interface ConditionElement
public final void setName(String name)
ConditionElement
setName
in interface ConditionElement
name
- a property namepublic final void setValue(Object value)
ConditionElement
setValue
in interface ConditionElement
value
- - the raw value to be used by the condition
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |