public interface LobHelper
session's
helper for creating LOB dataModifier and Type | Method and Description |
---|---|
Blob |
createBlob(byte[] bytes)
Create a new
Blob from bytes. |
Blob |
createBlob(InputStream stream,
long length)
Create a new
Blob from stream data. |
Clob |
createClob(Reader reader,
long length)
Create a new
Clob from character reader. |
Clob |
createClob(String string)
Create a new
Clob from content |
Clob |
createNClob(Reader reader,
long length)
Create a new
Clob from character reader. |
Clob |
createNClob(String string)
Create a new
Clob from content. |
Blob createBlob(byte[] bytes)
Blob
from bytes.bytes
- a byte arrayBlob createBlob(InputStream stream, long length)
Blob
from stream data.stream
- a binary streamlength
- the number of bytes in the streamClob createClob(String string)
Clob
from contentstring
- The string dataClob
Clob createClob(Reader reader, long length)
Clob
from character reader.reader
- a character streamlength
- the number of characters in the streamClob
Clob createNClob(String string)
Clob
from content.
Note, on JDK 1.6+ environments will
create and return a NClob instead (NClob extends the Clob interface).string
- The string dataClob
/NClobClob createNClob(Reader reader, long length)
Clob
from character reader.
Note, on JDK 1.6+ environments will
create and return a NClob instead (NClob extends the Clob interface).reader
- a character streamlength
- the number of characters in the streamClob
/NClobCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved