|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.persistence.AbstractPersistenceManager
public abstract class AbstractPersistenceManager
Implementation PersistenceManager
that handles some
concepts.
Constructor Summary | |
---|---|
AbstractPersistenceManager()
|
Method Summary | |
---|---|
void |
checkConsistency(String[] uuids,
boolean recursive,
boolean fix)
This implementation does nothing. |
NodeState |
createNew(NodeId id)
Creates a new node state instance with the given id. |
PropertyState |
createNew(PropertyId id)
Creates a new property state instance with the given id. |
protected abstract void |
destroy(NodeReferences refs)
Destroy a node references object. |
protected abstract void |
destroy(NodeState state)
Destroy a node state. |
protected abstract void |
destroy(PropertyState state)
Destroy a property state. |
void |
store(ChangeLog changeLog)
Right now, this iterates over all items in the changelog and calls the individual methods that handle single item states or node references objects. |
protected abstract void |
store(NodeReferences refs)
Store a references object. |
protected abstract void |
store(NodeState state)
Store a node state. |
protected abstract void |
store(PropertyState state)
Store a property state. |
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.persistence.PersistenceManager |
---|
close, exists, exists, existsReferencesTo, init, load, load, loadReferencesTo |
Constructor Detail |
---|
public AbstractPersistenceManager()
Method Detail |
---|
public NodeState createNew(NodeId id)
createNew
in interface PersistenceManager
id
- node id
public PropertyState createNew(PropertyId id)
createNew
in interface PersistenceManager
id
- property id
public void store(ChangeLog changeLog) throws ItemStateException
store
in interface PersistenceManager
changeLog
- change log containing states that were changed
ItemStateException
- if the changes could not be savedpublic void checkConsistency(String[] uuids, boolean recursive, boolean fix)
checkConsistency
in interface PersistenceManager
uuids
- list of UUIDs of nodes to be checked. if null, all nodes will
be checkedrecursive
- if true, the tree(s) below the given node(s) will be traversed
and checked as wellfix
- if true, any problems found that can be repaired will be
repaired. if false, no data will be modified, instead all
inconsistencies will only get loggedprotected abstract void store(NodeState state) throws ItemStateException
state
- node state to store
ItemStateException
- if an error occursprotected abstract void store(PropertyState state) throws ItemStateException
state
- property state to store
ItemStateException
- if an error occursprotected abstract void store(NodeReferences refs) throws ItemStateException
refs
- references object to store
ItemStateException
- if an error occursprotected abstract void destroy(NodeState state) throws ItemStateException
state
- node state to destroy
ItemStateException
- if an error occursprotected abstract void destroy(PropertyState state) throws ItemStateException
state
- property state to destroy
ItemStateException
- if an error occursprotected abstract void destroy(NodeReferences refs) throws ItemStateException
refs
- node references object to destroy
ItemStateException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |