Class StandardLobCreator
- java.lang.Object
-
- org.hibernate.engine.jdbc.AbstractLobCreator
-
- org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator
-
- org.hibernate.engine.jdbc.env.internal.StandardLobCreator
-
- All Implemented Interfaces:
LobCreator
public class StandardLobCreator extends BlobAndClobCreator
LobCreator implementation using Connection.createBlob(), Connection.createClob() and Connection.createNClob() to create the LOB references.
-
-
Field Summary
Fields Modifier and Type Field Description static LobCreationContext.Callback<NClob>
CREATE_NCLOB_CALLBACK
Callback for performing contextual NCLOB creation-
Fields inherited from class org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator
CREATE_BLOB_CALLBACK, CREATE_CLOB_CALLBACK, lobCreationContext
-
-
Constructor Summary
Constructors Constructor Description StandardLobCreator(LobCreationContext lobCreationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NClob
createNClob()
Create the basic contextual NCLOB reference.NClob
createNClob(Reader reader, long length)
Create a NCLOB reference encapsulating the given character data.NClob
createNClob(String string)
Create a NCLOB reference encapsulating the given String data.-
Methods inherited from class org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator
createBlob, createBlob, createBlob, createClob, createClob, createClob
-
Methods inherited from class org.hibernate.engine.jdbc.AbstractLobCreator
wrap, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.jdbc.LobCreator
wrap, wrap, wrap
-
-
-
-
Field Detail
-
CREATE_NCLOB_CALLBACK
public static final LobCreationContext.Callback<NClob> CREATE_NCLOB_CALLBACK
Callback for performing contextual NCLOB creation
-
-
Constructor Detail
-
StandardLobCreator
public StandardLobCreator(LobCreationContext lobCreationContext)
-
-
Method Detail
-
createNClob
public NClob createNClob()
Create the basic contextual NCLOB reference.- Returns:
- The created NCLOB reference.
-
createNClob
public NClob createNClob(String string)
Description copied from interface:LobCreator
Create a NCLOB reference encapsulating the given String data.- Specified by:
createNClob
in interfaceLobCreator
- Overrides:
createNClob
in classBlobAndClobCreator
- Parameters:
string
- The String to wrap as a NCLOB.- Returns:
- The created NCLOB, castable as
Clob
as well asNClobImplementer
. In JDK 1.6 environments, also castable to java.sql.NClob
-
createNClob
public NClob createNClob(Reader reader, long length)
Description copied from interface:LobCreator
Create a NCLOB reference encapsulating the given character data.- Specified by:
createNClob
in interfaceLobCreator
- Overrides:
createNClob
in classBlobAndClobCreator
- Parameters:
reader
- The character data reader.length
- The length of the reader data.- Returns:
- The created NCLOB, castable as
Clob
as well asNClobImplementer
. In JDK 1.6 environments, also castable to java.sql.NClob
-
-