net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion
Class JCRFunctionExpression

java.lang.Object
  extended by net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.BaseCriterion
      extended by net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.JCRFunctionExpression
All Implemented Interfaces:
Serializable, Criterion
Direct Known Subclasses:
LikeExpression

public class JCRFunctionExpression
extends BaseCriterion
implements Criterion

Version:
$Id: JCRFunctionExpression.java 2923 2010-08-29 08:58:29Z fgiust $
Author:
fgrilli
See Also:
Serialized Form

Field Summary
protected  String function
           
protected  String propertyName
           
protected  Object value
           
 
Fields inherited from class net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.BaseCriterion
DATE_FORMAT, log
 
Fields inherited from interface net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.Criterion
ALL_ELEMENTS, ATTRIBUTE_SELECTOR, JCR_PREFIX, JCR_PRIMARYTYPE, JCR_ROOT, NT_BASE, XS_DATETIME_FUNCTION
 
Constructor Summary
JCRFunctionExpression(String propertyName, Object value, String function)
           
 
Method Summary
protected  String getFunction()
           
 String toString()
           
 String toXPathString(Criteria criteria)
          Render the XPath fragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyName

protected final String propertyName

value

protected final Object value

function

protected final String function
Constructor Detail

JCRFunctionExpression

public JCRFunctionExpression(String propertyName,
                             Object value,
                             String function)
Method Detail

getFunction

protected final String getFunction()

toXPathString

public String toXPathString(Criteria criteria)
                     throws JCRQueryException
Description copied from interface: Criterion
Render the XPath fragment

Specified by:
toXPathString in interface Criterion
Parameters:
criteria - input criteria
Returns:
converted XPATH expression
Throws:
JCRQueryException - if there is a problem converting the input criteria to a valid xpath expression

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Openmind. All Rights Reserved.