|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.AbstractQueryHandler
public abstract class AbstractQueryHandler
Implements default behaviour for some methods of QueryHandler.
| Constructor Summary | |
|---|---|
AbstractQueryHandler()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doInit()
This method must be implemented by concrete sub classes and will be called from init(org.apache.jackrabbit.core.query.QueryHandlerContext). |
QueryHandlerContext |
getContext()
Returns the context for this query handler. |
java.lang.String |
getIdleTime()
|
java.lang.String |
getOnWorkspaceInconsistency()
|
OnWorkspaceInconsistency |
getOnWorkspaceInconsistencyHandler()
|
java.lang.String |
getQueryClass()
|
void |
init(QueryHandlerContext context)
Initializes this query handler by setting all properties in this class with appropriate parameter values. |
void |
setIdleTime(java.lang.String idleTime)
Sets the query handler idle time. |
void |
setOnWorkspaceInconsistency(java.lang.String name)
Sets the OnWorkspaceInconsistency handler with the given name. |
void |
setQueryClass(java.lang.String queryClass)
Sets the name of the query class to use. |
void |
updateNodes(NodeIdIterator remove,
NodeStateIterator add)
This default implementation calls the individual QueryHandler.deleteNode(org.apache.jackrabbit.core.NodeId)
and QueryHandler.addNode(org.apache.jackrabbit.core.state.NodeState) methods
for each entry in the iterators. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.core.query.QueryHandler |
|---|
addNode, close, createExecutableQuery, createExecutableQuery, deleteNode |
| Constructor Detail |
|---|
public AbstractQueryHandler()
| Method Detail |
|---|
public final void init(QueryHandlerContext context)
throws java.io.IOException
init in interface QueryHandlercontext - the context for this query handler.
java.io.IOException - if an error occurs during initialization.
protected abstract void doInit()
throws java.io.IOException
init(org.apache.jackrabbit.core.query.QueryHandlerContext).
java.io.IOExceptionpublic QueryHandlerContext getContext()
getContext in interface QueryHandlerQueryHandlerContext instance for this
QueryHandler.
public void updateNodes(NodeIdIterator remove,
NodeStateIterator add)
throws javax.jcr.RepositoryException,
java.io.IOException
QueryHandler.deleteNode(org.apache.jackrabbit.core.NodeId)
and QueryHandler.addNode(org.apache.jackrabbit.core.state.NodeState) methods
for each entry in the iterators. First the nodes to remove are processed
then the nodes to add.
updateNodes in interface QueryHandlerremove - uuids of nodes to remove.add - NodeStates to add.
javax.jcr.RepositoryException - if an error occurs while indexing a node.
java.io.IOException - if an error occurs while updating the index.public OnWorkspaceInconsistency getOnWorkspaceInconsistencyHandler()
OnWorkspaceInconsistency handler.public void setOnWorkspaceInconsistency(java.lang.String name)
OnWorkspaceInconsistency handler with the given name.
Currently the only valid name is:
fail
name - the name of a OnWorkspaceInconsistency handler.public java.lang.String getOnWorkspaceInconsistency()
OnWorkspaceInconsistency.public void setQueryClass(java.lang.String queryClass)
queryClass - the name of the query class to use.public java.lang.String getQueryClass()
public void setIdleTime(java.lang.String idleTime)
idleTime - the query handler idle time.public java.lang.String getIdleTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||