public interface LobStorageInterface
| Modifier and Type | Method and Description |
|---|---|
ValueLobDb |
copyLob(ValueLobDb old,
int tableId,
long length)
Copy a lob.
|
Value |
createBlob(java.io.InputStream in,
long maxLength)
Create a BLOB object.
|
Value |
createClob(java.io.Reader reader,
long maxLength)
Create a CLOB object.
|
java.io.InputStream |
getInputStream(ValueLobDb lob,
byte[] hmac,
long byteCount)
Get the input stream for the given lob.
|
void |
init()
Initialize the lob storage.
|
boolean |
isReadOnly()
Whether the storage is read-only
|
void |
removeAllForTable(int tableId)
Remove all LOBs for this table.
|
void |
removeLob(ValueLobDb lob)
Delete a LOB (from the database, if it is stored there).
|
Value createClob(java.io.Reader reader, long maxLength)
reader - the readermaxLength - the maximum length (-1 if not known)Value createBlob(java.io.InputStream in, long maxLength)
in - the input streammaxLength - the maximum length (-1 if not known)ValueLobDb copyLob(ValueLobDb old, int tableId, long length)
old - the old lobtableId - the new table idlength - the lengthjava.io.InputStream getInputStream(ValueLobDb lob, byte[] hmac, long byteCount) throws java.io.IOException
lob - the lob idhmac - the message authentication code (for remote input streams)byteCount - the number of bytes to read, or -1 if not knownjava.io.IOExceptionvoid removeLob(ValueLobDb lob)
lob - the lobvoid removeAllForTable(int tableId)
tableId - the table idvoid init()
boolean isReadOnly()