net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion
Interface Criterion

All Superinterfaces:
Serializable
All Known Implementing Classes:
BaseCriterion, BetweenExpression, Conjunction, Disjunction, InExpression, IsNotNullExpression, IsNullExpression, JCRFunctionExpression, Junction, LikeExpression, LogicalExpression, NotExpression, Order, SimpleExpression

public interface Criterion
extends Serializable

An object-oriented representation of a query criterion that may be used as a restriction in a Criteria query. Built-in criterion types are provided by the Restrictions factory class. This interface might be implemented by application classes that define custom restriction criteria.

Version:
$Id: Criterion.java 3285 2011-01-24 18:10:19Z fgiust $
Author:
Federico Grilli
See Also:
Restrictions, Criteria

Field Summary
static String ALL_ELEMENTS
          Xpath for all elements "//*".
static String ATTRIBUTE_SELECTOR
          The xpath attribute prefix "@"
static String JCR_PREFIX
          The jcr prefix "jcr:".
static String JCR_PRIMARYTYPE
          The jcr primary type "@jcr:primaryType".
static String JCR_ROOT
          The jcr root path "/jcr:root".
static String NT_BASE
          nt:base item type.
static String XS_DATETIME_FUNCTION
          XS datetime function "xs:dateTime"
 
Method Summary
 String toXPathString(Criteria criteria)
          Render the XPath fragment
 

Field Detail

JCR_PRIMARYTYPE

static final String JCR_PRIMARYTYPE
The jcr primary type "@jcr:primaryType".

See Also:
Constant Field Values

ATTRIBUTE_SELECTOR

static final String ATTRIBUTE_SELECTOR
The xpath attribute prefix "@"

See Also:
Constant Field Values

JCR_PREFIX

static final String JCR_PREFIX
The jcr prefix "jcr:".

See Also:
Constant Field Values

JCR_ROOT

static final String JCR_ROOT
The jcr root path "/jcr:root".

See Also:
Constant Field Values

ALL_ELEMENTS

static final String ALL_ELEMENTS
Xpath for all elements "//*".

See Also:
Constant Field Values

XS_DATETIME_FUNCTION

static final String XS_DATETIME_FUNCTION
XS datetime function "xs:dateTime"

See Also:
Constant Field Values

NT_BASE

static final String NT_BASE
nt:base item type.

See Also:
Constant Field Values
Method Detail

toXPathString

String toXPathString(Criteria criteria)
                     throws JCRQueryException
Render the XPath fragment

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.