org.planx.xmlstore.stores
Class ReplicatorXMLStore

java.lang.Object
  extended by org.planx.xmlstore.stores.AbstractXMLStore
      extended by org.planx.xmlstore.stores.ReplicatorXMLStore
All Implemented Interfaces:
XMLStore

public class ReplicatorXMLStore
extends AbstractXMLStore

Author:
Henning Niss

Field Summary
 
Fields inherited from class org.planx.xmlstore.stores.AbstractXMLStore
xmlstore
 
Constructor Summary
ReplicatorXMLStore(LinkedList xmlstores)
           
 
Method Summary
protected  void checkClosed()
           
 void close()
          The method is used to let the XMLStore properly commit all data to the underlying ressource, release resources, and so forth.
 Node load(Reference vref)
          Resolves any RelativeReferences and calls AbstractXMLStore.resolvedLoad(org.planx.xmlstore.Reference).
 Reference save(Node n)
          Saves the XML data represented by the specified Node.
protected  void setLoadResult(Node node)
           
protected  void setSaveResult(Reference vref)
           
 
Methods inherited from class org.planx.xmlstore.stores.AbstractXMLStore
resolvedLoad, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicatorXMLStore

public ReplicatorXMLStore(LinkedList xmlstores)
Method Detail

close

public void close()
Description copied from interface: XMLStore
The method is used to let the XMLStore properly commit all data to the underlying ressource, release resources, and so forth. Once close has been issued on an XMLStore, the store is no longer available for handling requests. Any subsequent request to the store will result in an exception being thrown. An XMLStore implementation has to ensure that this happens.

Specified by:
close in interface XMLStore
Overrides:
close in class AbstractXMLStore

checkClosed

protected void checkClosed()
Overrides:
checkClosed in class AbstractXMLStore

save

public Reference save(Node n)
Description copied from interface: XMLStore
Saves the XML data represented by the specified Node. The method returns a unique location independent reference, which can be used to load the node, when needed.

Specified by:
save in interface XMLStore
Overrides:
save in class AbstractXMLStore
Parameters:
n - representing XML data in the form of semi-structured tree data
Returns:
a reference to the saved node/tree

setSaveResult

protected void setSaveResult(Reference vref)

load

public Node load(Reference vref)
Description copied from class: AbstractXMLStore
Resolves any RelativeReferences and calls AbstractXMLStore.resolvedLoad(org.planx.xmlstore.Reference).

Specified by:
load in interface XMLStore
Overrides:
load in class AbstractXMLStore
Parameters:
vref - the Reference to the data
Returns:
node representing the loaded XML data

setLoadResult

protected void setLoadResult(Node node)


Copyright © 2010. All Rights Reserved.