org.objectweb.jorm.mapper.rdb.metainfo
Class RdbFilter
java.lang.Object
org.objectweb.jorm.metainfo.lib.BasicMetaObject
org.objectweb.jorm.mapper.rdb.metainfo.RdbFilter
- All Implemented Interfaces:
- Loggable, MetaObject, java.io.Serializable
- public class RdbFilter
- extends BasicMetaObject
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbFilter
public RdbFilter(MetaObject parent)
- Builds a new RdbFilter object.
This object encapsulates information about filter columns.
The parent object is a RdbClassMapping object.
- Parameters:
parent
- the parent of the current object.
isFilter
public boolean isFilter(PrimitiveElement pe)
- Indicates if a PrimitiveElement is part of the filter.
- Parameters:
pe
- a PrimitiveElement.
- Returns:
- true, if pe is a part of the filter, else false.
getEqualPredicateValue
public java.lang.String getEqualPredicateValue(java.lang.String elementName)
throws PException
- Returns the predicate value associated with the filter PrimitiveElement
name.
If the predicate does not correspond to an equal operator, a PException is raised.
- Parameters:
elementName
- a filter column name.
- Returns:
- the predicate value associated with the filter PrimitiveElement.
- Throws:
PException
setExpression
public void setExpression(Expression e)
getExpression
public Expression getExpression()
setStringExpression
public void setStringExpression(java.lang.String e)
getStringExpression
public java.lang.String getStringExpression()