org.openanzo.server.repository.structures
Class NamedGraph.Factory

java.lang.Object
  extended by org.openanzo.server.repository.structures.NamedGraph.Factory
All Implemented Interfaces:
CachableResourceFactory<NamedGraph>
Enclosing class:
NamedGraph

public static class NamedGraph.Factory
extends java.lang.Object
implements CachableResourceFactory<NamedGraph>

Factory to create NamedGraph


Constructor Summary
NamedGraph.Factory()
           
 
Method Summary
 NamedGraph getResource(RepositoryConnection repositoryConnection, java.lang.Long id, boolean forceCreate)
          Creates an instance of a CachableResource via Id lookup.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedGraph.Factory

public NamedGraph.Factory()
Method Detail

getResource

public NamedGraph getResource(RepositoryConnection repositoryConnection,
                              java.lang.Long id,
                              boolean forceCreate)
                       throws AnzoException
Description copied from interface: CachableResourceFactory
Creates an instance of a CachableResource via Id lookup.

Specified by:
getResource in interface CachableResourceFactory<NamedGraph>
Parameters:
repositoryConnection - RepositoryConnection to run queries against
id - Unique id of the resource to fetch
forceCreate - Create resource if not present
Returns:
an instance of a cached object
Throws:
AnzoException


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