Class StandardLobCreator
java.lang.Object
org.hibernate.engine.jdbc.env.internal.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
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, useConnectionToCreateLob -
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, createClob, createClob, toJdbcBlob, toJdbcClob, toJdbcNClobMethods inherited from class org.hibernate.engine.jdbc.env.internal.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
-
-
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
-