com.ontimize.dms.jcr.query
Class XPathQueryManager
java.lang.Object
com.ontimize.dms.jcr.query.XPathQueryManager
- All Implemented Interfaces:
- XPathQuery
public class XPathQueryManager
- extends java.lang.Object
- implements XPathQuery
|
Method Summary |
static XPathQuery |
create(Session session)
|
NodeIterator |
getQuery(java.lang.String xPath)
Returns query result. |
NodeIterator |
getQuery(java.lang.String path,
java.util.Map fields,
boolean recursive)
Creates a list of nodes from the given path. |
protected Session |
getSession()
|
protected void |
setSession(Session session)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSG_SESSION_NULL
protected static final java.lang.String MSG_SESSION_NULL
- See Also:
- Constant Field Values
MSG_QUERY_TIME
protected static final java.lang.String MSG_QUERY_TIME
- See Also:
- Constant Field Values
create
public static XPathQuery create(Session session)
getQuery
public NodeIterator getQuery(java.lang.String xPath)
throws RepositoryException,
InvalidQueryException
- Description copied from interface:
XPathQuery
Returns query result.
- Specified by:
getQuery in interface XPathQuery
- Parameters:
xPath - query to perform.
- Returns:
- Query NodeIterator
- Throws:
RepositoryException - if JCR exception ocurrs.
InvalidQueryException - if XPath query is invalid.
getQuery
public NodeIterator getQuery(java.lang.String path,
java.util.Map fields,
boolean recursive)
throws RepositoryException,
InvalidQueryException
- Description copied from interface:
XPathQuery
Creates a list of nodes from the given path.
- Specified by:
getQuery in interface XPathQuery
recursive - Search in the node childs. Base node is excluded.
- Returns:
-
- Throws:
RepositoryException
InvalidQueryException
getSession
protected Session getSession()
setSession
protected void setSession(Session session)