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

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

public class LikeExpression
extends JCRFunctionExpression

Version:
$Id: LikeExpression.java 3285 2011-01-24 18:10:19Z fgiust $
Author:
fgrilli
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.JCRFunctionExpression
function, propertyName, 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
LikeExpression(String propertyName, Object value, String function, MatchMode matchMode)
           
 
Method Summary
 String toXPathString(Criteria criteria)
          Render the XPath fragment
 
Methods inherited from class net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.JCRFunctionExpression
getFunction, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LikeExpression

public LikeExpression(String propertyName,
                      Object value,
                      String function,
                      MatchMode matchMode)
Method Detail

toXPathString

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

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


Copyright © 2009-2011 Openmind. All Rights Reserved.