public interface LobStorageInterface
| Modifier and Type | Method and Description |
|---|---|
ValueLob |
copyLob(ValueLob old,
int tableId)
Copy a lob.
|
ValueBlob |
createBlob(java.io.InputStream in,
long maxLength)
Create a BLOB object.
|
ValueClob |
createClob(java.io.Reader reader,
long maxLength)
Create a CLOB object.
|
java.io.InputStream |
getInputStream(long lobId,
int tableId,
long byteCount)
Get the input stream for the given lob
|
java.io.InputStream |
getInputStream(long lobId,
long byteCount)
Get the input stream for the given lob, only called on server side of a TCP connection.
|
boolean |
isReadOnly()
Whether the storage is read-only
|
void |
removeAllForTable(int tableId)
Remove all LOBs for this table.
|
void |
removeLob(ValueLob lob)
Delete a LOB (from the database, if it is stored there).
|
ValueClob createClob(java.io.Reader reader, long maxLength)
reader - the readermaxLength - the maximum length (-1 if not known)ValueBlob createBlob(java.io.InputStream in, long maxLength)
in - the input streammaxLength - the maximum length (-1 if not known)ValueLob copyLob(ValueLob old, int tableId)
old - the old lobtableId - the new table idjava.io.InputStream getInputStream(long lobId,
long byteCount)
throws java.io.IOException
lobId - the lob idbyteCount - the number of bytes to read, or -1 if not knownjava.io.IOException - on failurejava.io.InputStream getInputStream(long lobId,
int tableId,
long byteCount)
throws java.io.IOException
lobId - the lob idtableId - the able idbyteCount - the number of bytes to read, or -1 if not knownjava.io.IOException - on failurevoid removeLob(ValueLob lob)
lob - the lobvoid removeAllForTable(int tableId)
tableId - the table idboolean isReadOnly()