public class LobStorageFrontend extends java.lang.Object implements LobStorageInterface
| Modifier and Type | Field and Description |
|---|---|
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).
|
| Constructor and Description |
|---|
LobStorageFrontend(SessionRemote handler) |
| 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).
|
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 in interface LobStorageInterfacelob - the lobpublic java.io.InputStream getInputStream(long lobId,
long byteCount)
throws java.io.IOException
LobStorageInterfacegetInputStream in interface LobStorageInterfacelobId - the lob idbyteCount - the number of bytes to read, or -1 if not knownjava.io.IOException - on failurepublic java.io.InputStream getInputStream(long lobId,
int tableId,
long byteCount)
throws java.io.IOException
LobStorageInterfacegetInputStream in interface LobStorageInterfacelobId - the lob idtableId - the able idbyteCount - the number of bytes to read, or -1 if not knownjava.io.IOException - on failurepublic boolean isReadOnly()
LobStorageInterfaceisReadOnly in interface LobStorageInterfacepublic ValueLob copyLob(ValueLob old, int tableId)
LobStorageInterfacecopyLob in interface LobStorageInterfaceold - the old lobtableId - the new table idpublic void removeAllForTable(int tableId)
LobStorageInterfaceremoveAllForTable in interface LobStorageInterfacetableId - the table idpublic ValueBlob createBlob(java.io.InputStream in, long maxLength)
LobStorageInterfacecreateBlob in interface LobStorageInterfacein - the input streammaxLength - the maximum length (-1 if not known)public ValueClob createClob(java.io.Reader reader, long maxLength)
createClob in interface LobStorageInterfacereader - the readermaxLength - the maximum length (-1 if not known)