|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.LobStorage
public class LobStorage
This class stores LOB objects in the database.
| Nested Class Summary | |
|---|---|
static class |
LobStorage.LobInputStream
An input stream that reads from a LOB. |
| Field Summary | |
|---|---|
static int |
TABLE_ID_SESSION_VARIABLE
The 'table id' to use for session variables. |
| Constructor Summary | |
|---|---|
LobStorage(java.sql.Connection newConn)
|
|
| Method Summary | |
|---|---|
long |
addLob(java.io.InputStream in,
long maxLength,
int table)
Store the LOB in the database. |
static ValueLob |
createBlob(java.io.InputStream in,
long maxLength,
DataHandler handler)
Create a BLOB object. |
static ValueLob |
createClob(java.io.Reader reader,
long maxLength,
DataHandler handler)
Create a CLOB object. |
static ValueLob |
createSmallLob(int type,
byte[] small)
Create a LOB object that fits in memory. |
static void |
removeAllForTable(DataHandler handler,
int tableId)
Remove all LOBs for this table. |
| 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
| Constructor Detail |
|---|
public LobStorage(java.sql.Connection newConn)
| Method Detail |
|---|
public static void removeAllForTable(DataHandler handler,
int tableId)
handler - the data handlertableId - the table id
public static ValueLob createSmallLob(int type,
byte[] small)
type - the value typesmall - the byte array
public static ValueLob createBlob(java.io.InputStream in,
long maxLength,
DataHandler handler)
in - the input streammaxLength - the maximum length (-1 if not known)handler - the data handler
public static ValueLob createClob(java.io.Reader reader,
long maxLength,
DataHandler handler)
reader - the readermaxLength - the maximum length (-1 if not known)handler - the data handler
public long addLob(java.io.InputStream in,
long maxLength,
int table)
in - the input streammaxLength - the maximum length (-1 for unknown)table - the table
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||