|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.jcr.faces.util.QueryUtil
public class QueryUtil
Helper utilities to assist in the construction of a JCR query string
Nested Class Summary | |
---|---|
static class |
QueryUtil.QuoteChar
Enum to specify which quote style to use |
Constructor Summary | |
---|---|
QueryUtil()
|
Method Summary | |
---|---|
static String |
encodeAttributeValue(String rawValue,
QueryUtil.QuoteChar wrappingQuoteCharacter)
Encodes the special characters of a term to provide a valid attribute value match |
static String |
encodeForLikeClause(String rawValue,
QueryUtil.QuoteChar wrappingQuoteCharacter)
Encodes the special characters of a term to provide a valid like clause |
static String |
escapeIllegalXpathSearchChars(String s)
Escapes illegal XPath search characters at the end of a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryUtil()
Method Detail |
---|
public static String encodeForLikeClause(String rawValue, QueryUtil.QuoteChar wrappingQuoteCharacter)
rawValue
- the value to encodewrappingQuoteCharacter
- the character wrapping the term in the final query string
public static String encodeAttributeValue(String rawValue, QueryUtil.QuoteChar wrappingQuoteCharacter)
rawValue
- the value to encodewrappingQuoteCharacter
- the character wrapping the term in the final query string
public static String escapeIllegalXpathSearchChars(String s)
Example:
A search string like 'test?' will run into a ParseException
documented in http://issues.apache.org/jira/browse/JCR-1248
s
- the string to encode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |