public class LobStorageMap extends Object implements LobStorageInterface
| 构造器和说明 |
|---|
LobStorageMap(Database database) |
| 限定符和类型 | 方法和说明 |
|---|---|
ValueLobDb |
copyLob(ValueLobDb old,
int tableId,
long length)
Copy a lob.
|
Value |
createBlob(InputStream in,
long maxLength)
Create a BLOB object.
|
Value |
createClob(Reader reader,
long maxLength)
Create a CLOB object.
|
InputStream |
getInputStream(ValueLobDb lob,
byte[] hmac,
long byteCount)
Get the input stream for the given lob.
|
void |
init()
Initialize the lob storage.
|
boolean |
isReadOnly()
Whether the storage is read-only
|
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 tableId)
Set the table reference of this lob.
|
public LobStorageMap(Database database)
public void init()
LobStorageInterfaceinit 在接口中 LobStorageInterfacepublic Value createBlob(InputStream in, long maxLength)
LobStorageInterfacecreateBlob 在接口中 LobStorageInterfacein - the input streammaxLength - the maximum length (-1 if not known)public Value createClob(Reader reader, long maxLength)
LobStorageInterfacecreateClob 在接口中 LobStorageInterfacereader - the readermaxLength - the maximum length (-1 if not known)public boolean isReadOnly()
LobStorageInterfaceisReadOnly 在接口中 LobStorageInterfacepublic ValueLobDb copyLob(ValueLobDb old, int tableId, long length)
LobStorageInterfacecopyLob 在接口中 LobStorageInterfaceold - the old lobtableId - the new table idlength - the lengthpublic InputStream getInputStream(ValueLobDb lob, byte[] hmac, long byteCount) throws IOException
LobStorageInterfacegetInputStream 在接口中 LobStorageInterfacelob - the lob idhmac - the message authentication code (for remote input streams)byteCount - the number of bytes to read, or -1 if not knownIOExceptionpublic void setTable(ValueLobDb lob, int tableId)
LobStorageInterfacesetTable 在接口中 LobStorageInterfacelob - the lobtableId - the tablepublic void removeAllForTable(int tableId)
LobStorageInterfaceremoveAllForTable 在接口中 LobStorageInterfacetableId - the table idpublic void removeLob(ValueLobDb lob)
LobStorageInterfaceremoveLob 在接口中 LobStorageInterfacelob - the lobCopyright © 2017. All rights reserved.