Package org.hibernate
Interface LobHelper
public interface LobHelper
- See Also:
-
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 content.createNClob(Reader reader, long length) Create a newNClobfrom character reader.createNClob(String string) Create a newNClobfrom 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 newNClobfrom content.- Parameters:
string- The string data- Returns:
- The created
NClob
-
createNClob
Create a newNClobfrom character reader.- Parameters:
reader- a character streamlength- the number of characters in the stream- Returns:
- The created
NClob
-