Package org.hibernate.engine.jdbc
Class AbstractLobCreator
- java.lang.Object
-
- org.hibernate.engine.jdbc.AbstractLobCreator
-
- All Implemented Interfaces:
LobCreator
- Direct Known Subclasses:
ContextualLobCreator
,NonContextualLobCreator
public abstract class AbstractLobCreator extends java.lang.Object implements LobCreator
Convenient base class for proxy-based LobCreator for handling wrapping.
-
-
Constructor Summary
Constructors Constructor Description AbstractLobCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Blob
wrap(java.sql.Blob blob)
Wrap the given blob in a serializable wrapper.java.sql.Clob
wrap(java.sql.Clob clob)
Wrap the given clob in a serializable wrapper.java.sql.NClob
wrap(java.sql.NClob nclob)
Wrap the given nclob in a serializable wrapper.-
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
createBlob, createBlob, createClob, createClob, createNClob, createNClob
-
-
-
-
Method Detail
-
wrap
public java.sql.Blob wrap(java.sql.Blob blob)
Description copied from interface:LobCreator
Wrap the given blob in a serializable wrapper.- Specified by:
wrap
in interfaceLobCreator
- Parameters:
blob
- The blob to be wrapped.- Returns:
- The wrapped blob which will be castable to
Blob
as well asWrappedBlob
.
-
wrap
public java.sql.Clob wrap(java.sql.Clob clob)
Description copied from interface:LobCreator
Wrap the given clob in a serializable wrapper.- Specified by:
wrap
in interfaceLobCreator
- Parameters:
clob
- The clob to be wrapped.- Returns:
- The wrapped clob which will be castable to
Clob
as well asWrappedClob
.
-
wrap
public java.sql.NClob wrap(java.sql.NClob nclob)
Description copied from interface:LobCreator
Wrap the given nclob in a serializable wrapper.- Specified by:
wrap
in interfaceLobCreator
- Parameters:
nclob
- The nclob to be wrapped.- Returns:
- The wrapped nclob which will be castable to
NClob
as well asWrappedNClob
.
-
-