public interface LobStorageInterface
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
close()
Close LobStorage and release all resources
|
ValueLob |
copyLob(ValueLob old,
int tableId)
Copy a lob.
|
ValueBlob |
createBlob(InputStream in,
long maxLength)
Create a BLOB object.
|
ValueClob |
createClob(Reader reader,
long maxLength)
Create a CLOB object.
|
InputStream |
getInputStream(long lobId,
int tableId,
long byteCount)
Get the input stream for the given lob
|
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(Reader reader, long maxLength)
reader - the readermaxLength - the maximum length (-1 if not known)ValueBlob createBlob(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 idInputStream getInputStream(long lobId, long byteCount) throws IOException
lobId - the lob idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failureInputStream getInputStream(long lobId, int tableId, long byteCount) throws IOException
lobId - the lob idtableId - the able idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failurevoid removeLob(ValueLob lob)
lob - the lobvoid removeAllForTable(int tableId)
tableId - the table idboolean isReadOnly()
default void close()
Copyright © 2022. All rights reserved.