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
LobCreator implementation using Connection.createBlob(),
Connection.createClob() and Connection.createNClob() to
create the LOB references.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LobCreationContext.Callback<NClob>
Callback for performing contextual NCLOB creationFields inherited from class org.hibernate.engine.jdbc.env.internal.BlobAndClobCreator
CREATE_BLOB_CALLBACK, CREATE_CLOB_CALLBACK, lobCreationContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate the basic contextual NCLOB reference.createNClob
(Reader reader, long length) Create a NCLOB reference encapsulating the given character data.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 Details
-
CREATE_NCLOB_CALLBACK
Callback for performing contextual NCLOB creation
-
-
Constructor Details
-
StandardLobCreator
-
-
Method Details
-
createNClob
Create the basic contextual NCLOB reference.- Returns:
- The created NCLOB reference.
-
createNClob
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
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
-