public interface Blob extends Db4oType
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFile()
Deletes the current file stored in this BLOB.
|
java.lang.String |
getFileName()
returns the name of the file the blob was stored to.
|
double |
getStatus()
returns the status after the last read- or write-operation.
|
void |
readFrom(java.io.File file)
reads a file into the db4o system and stores it as a blob.
|
void |
readLocal(java.io.File file)
reads a file into the db4o system and stores it as a blob.
|
void |
writeLocal(java.io.File file)
writes stored blob data to a file.
|
void |
writeTo(java.io.File file)
writes stored blob data to a file.
|
java.lang.String getFileName()
double getStatus()
Status.UNUSED no data was ever stored to the Blob field.Status.AVAILABLE available data was previously stored to the Blob field.Status.QUEUED an operation was triggered and is waiting for it's turn in the Blob queue.Status.COMPLETED the last operation on this field was completed successfully.Status.PROCESSING for internal use only.Status.ERROR the last operation failed.Status constants defined in this interface or a double
between 0 and 1 that signifies the completion of the currently running operation.constantsvoid readFrom(java.io.File file)
throws java.io.IOException
file - the file the blob is to be read from.java.io.IOException - in case of errorsvoid readLocal(java.io.File file)
throws java.io.IOException
file - the file the blob is to be read from.java.io.IOException - in case of errorsvoid writeLocal(java.io.File file)
throws java.io.IOException
file - the file the blob is to be written to.java.io.IOException - in case of errors and in case no blob
data was storedvoid writeTo(java.io.File file)
throws java.io.IOException
file - the file the blob is to be written to.java.io.IOException - in case of errors and in case no blob
data was storedvoid deleteFile()
throws java.io.IOException
java.io.IOException - in case of errors and in case no
data was stored