public interface

LobCreator

org.hibernate.engine.jdbc.LobCreator
Known Indirect Subclasses

Class Overview

Contract for creating various LOB references.

Summary

Public Methods
abstract Blob createBlob(InputStream stream, long length)
Create a BLOB reference encapsulating the given binary stream.
abstract Blob createBlob(byte[] bytes)
Create a BLOB reference encapsulating the given byte array.
abstract Clob createClob(String string)
Create a CLOB reference encapsulating the given String data.
abstract Clob createClob(Reader reader, long length)
Create a CLOB reference encapsulating the given character data.
abstract Clob createNClob(Reader reader, long length)
Create a NCLOB reference encapsulating the given character data.
abstract Clob createNClob(String string)
Create a NCLOB reference encapsulating the given String data.
abstract Blob wrap(Blob blob)
Wrap the given blob in a serializable wrapper.
abstract Clob wrap(Clob clob)
Wrap the given clob in a serializable wrapper.

Public Methods

public abstract Blob createBlob (InputStream stream, long length)

Create a BLOB reference encapsulating the given binary stream.

Parameters
stream The binary stream to wrap as a blob.
length The length of the stream.
Returns

public abstract Blob createBlob (byte[] bytes)

Create a BLOB reference encapsulating the given byte array.

Parameters
bytes The byte array to wrap as a blob.
Returns

public abstract Clob createClob (String string)

Create a CLOB reference encapsulating the given String data.

Parameters
string The String to wrap as a clob.
Returns

public abstract Clob createClob (Reader reader, long length)

Create a CLOB reference encapsulating the given character data.

Parameters
reader The character data reader.
length The length of the reader data.
Returns

public abstract Clob createNClob (Reader reader, long length)

Create a NCLOB reference encapsulating the given character data.

Parameters
reader The character data reader.
length The length of the reader data.
Returns
  • The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob

public abstract Clob createNClob (String string)

Create a NCLOB reference encapsulating the given String data.

Parameters
string The String to wrap as a NCLOB.
Returns
  • The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob

public abstract Blob wrap (Blob blob)

Wrap the given blob in a serializable wrapper.

Parameters
blob The blob to be wrapped.
Returns

public abstract Clob wrap (Clob clob)

Wrap the given clob in a serializable wrapper.

Parameters
clob The clob to be wrapped.
Returns