|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.OnWorkspaceInconsistency
public abstract class OnWorkspaceInconsistency
OnWorkspaceInconsistency defines an interface to handle
workspace inconsistencies.
| Field Summary | |
|---|---|
static OnWorkspaceInconsistency |
FAIL
An handler that simply logs the path of the parent node and the name of the missing child node and then re-throws the exception. |
protected static Map<String,OnWorkspaceInconsistency> |
INSTANCES
|
| Constructor Summary | |
|---|---|
protected |
OnWorkspaceInconsistency(String name)
Protected constructor. |
| Method Summary | |
|---|---|
static OnWorkspaceInconsistency |
fromString(String name)
Returns the OnWorkspaceInconsistency with the given
name. |
String |
getName()
|
abstract void |
handleMissingChildNode(NoSuchItemStateException exception,
QueryHandler handler,
Path path,
NodeState node,
ChildNodeEntry child)
Handle a missing child node state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OnWorkspaceInconsistency FAIL
protected static final Map<String,OnWorkspaceInconsistency> INSTANCES
| Constructor Detail |
|---|
protected OnWorkspaceInconsistency(String name)
name - a unique name for this handler.| Method Detail |
|---|
public String getName()
OnWorkspaceInconsistency.
public static OnWorkspaceInconsistency fromString(String name)
throws IllegalArgumentException
OnWorkspaceInconsistency with the given
name.
name - the name of a OnWorkspaceInconsistency.
OnWorkspaceInconsistency with the given
name.
IllegalArgumentException - if name is not a well-known
OnWorkspaceInconsistency name.
public abstract void handleMissingChildNode(NoSuchItemStateException exception,
QueryHandler handler,
Path path,
NodeState node,
ChildNodeEntry child)
throws ItemStateException,
RepositoryException
exception - the exception that was thrown when the query handler
tried to load the child node state.handler - the query handler.path - the path of the parent node.node - the parent node state.child - the child node entry, for which no node state could be
found.
ItemStateException - if an error occurs while handling the missing
child node state. This may also be the passed
exception instance.
RepositoryException - if another error occurs not related to item
state reading.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||