|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.store.LobStorageFrontend
public class LobStorageFrontend
This factory creates in-memory objects and temporary files. It is used on the client side.
Field Summary | |
---|---|
static int |
TABLE_ID_SESSION_VARIABLE
The table id for session variables (LOBs not assigned to a table). |
static int |
TABLE_TEMP
The table id for temporary objects (not assigned to any object). |
Constructor Summary | |
---|---|
LobStorageFrontend(DataHandler handler)
|
Method Summary | |
---|---|
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. |
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). |
void |
setTable(ValueLobDb lob,
int tableIdSessionVariable)
Set the table reference of this lob. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TABLE_ID_SESSION_VARIABLE
public static final int TABLE_TEMP
Constructor Detail |
---|
public LobStorageFrontend(DataHandler handler)
Method Detail |
---|
public void removeLob(ValueLobDb lob)
LobStorageInterface
removeLob
in interface LobStorageInterface
lob
- the lobpublic java.io.InputStream getInputStream(ValueLobDb lob, byte[] hmac, long byteCount) throws java.io.IOException
getInputStream
in interface LobStorageInterface
lob
- the lobhmac
- the message authentication code (for remote input streams)byteCount
- the number of bytes to read, or -1 if not known
java.io.IOException
public ValueLobDb copyLob(ValueLobDb old, int tableId, long length)
LobStorageInterface
copyLob
in interface LobStorageInterface
old
- the old lobtableId
- the new table idlength
- the length
public void setTable(ValueLobDb lob, int tableIdSessionVariable)
LobStorageInterface
setTable
in interface LobStorageInterface
lob
- the lobtableIdSessionVariable
- the tablepublic void removeAllForTable(int tableId)
LobStorageInterface
removeAllForTable
in interface LobStorageInterface
tableId
- the table idpublic Value createBlob(java.io.InputStream in, long maxLength)
LobStorageInterface
createBlob
in interface LobStorageInterface
in
- the input streammaxLength
- the maximum length (-1 if not known)
public Value createClob(java.io.Reader reader, long maxLength)
createClob
in interface LobStorageInterface
reader
- the readermaxLength
- the maximum length (-1 if not known)
public void init()
LobStorageInterface
init
in interface LobStorageInterface
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |