Package org.hibernate
Interface LobHelper
-
public interface LobHelperAsession'shelper for creating LOB data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlobcreateBlob(byte[] bytes)Create a newBlobfrom bytes.BlobcreateBlob(InputStream stream, long length)Create a newBlobfrom stream data.ClobcreateClob(Reader reader, long length)Create a newClobfrom character reader.ClobcreateClob(String string)Create a newClobfrom content.NClobcreateNClob(Reader reader, long length)Create a newNClobfrom character reader.NClobcreateNClob(String string)Create a newNClobfrom content.
-
-
-
Method Detail
-
createBlob
Blob createBlob(byte[] bytes)
Create a newBlobfrom bytes.- Parameters:
bytes- a byte array- Returns:
- the created Blob
-
createBlob
Blob createBlob(InputStream stream, long length)
Create a newBlobfrom stream data.- Parameters:
stream- a binary streamlength- the number of bytes in the stream- Returns:
- the create Blob
-
createClob
Clob createClob(String string)
Create a newClobfrom content.- Parameters:
string- The string data- Returns:
- The created
Clob
-
createClob
Clob createClob(Reader reader, long length)
Create a newClobfrom character reader.- Parameters:
reader- a character streamlength- the number of characters in the stream- Returns:
- The created
Clob
-
createNClob
NClob createNClob(String string)
Create a newNClobfrom content.- Parameters:
string- The string data- Returns:
- The created
NClob
-
-