org.objectweb.jorm.mapper.rdb.metainfo
Class RdbFilter

java.lang.Object
  extended byorg.objectweb.jorm.metainfo.lib.BasicMetaObject
      extended byorg.objectweb.jorm.mapper.rdb.metainfo.RdbFilter
All Implemented Interfaces:
Loggable, MetaObject, java.io.Serializable

public class RdbFilter
extends BasicMetaObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
debug, logger, loggerFactory, parent
 
Constructor Summary
RdbFilter(MetaObject parent)
          Builds a new RdbFilter object.
 
Method Summary
 java.lang.String getEqualPredicateValue(java.lang.String elementName)
          Returns the predicate value associated with the filter PrimitiveElement name.
 Expression getExpression()
           
 java.lang.String getStringExpression()
           
 boolean isFilter(PrimitiveElement pe)
          Indicates if a PrimitiveElement is part of the filter.
 void setExpression(Expression e)
           
 void setStringExpression(java.lang.String e)
           
 
Methods inherited from class org.objectweb.jorm.metainfo.lib.BasicMetaObject
getChildren, getLogger, getLoggerFactory, getManager, getParent, setLogger, setLoggerFactory, setLoggingOnChild, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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