org.egothor.repository
Interface URIRepository

All Superinterfaces:
URIRepositoryAppender
All Known Implementing Classes:
BijectInt2String

public interface URIRepository
extends URIRepositoryAppender

Author:
galambos

Method Summary
 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.
 long resolve(java.net.URI uri)
          Retrives long value (ID) assigned to the URI by some previous call of URIRepositoryAppender.append(java.net.URI) method, -1 iff the URI is unknown to this base.
 
Methods inherited from interface org.egothor.repository.URIRepositoryAppender
append, close, size
 

Method Detail

get

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

Throws:
DatabaseStorageException

resolve

long resolve(java.net.URI uri)
             throws DatabaseStorageException
Retrives long value (ID) assigned to the URI by some previous call of URIRepositoryAppender.append(java.net.URI) method, -1 iff the URI is unknown to this base.

Throws:
DatabaseStorageException

destroy

void destroy()
Destroy repository.