org.apache.jackrabbit.ocm.query
Interface Filter
- All Known Implementing Classes:
- FilterImpl
public interface Filter
JCR Filter interface.
- Author:
- Christophe Lombart
Method Summary |
Filter |
addAndFilter(Filter filter)
|
Filter |
addBetween(String arg0,
Object arg1,
Object arg2)
|
Filter |
addContains(String scope,
String fullTextSearch)
Search content based on a fullTextSearch. |
Filter |
addEqualTo(String arg0,
Object arg1)
|
Filter |
addGreaterOrEqualThan(String arg0,
Object arg1)
|
Filter |
addGreaterThan(String arg0,
Object arg1)
|
Filter |
addIsNull(String arg0)
|
Filter |
addJCRExpression(String jcrExpression)
|
Filter |
addLessOrEqualThan(String arg0,
Object arg1)
|
Filter |
addLessThan(String arg0,
Object arg1)
|
Filter |
addLike(String arg0,
Object arg1)
|
Filter |
addNotEqualTo(String arg0,
Object arg1)
|
Filter |
addNotNull(String arg0)
|
Filter |
addOrFilter(Filter arg0)
|
Filter |
addOrFilter(String fieldAttributeName,
String[] valueList)
|
Class |
getFilterClass()
|
String |
getNodeName()
Get the node name used in the jcr expression |
String |
getScope()
Get the filter scope. |
void |
setNodeName(String nodeName)
Set the node name used to build the jcr search expression. |
void |
setScope(String scope)
Set the filter scope. |
setScope
void setScope(String scope)
- Set the filter scope. The scope is an Node path specifying where to search in the content tree.
For example,
/mynode/mysecondnode/', the search engine will search on child objects in the /mynode/mysecondnode
/mynode/mysecondnode//', the search engine will search on desncendant objects in the /mynode/mysecondnode (the complete subnode tree)
- Parameters:
scope
- The filter scope
getScope
String getScope()
- Get the filter scope.
- Returns:
- The filter scope
setNodeName
void setNodeName(String nodeName)
- Set the node name used to build the jcr search expression.
- Parameters:
nodeName
-
getNodeName
String getNodeName()
- Get the node name used in the jcr expression
- Returns:
addContains
Filter addContains(String scope,
String fullTextSearch)
- Search content based on a fullTextSearch.
Depending on the full text search engine, you can also filter on properties.
- Parameters:
scope
- either a a jcr node or propserty. If a node is used, all properties of this node are searche (following the internal indexfullTextSearch
- The full text search string
addBetween
Filter addBetween(String arg0,
Object arg1,
Object arg2)
addEqualTo
Filter addEqualTo(String arg0,
Object arg1)
addGreaterOrEqualThan
Filter addGreaterOrEqualThan(String arg0,
Object arg1)
addGreaterThan
Filter addGreaterThan(String arg0,
Object arg1)
addLessOrEqualThan
Filter addLessOrEqualThan(String arg0,
Object arg1)
addLessThan
Filter addLessThan(String arg0,
Object arg1)
addLike
Filter addLike(String arg0,
Object arg1)
addNotEqualTo
Filter addNotEqualTo(String arg0,
Object arg1)
addNotNull
Filter addNotNull(String arg0)
addIsNull
Filter addIsNull(String arg0)
addOrFilter
Filter addOrFilter(String fieldAttributeName,
String[] valueList)
addOrFilter
Filter addOrFilter(Filter arg0)
addAndFilter
Filter addAndFilter(Filter filter)
addJCRExpression
Filter addJCRExpression(String jcrExpression)
getFilterClass
Class getFilterClass()
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.