org.planx.xmlstore.stores
Class ReadCacheXMLStore

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

public class ReadCacheXMLStore
extends AbstractXMLStore

Author:
Kasper Bøgebjerg, Henning Niss

Field Summary
 
Fields inherited from class org.planx.xmlstore.stores.AbstractXMLStore
xmlstore
 
Constructor Summary
ReadCacheXMLStore(XMLStore xmlstore)
           
 
Method Summary
 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).
 
Methods inherited from class org.planx.xmlstore.stores.AbstractXMLStore
checkClosed, resolvedLoad, save, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadCacheXMLStore

public ReadCacheXMLStore(XMLStore xmlstore)
Method Detail

load

public Node load(Reference vref)
          throws IOException,
                 UnknownReferenceException
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
Throws:
IOException - if an error occurs during disk, network, etc access
UnknownReferenceException - if the data referenced is not stored in the XMLStore or the Reference is of a type not supported by the XMLStore

close

public void close()
           throws IOException
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
Throws:
IOException - if it is not possible to properly close the store


Copyright © 2010. All Rights Reserved.