Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.env.internal

public Class StandardLobCreator

extends BlobAndClobCreator
Class Inheritance
Imports
java.io.InputStream, .Reader, java.sql.Blob, .Clob, .Connection, .NClob, .SQLException, org.hibernate.JDBCException, org.hibernate.engine.jdbc.LobCreationContext, .LobCreator, .NonContextualLobCreator

LobCreator implementation using Connection#createBlob, Connection#createClob and Connection#createNClob to create the LOB references.
Authors
Steve Ebersole, Gail Badner

Field Summary

Modifier and TypeField and Description
public static final LobCreationContext.Callback<NClob>
CREATE_NCLOB_CALLBACK

Callback for performing contextual NCLOB creation

Inherited from org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator:
CREATE_BLOB_CALLBACKCREATE_CLOB_CALLBACKlobCreationContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public NClob

Returns:

The created NCLOB reference.
createNClob
()

Create the basic contextual NCLOB reference.

public NClob
createNClob(String
The String to wrap as a NCLOB.
string
)

Overrides org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator.createNClob.

Implements org.hibernate.engine.jdbc.LobCreator.createNClob.

Create a NCLOB reference encapsulating the given String data.
public NClob
createNClob(Reader
The character data reader.
reader
,
long
The length of the reader data.
length
)

Overrides org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator.createNClob.

Implements org.hibernate.engine.jdbc.LobCreator.createNClob.

Create a NCLOB reference encapsulating the given character data.
Inherited from org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator:
createBlobcreateBlobcreateBlobcreateClobcreateClobcreateClob

Field Detail

CREATE_NCLOB_CALLBACKback to summary
public static final LobCreationContext.Callback<NClob> CREATE_NCLOB_CALLBACK

Callback for performing contextual NCLOB creation

Constructor Detail

StandardLobCreatorback to summary
public StandardLobCreator(LobCreationContext lobCreationContext)

Method Detail

createNClobback to summary
public NClob createNClob()

Create the basic contextual NCLOB reference.

Returns:NClob

The created NCLOB reference.

createNClobback to summary
public NClob createNClob(String string)

Overrides org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator.createNClob.

Implements org.hibernate.engine.jdbc.LobCreator.createNClob.

Doc from org.hibernate.engine.jdbc.LobCreator.createNClob.

Create a NCLOB reference encapsulating the given String data.

Parameters
string:String

The String to wrap as a NCLOB.

Returns:NClob

The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob

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

Overrides org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator.createNClob.

Implements org.hibernate.engine.jdbc.LobCreator.createNClob.

Doc from org.hibernate.engine.jdbc.LobCreator.createNClob.

Create a NCLOB reference encapsulating the given character data.

Parameters
reader:Reader

The character data reader.

length:long

The length of the reader data.

Returns:NClob

The created NCLOB, castable as Clob as well as NClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob

Annotations
@Override