Ontimize Document Management 0.035EN

com.ontimize.dms.jcr.query
Class Function

java.lang.Object
  extended by com.ontimize.dms.jcr.query.Function
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FunctionComparator, FunctionHave, FunctionMethod

public abstract class Function
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static Function CONTAINS
          Search in a property name.
static Function CONTAINS_NODE
          Search in a node all content equals to given value.
protected static XPathConverter converter
           
static Function EQUALS
           
static Function GREATER
           
static Function GREATER_OR_EQUALS
           
static Function HAVE
           
static Function LESS
           
static Function LESS_OR_EQUALS
           
static Function LIKE
           
protected  java.lang.String name
           
static Function NOT_EQUALS
           
static Function NOT_HAVE
           
protected static java.lang.String STR_XS_DATETIME
           
 
Constructor Summary
Function(java.lang.String name)
           
 
Method Summary
protected  java.lang.String convertValue(java.util.Calendar calendar)
           
protected  java.lang.String convertValue(java.util.Date date)
           
protected  java.lang.String convertValue(java.lang.Number number)
           
protected  java.lang.String convertValue(java.lang.Object value)
           
protected  java.lang.String convertValue(java.lang.String value)
           
static XPathConverter getConverter()
           
 java.lang.String getName()
          Returns the key name of the function.
protected  java.lang.String getQuote()
           
abstract  java.lang.StringBuffer parse(java.lang.String node, java.lang.String name, java.lang.Object value)
          Overwrite to return a valid query string with the current function.
static void setConverter(XPathConverter converter)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STR_XS_DATETIME

protected static final java.lang.String STR_XS_DATETIME
See Also:
Constant Field Values

LESS

public static final Function LESS

LESS_OR_EQUALS

public static final Function LESS_OR_EQUALS

EQUALS

public static final Function EQUALS

NOT_EQUALS

public static final Function NOT_EQUALS

GREATER_OR_EQUALS

public static final Function GREATER_OR_EQUALS

GREATER

public static final Function GREATER

CONTAINS

public static final Function CONTAINS

Search in a property name.


CONTAINS_NODE

public static final Function CONTAINS_NODE

Search in a node all content equals to given value.


LIKE

public static final Function LIKE

HAVE

public static final Function HAVE

NOT_HAVE

public static final Function NOT_HAVE

converter

protected static XPathConverter converter

name

protected java.lang.String name
Constructor Detail

Function

public Function(java.lang.String name)
Method Detail

getConverter

public static XPathConverter getConverter()

setConverter

public static void setConverter(XPathConverter converter)

getName

public java.lang.String getName()

Returns the key name of the function.

Returns:
The key name of the function.

getQuote

protected java.lang.String getQuote()

parse

public abstract java.lang.StringBuffer parse(java.lang.String node,
                                             java.lang.String name,
                                             java.lang.Object value)

Overwrite to return a valid query string with the current function.

Parameters:
name - Element name (Node, Property).
value - Value to search.
Returns:
Query string.

convertValue

protected java.lang.String convertValue(java.lang.Number number)

convertValue

protected java.lang.String convertValue(java.util.Date date)

convertValue

protected java.lang.String convertValue(java.util.Calendar calendar)

convertValue

protected java.lang.String convertValue(java.lang.String value)

convertValue

protected java.lang.String convertValue(java.lang.Object value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Ontimize Document Management