org.openrdf.sesame.sailimpl.rdbms.model
Class IdBNode

java.lang.Object
  extended byorg.openrdf.model.impl.BNodeImpl
      extended byorg.openrdf.sesame.sailimpl.rdbms.model.IdBNode
All Implemented Interfaces:
BNode, Comparable, IdResource, IdValue, Resource, Serializable, Value

public class IdBNode
extends BNodeImpl
implements IdResource

See Also:
Serialized Form

Constructor Summary
IdBNode(RdfSource source, String nodeID, int internalId)
           
 
Method Summary
 void addProperty(URI property, Value value)
          Adds a property to this Resource in the RDF graph.
 int getInternalId()
          Gets the ID that is used in the RDBMS for this Value.
 StatementIterator getObjectStatements()
          Gets all statements from the RDF graph for which this value is the object.
 RdfSource getRdfSource()
          Returns the RdfSource that contains this IdValue.
 StatementIterator getSubjectStatements()
          Gets all statements from the RDF graph for which this resource is the subject.
 void setInternalId(int internalId)
           
 
Methods inherited from class org.openrdf.model.impl.BNodeImpl
compareTo, equals, getID, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

IdBNode

public IdBNode(RdfSource source,
               String nodeID,
               int internalId)
Method Detail

getRdfSource

public RdfSource getRdfSource()
Description copied from interface: IdValue
Returns the RdfSource that contains this IdValue. IDs are only unique within a single repository, but an application could use several repositories at the same time, passing IdValue generated by one Sail to another Sail. In such situations, the ID of the first Sail cannot be used by the second Sail.

Specified by:
getRdfSource in interface IdValue

getInternalId

public int getInternalId()
Description copied from interface: IdValue
Gets the ID that is used in the RDBMS for this Value.

Specified by:
getInternalId in interface IdValue

setInternalId

public void setInternalId(int internalId)

getSubjectStatements

public StatementIterator getSubjectStatements()
                                       throws GraphException
Description copied from interface: Resource
Gets all statements from the RDF graph for which this resource is the subject.

Specified by:
getSubjectStatements in interface Resource
Overrides:
getSubjectStatements in class BNodeImpl
Throws:
GraphException

getObjectStatements

public StatementIterator getObjectStatements()
                                      throws GraphException
Description copied from interface: Value
Gets all statements from the RDF graph for which this value is the object.

Specified by:
getObjectStatements in interface Value
Overrides:
getObjectStatements in class BNodeImpl
Throws:
GraphException

addProperty

public void addProperty(URI property,
                        Value value)
                 throws GraphException
Description copied from interface: Resource
Adds a property to this Resource in the RDF graph. The result is that a statement of the form (this, property, value) is added.

Specified by:
addProperty in interface Resource
Overrides:
addProperty in class BNodeImpl
Throws:
GraphException


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.