de.schwarzrot.data.access.support
Class AbstractFunctionCondtion
java.lang.Object
de.schwarzrot.data.access.support.AbstractConditionElement
de.schwarzrot.data.access.support.AbstractFunctionCondtion
- All Implemented Interfaces:
- ConditionElement
- Direct Known Subclasses:
- MaxConditionElement, MinConditionElement
public abstract class AbstractFunctionCondtion
- extends AbstractConditionElement
create the condition string for queries, that want to refer to a function
result i.e. max. value of given attribute. Such queries look like: select *
from XXX where name = ( select (name) from XXX )
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractFunctionCondtion
public AbstractFunctionCondtion()
AbstractFunctionCondtion
public AbstractFunctionCondtion(String name,
Object value)
format
public String format(EntityDescriptor ed,
PropertyInfo pi,
DbUtil du,
Object physValue)
- Description copied from interface:
ConditionElement
- format the condition text with the given parameters
- Specified by:
format
in interface ConditionElement
- Overrides:
format
in class AbstractConditionElement
- Parameters:
ed
- - the type of the involved entitypi
- - the description of the propertydu
- - the involved utility instancephysValue
- - the physical values bound to this condition
- Returns:
- - the condition string ready to use in sql
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()
getFunction
protected abstract String getFunction()
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.