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.
- Author:
- Steve Ebersole, Gail Badner
-
Field Summary
FieldsModifier 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
Constructors -
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, createClobMethods inherited from class org.hibernate.engine.jdbc.AbstractLobCreator
wrap, wrap, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:LobCreatorCreate a NCLOB reference encapsulating the given String data.- Specified by:
createNClobin interfaceLobCreator- Overrides:
createNClobin classBlobAndClobCreator- Parameters:
string- The String to wrap as a NCLOB.- Returns:
- The created NCLOB, castable as
Clobas well asNClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob
-
createNClob
Description copied from interface:LobCreatorCreate a NCLOB reference encapsulating the given character data.- Specified by:
createNClobin interfaceLobCreator- Overrides:
createNClobin classBlobAndClobCreator- Parameters:
reader- The character data reader.length- The length of the reader data.- Returns:
- The created NCLOB, castable as
Clobas well asNClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob
-