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

java.lang.Object
  extended byorg.openrdf.model.impl.LiteralImpl
      extended byorg.openrdf.sesame.sailimpl.rdbms.model.IdLiteral
All Implemented Interfaces:
Comparable, IdValue, Literal, Serializable, Value

public class IdLiteral
extends LiteralImpl
implements IdValue

See Also:
Serialized Form

Constructor Summary
IdLiteral(RdfSource source, String label, int internalId)
           
IdLiteral(RdfSource source, String label, String lang, int internalId)
           
IdLiteral(RdfSource source, String label, URI datatype, int internalId)
           
 
Method Summary
 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.
 void setInternalId(int internalId)
           
 
Methods inherited from class org.openrdf.model.impl.LiteralImpl
compareTo, equals, getDatatype, getLabel, getLanguage, 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

IdLiteral

public IdLiteral(RdfSource source,
                 String label,
                 int internalId)

IdLiteral

public IdLiteral(RdfSource source,
                 String label,
                 String lang,
                 int internalId)

IdLiteral

public IdLiteral(RdfSource source,
                 String label,
                 URI datatype,
                 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)

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 LiteralImpl
Throws:
GraphException


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