org.openanzo.client
Class NamedGraphBase

java.lang.Object
  extended by org.openanzo.model.proxy.ProxyGraph
      extended by org.openanzo.model.proxy.NamedGraphWithMetaData<INamedGraph>
          extended by org.openanzo.client.NamedGraphBase
All Implemented Interfaces:
INamedGraph, INamedGraphWithMetaData, IProxyGraph
Direct Known Subclasses:
LocalGraph, RemoteGraph

public class NamedGraphBase
extends NamedGraphWithMetaData<INamedGraph>

Base class for LocalGraph and RemoteGraph. Contains methods needed to keep reference count for graph and method to close graph.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 void add(org.openrdf.model.Statement... statements)
          Add one or more statements to graph
 void clear()
          Delete all statements in graph
 void delete(org.openrdf.model.Statement... statements)
          Delete a set of statements from graph
 DatasetService getDataSetService()
          Get the parent DatasetService
 INamedGraph getMetaDataGraph()
          Get the MetaDataGraph for the INamedGraph
 INamedGraph getParentGraph()
          Get the graph to which this proxy is proxing information.
 ITransactionQueueManager getTransactionQueueHandler()
          Return the ITransactionQueueManager for this graph
 int getUsageCount()
          Return the reference count
 boolean isClosed()
          Return if graph is closed
 
Methods inherited from class org.openanzo.model.proxy.NamedGraphWithMetaData
createDefault, getNamedGraphUri, setNamedGraphUri, toString
 
Methods inherited from class org.openanzo.model.proxy.ProxyGraph
add, add, close, contains, contains, delete, delete, find, getEventManager, getStatements, getTransactionManager, isEmpty, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.model.INamedGraph
add, add, close, contains, contains, delete, delete, find, getEventManager, getStatements, getTransactionManager, isEmpty, size
 

Method Detail

getUsageCount

public final int getUsageCount()
Return the reference count

Returns:
reference count

getDataSetService

public DatasetService getDataSetService()
Get the parent DatasetService

Returns:
the parent DatasetService

getTransactionQueueHandler

public ITransactionQueueManager getTransactionQueueHandler()
Return the ITransactionQueueManager for this graph

Returns:
the ITransactionQueueManager for this graph

getParentGraph

public INamedGraph getParentGraph()
Description copied from interface: IProxyGraph
Get the graph to which this proxy is proxing information.

Specified by:
getParentGraph in interface IProxyGraph
Overrides:
getParentGraph in class NamedGraphWithMetaData<INamedGraph>
Returns:
parent graph to which this proxy is proxing information

getMetaDataGraph

public INamedGraph getMetaDataGraph()
Description copied from interface: INamedGraphWithMetaData
Get the MetaDataGraph for the INamedGraph

Specified by:
getMetaDataGraph in interface INamedGraphWithMetaData
Overrides:
getMetaDataGraph in class NamedGraphWithMetaData<INamedGraph>
Returns:
MetaDataGraph for the INamedGraph

add

public void add(org.openrdf.model.Statement... statements)
Description copied from interface: INamedGraph
Add one or more statements to graph

Specified by:
add in interface INamedGraph
Overrides:
add in class ProxyGraph
Parameters:
statements - statements to add to graph

delete

public void delete(org.openrdf.model.Statement... statements)
Description copied from interface: INamedGraph
Delete a set of statements from graph

Specified by:
delete in interface INamedGraph
Overrides:
delete in class ProxyGraph
Parameters:
statements - statements to delete from graph

isClosed

public boolean isClosed()
Description copied from interface: INamedGraph
Return if graph is closed

Specified by:
isClosed in interface INamedGraph
Overrides:
isClosed in class NamedGraphWithMetaData<INamedGraph>
Returns:
true if graph is closed

clear

public void clear()
Description copied from interface: INamedGraph
Delete all statements in graph

Specified by:
clear in interface INamedGraph
Overrides:
clear in class ProxyGraph


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