org.universAAL.context.sesame.sail.model
Class NativeLiteral

Package class diagram package NativeLiteral
java.lang.Object
  extended by org.openrdf.model.impl.LiteralImpl
      extended by org.universAAL.context.sesame.sail.model.NativeLiteral
All Implemented Interfaces:
Serializable, org.openrdf.model.Literal, org.openrdf.model.Value, NativeValue

public class NativeLiteral
extends org.openrdf.model.impl.LiteralImpl
implements NativeValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.universAAL.context.sesame.sail.model.NativeValue
UNKNOWN_ID
 
Constructor Summary
protected NativeLiteral(ValueStoreRevision revision, int internalID)
           
  NativeLiteral(ValueStoreRevision revision, String label)
           
  NativeLiteral(ValueStoreRevision revision, String label, int internalID)
           
  NativeLiteral(ValueStoreRevision revision, String label, String lang)
           
  NativeLiteral(ValueStoreRevision revision, String label, String lang, int internalID)
           
  NativeLiteral(ValueStoreRevision revision, String label, org.openrdf.model.URI datatype)
           
  NativeLiteral(ValueStoreRevision revision, String label, org.openrdf.model.URI datatype, int internalID)
           
 
Method Summary
 boolean equals(Object o)
           
 int getInternalID()
          Gets the ID that is used in the native store for this Value.
 ValueStoreRevision getValueStoreRevision()
          Gets the revision of the value store that created this value.
 void setInternalID(int internalID, ValueStoreRevision revision)
          Sets the ID that is used for this value in a specific revision of the value store.
 
Methods inherited from class org.openrdf.model.impl.LiteralImpl
booleanValue, byteValue, calendarValue, decimalValue, doubleValue, floatValue, getDatatype, getLabel, getLanguage, hashCode, integerValue, intValue, longValue, setDatatype, setLabel, setLanguage, shortValue, stringValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.model.Value
stringValue
 

Constructor Detail

NativeLiteral

protected NativeLiteral(ValueStoreRevision revision,
                        int internalID)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label,
                     int internalID)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label,
                     String lang)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label,
                     String lang,
                     int internalID)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label,
                     org.openrdf.model.URI datatype)

NativeLiteral

public NativeLiteral(ValueStoreRevision revision,
                     String label,
                     org.openrdf.model.URI datatype,
                     int internalID)
Method Detail

setInternalID

public void setInternalID(int internalID,
                          ValueStoreRevision revision)
Description copied from interface: NativeValue
Sets the ID that is used for this value in a specific revision of the value store.

Specified by:
setInternalID in interface NativeValue

getValueStoreRevision

public ValueStoreRevision getValueStoreRevision()
Description copied from interface: NativeValue
Gets the revision of the value store that created this value. The value's internal ID is only valid when it's value store revision is equal to the value store's current revision.

Specified by:
getValueStoreRevision in interface NativeValue
Returns:
The revision of the value store that created this value at the time it last set the value's internal ID.

getInternalID

public int getInternalID()
Description copied from interface: NativeValue
Gets the ID that is used in the native store for this Value.

Specified by:
getInternalID in interface NativeValue
Returns:
The value's ID, or NativeValue.UNKNOWN_ID if not yet set.

equals

public boolean equals(Object o)
Specified by:
equals in interface org.openrdf.model.Literal
Overrides:
equals in class org.openrdf.model.impl.LiteralImpl


Copyright © 2014 universAAL Consortium. All Rights Reserved.