public class LobStorageFrontend extends Object implements LobStorageInterface
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TABLE_ID_SESSION_VARIABLE
The table id for session variables (LOBs not assigned to a table).
|
static int |
TABLE_RESULT
The table id for result sets.
|
static int |
TABLE_TEMP
The table id for temporary objects (not assigned to any object).
|
| 构造器和说明 |
|---|
LobStorageFrontend(SessionRemote handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final int TABLE_ID_SESSION_VARIABLE
public static final int TABLE_TEMP
public static final int TABLE_RESULT
public LobStorageFrontend(SessionRemote handler)
public void removeLob(ValueLob lob)
LobStorageInterfaceremoveLob 在接口中 LobStorageInterfacelob - the lobpublic InputStream getInputStream(long lobId, long byteCount) throws IOException
LobStorageInterfacegetInputStream 在接口中 LobStorageInterfacelobId - the lob idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failurepublic InputStream getInputStream(long lobId, int tableId, long byteCount) throws IOException
LobStorageInterfacegetInputStream 在接口中 LobStorageInterfacelobId - the lob idtableId - the able idbyteCount - the number of bytes to read, or -1 if not knownIOException - on failurepublic boolean isReadOnly()
LobStorageInterfaceisReadOnly 在接口中 LobStorageInterfacepublic ValueLob copyLob(ValueLob old, int tableId)
LobStorageInterfacecopyLob 在接口中 LobStorageInterfaceold - the old lobtableId - the new table idpublic void removeAllForTable(int tableId)
LobStorageInterfaceremoveAllForTable 在接口中 LobStorageInterfacetableId - the table idpublic ValueBlob createBlob(InputStream in, long maxLength)
LobStorageInterfacecreateBlob 在接口中 LobStorageInterfacein - the input streammaxLength - the maximum length (-1 if not known)public ValueClob createClob(Reader reader, long maxLength)
createClob 在接口中 LobStorageInterfacereader - the readermaxLength - the maximum length (-1 if not known)Copyright © 2022. All rights reserved.