com.notuvy.xml
Class BaseStorage
java.lang.Object
com.notuvy.xml.BaseStorage
- All Implemented Interfaces:
- XmlStorable
- Direct Known Subclasses:
- FileStorage
public abstract class BaseStorage
- extends Object
- implements XmlStorable
The abstract base logic for persisting SimpleJdom.
- Author:
- murali
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
fObject
protected final SimpleJdom fObject
BaseStorage
protected BaseStorage(SimpleJdom pObject)
getObject
public SimpleJdom getObject()
isOnlySaveIfChanged
public boolean isOnlySaveIfChanged()
- Specified by:
isOnlySaveIfChanged
in interface XmlStorable
setOnlySaveIfChanged
public void setOnlySaveIfChanged(boolean pOnlySaveIfChanged)
- Specified by:
setOnlySaveIfChanged
in interface XmlStorable
skipSave
protected boolean skipSave()
- There is one situatin where we do a NOOP. That is if we are checking for
changed content, and the contents have not changed. In that case just return
'success'. Otherwise return the status of the save operation.
- Returns:
- boolean flag whether the actual save operation should be skipped.
takeContentSnapshot
protected void takeContentSnapshot()
Copyright © 2013. All Rights Reserved.