org.openanzo.server.repository.cache
Interface CachableResource

All Known Implementing Classes:
ACI, NamedGraph

public interface CachableResource

Methods required by the ResourceCache to manage the caching of a data object representing a RDF resource that has both a URI and an id.

Author:
Joe Betz

Method Summary
 java.lang.Long getId()
          Gets the id of the data object.
 org.openrdf.model.URI getURI()
          Gets the URI for the data object.
 boolean isStored()
          True if the data object is already persisted to the repository.
 

Method Detail

isStored

boolean isStored()
True if the data object is already persisted to the repository.

Returns:
Is data object persisted in repository

getId

java.lang.Long getId()
                     throws AnzoException
Gets the id of the data object. This must be available after the object is loaded, or if it has been created but not presisted, after allocateId() is called.

Returns:
Id of the data object
Throws:
AnzoException

getURI

org.openrdf.model.URI getURI()
Gets the URI for the data object.

Returns:
URI of the data object


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.