Package org.hibernate
Interface LobHelper
public interface LobHelper
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateBlob
(byte[] bytes) Create a newBlob
from bytes.createBlob
(InputStream stream, long length) Create a newBlob
from stream data.createClob
(Reader reader, long length) Create a newClob
from character reader.createClob
(String string) Create a newClob
from content.createNClob
(Reader reader, long length) Create a newNClob
from character reader.createNClob
(String string) Create a newNClob
from content.
-
Method Details
-
createBlob
Create a newBlob
from bytes.- Parameters:
bytes
- a byte array- Returns:
- the created Blob
-
createBlob
Create a newBlob
from stream data.- Parameters:
stream
- a binary streamlength
- the number of bytes in the stream- Returns:
- the create Blob
-
createClob
Create a newClob
from content.- Parameters:
string
- The string data- Returns:
- The created
Clob
-
createClob
Create a newClob
from character reader.- Parameters:
reader
- a character streamlength
- the number of characters in the stream- Returns:
- The created
Clob
-
createNClob
Create a newNClob
from content.- Parameters:
string
- The string data- Returns:
- The created
NClob
-
createNClob
Create a newNClob
from character reader.- Parameters:
reader
- a character streamlength
- the number of characters in the stream- Returns:
- The created
NClob
-