net.jinx.db.record
Interface RecordManager


public interface RecordManager


Method Summary
 void close()
          Closes this RecordManager.
 void deleteBlob(long recordID)
          Deletes an existing Blob.
 Blob getBlob(long recordID)
          Gets an existing Blob.
 Blob newBlob()
          Creates a new empty Blob.
 

Method Detail

close

void close()
           throws java.io.IOException
Closes this RecordManager. Any further calls to any of the methods in this RecordManager will throw a java.lang.IllegalStateException.

Throws:
java.io.IOException - if an unexpected I/O error occurs.
java.lang.IllegalStateException - if this RecordManager has already been closed.

newBlob

Blob newBlob()
             throws java.io.IOException
Creates a new empty Blob.

Throws:
java.io.IOException - if an unexpected I/O error occurs.
java.lang.IllegalStateException - if this RecordManager has already been closed.

getBlob

Blob getBlob(long recordID)
             throws java.io.IOException
Gets an existing Blob.

Throws:
java.util.NoSuchElementException - if the blob doesn't exist.
java.io.IOException - if an unexpected I/O error occurs.
java.lang.IllegalStateException - if this RecordManager has already been closed.

deleteBlob

void deleteBlob(long recordID)
                throws java.io.IOException
Deletes an existing Blob.

Throws:
java.util.NoSuchElementException - if the blob doesn't exist.
java.io.IOException - if an unexpected I/O error occurs.
java.lang.IllegalStateException - if this RecordManager has already been closed.