org.dftproject.genesis.core.data
Class DataView

java.lang.Object
  extended by org.dftproject.genesis.core.data.DataView

public class DataView
extends java.lang.Object

DataView provides a view on a subset of the data in the store.

Currently, that subset is all the data in the store.

DataView also caches resource nodes.


Constructor Summary
protected DataView(java.lang.String store)
          Creates a view on the given store.
 
Method Summary
 ILiteralNode getLiteral(java.lang.String value)
          Returns the literal with the given value.
 DataResourceNode getResource(java.lang.String uri)
          Returns the resource with the given name.
 DataResourceNode getResource(java.net.URL uri)
          Returns the resource with the given name.
 java.lang.String getStatementTableName()
          Returns the name of the statement table for this view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataView

protected DataView(java.lang.String store)
Creates a view on the given store.

Parameters:
store - the data store
Method Detail

getStatementTableName

public java.lang.String getStatementTableName()
Returns the name of the statement table for this view.

Returns:
the name of the statement table

getResource

public DataResourceNode getResource(java.lang.String uri)
Returns the resource with the given name.

Parameters:
uri - the name of the resource to return
Returns:
the resource

getResource

public DataResourceNode getResource(java.net.URL uri)
Returns the resource with the given name.

Parameters:
uri - the name of the resource to return
Returns:
the resource

getLiteral

public ILiteralNode getLiteral(java.lang.String value)
Returns the literal with the given value.

Parameters:
value - the value of the literal to return
Returns:
the literal