org.egothor.repository
Class BijectInt2String

java.lang.Object
  extended by org.egothor.repository.BijectInt2StringAppender
      extended by org.egothor.repository.BijectInt2String
All Implemented Interfaces:
URIRepository, URIRepositoryAppender

public class BijectInt2String
extends BijectInt2StringAppender
implements URIRepository

This class represents the database of URIs and their unique identificators.

Author:
Leo Galambos

Field Summary
 
Fields inherited from class org.egothor.repository.BijectInt2StringAppender
repoURIInt
 
Constructor Summary
BijectInt2String(java.lang.String name, int uris_cache)
           
 
Method Summary
 void close()
           
 void destroy()
          Destroy repository.
 java.net.URI get(long id)
          Retrieves the URI of a given id, null when the id is not assigned yet.
 
Methods inherited from class org.egothor.repository.BijectInt2StringAppender
append, resolve, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.egothor.repository.URIRepository
resolve
 
Methods inherited from interface org.egothor.repository.URIRepositoryAppender
append, size
 

Constructor Detail

BijectInt2String

public BijectInt2String(java.lang.String name,
                        int uris_cache)
                 throws com.sleepycat.db.DatabaseException,
                        java.io.FileNotFoundException,
                        java.io.UnsupportedEncodingException
Throws:
com.sleepycat.db.DatabaseException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
Method Detail

close

public void close()
Specified by:
close in interface URIRepositoryAppender
Overrides:
close in class BijectInt2StringAppender

destroy

public void destroy()
Description copied from interface: URIRepository
Destroy repository.

Specified by:
destroy in interface URIRepository

get

public java.net.URI get(long id)
                 throws DatabaseStorageException
Retrieves the URI of a given id, null when the id is not assigned yet.

Specified by:
get in interface URIRepository
Throws:
DatabaseStorageException