Top Description Methods
org.hibernate

public Interface LobHelper

Known Direct Implementers
org.hibernate.internal.SessionImpl.LobHelperImpl
Imports
java.io.InputStream, .Reader, java.sql.Blob, .Clob, .NClob

A session's helper for creating LOB data.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Blob

Returns:

the created Blob
createBlob
(byte[]
a byte array
bytes
)

Create a new Blob from bytes.

public Blob

Returns:

the create Blob
createBlob
(InputStream
a binary stream
stream
,
long
the number of bytes in the stream
length
)

Create a new Blob from stream data.

public Clob

Returns:

The created java.sql.Clob
createClob
(String
The string data
string
)

Create a new java.sql.Clob from content.

public Clob

Returns:

The created Clob
createClob
(Reader
a character stream
reader
,
long
the number of characters in the stream
length
)

Create a new Clob from character reader.

public NClob

Returns:

The created NClob
createNClob
(String
The string data
string
)

Create a new NClob from content.

public NClob

Returns:

The created NClob
createNClob
(Reader
a character stream
reader
,
long
the number of characters in the stream
length
)

Create a new NClob from character reader.

Method Detail

createBlobback to summary
public Blob createBlob(byte[] bytes)

Create a new Blob from bytes.

Parameters
bytes:byte[]

a byte array

Returns:Blob

the created Blob

createBlobback to summary
public Blob createBlob(InputStream stream, long length)

Create a new Blob from stream data.

Parameters
stream:InputStream

a binary stream

length:long

the number of bytes in the stream

Returns:Blob

the create Blob

createClobback to summary
public Clob createClob(String string)

Create a new java.sql.Clob from content.

Parameters
string:String

The string data

Returns:Clob

The created java.sql.Clob

createClobback to summary
public Clob createClob(Reader reader, long length)

Create a new Clob from character reader.

Parameters
reader:Reader

a character stream

length:long

the number of characters in the stream

Returns:Clob

The created Clob

createNClobback to summary
public NClob createNClob(String string)

Create a new NClob from content.

Parameters
string:String

The string data

Returns:NClob

The created NClob

createNClobback to summary
public NClob createNClob(Reader reader, long length)

Create a new NClob from character reader.

Parameters
reader:Reader

a character stream

length:long

the number of characters in the stream

Returns:NClob

The created NClob