Package org.hibernate
Interface LobHelper
public interface LobHelper
A
session's helper for creating LOB data-
Method Summary
Modifier and TypeMethodDescriptioncreateBlob(byte[] bytes) Create a newBlobfrom bytes.createBlob(InputStream stream, long length) Create a newBlobfrom stream data.createClob(Reader reader, long length) Create a newClobfrom character reader.createClob(String string) Create a newClobfrom contentcreateNClob(Reader reader, long length) Create a newClobfrom character reader.createNClob(String string) Create a newClobfrom content.
-
Method Details
-
createBlob
Create a newBlobfrom bytes.- Parameters:
bytes- a byte array- Returns:
- the created Blob
-
createBlob
Create a newBlobfrom stream data.- Parameters:
stream- a binary streamlength- the number of bytes in the stream- Returns:
- the create Blob
-
createClob
Create a newClobfrom content- Parameters:
string- The string data- Returns:
- The created
Clob
-
createClob
Create a newClobfrom character reader.- Parameters:
reader- a character streamlength- the number of characters in the stream- Returns:
- The created
Clob
-
createNClob
Create a newClobfrom content. Note, on JDK 1.6+ environments will create and return a NClob instead (NClob extends the Clob interface).- Parameters:
string- The string data- Returns:
- The created
Clob/NClob
-
createNClob
Create a newClobfrom character reader. Note, on JDK 1.6+ environments will create and return a NClob instead (NClob extends the Clob interface).- Parameters:
reader- a character streamlength- the number of characters in the stream- Returns:
- The created
Clob/NClob
-