com.hp.hpl.mesa.rdf.jena.rdb
Class DBIDInt

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.rdb.DBIDInt
All Implemented Interfaces:
IDBID

public class DBIDInt
extends java.lang.Object
implements IDBID

Interface for database identifiers. Most RDF entities (resources, literals, statements) have an associated database index. These are cached using RDB-specific variants of the jena "impl" classes. This can avoid some redundant database lookup.

This variant just uses integers allocated by the database driver as indices. This would be sufficient for databases up to 4x10^9 statements.

Version:
$Revision: 1.2 $ on $Date: 2001/11/26 18:20:08 $
Author:
Dave Reynolds

Constructor Summary
DBIDInt(int id)
          constructor
DBIDInt(java.lang.Integer id)
          constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Equality is based on the underlying object
 java.lang.Object getID()
          get the identifier as an Integer, fits calling signature of our generic sql interface.
 int getIntID()
          get the identifier as a plain int
 int hashCode()
          Hash is based on the underlying object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBIDInt

public DBIDInt(int id)
constructor

DBIDInt

public DBIDInt(java.lang.Integer id)
constructor
Method Detail

getID

public java.lang.Object getID()
get the identifier as an Integer, fits calling signature of our generic sql interface.
Specified by:
getID in interface IDBID

getIntID

public int getIntID()
get the identifier as a plain int

hashCode

public int hashCode()
Hash is based on the underlying object
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Equality is based on the underlying object
Overrides:
equals in class java.lang.Object


Copyright © 2001 Hewlett-Packard. All Rights Reserved.