Class AbstractLobCreator
java.lang.Object
org.hibernate.engine.jdbc.env.internal.AbstractLobCreator
- All Implemented Interfaces:
LobCreator
- Direct Known Subclasses:
BlobAndClobCreator
,NonContextualLobCreator
Convenient base class for proxy-based
LobCreator
for handling wrapping.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoJdbcBlob
(Blob blob) Return an instance which can actually be written to a JDBCPreparedStatement
.toJdbcClob
(Clob clob) Return an instance which can actually be written to a JDBCPreparedStatement
.toJdbcNClob
(NClob clob) Return an instance which can actually be written to a JDBCPreparedStatement
.Wrap the given blob in a serializable wrapper.Wrap the given clob in a serializable wrapper.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
-
Constructor Details
-
AbstractLobCreator
public AbstractLobCreator()
-
-
Method Details
-
wrap
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
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
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
.
-
toJdbcBlob
Description copied from interface:LobCreator
Return an instance which can actually be written to a JDBCPreparedStatement
.- Specified by:
toJdbcBlob
in interfaceLobCreator
- See Also:
-
toJdbcClob
Description copied from interface:LobCreator
Return an instance which can actually be written to a JDBCPreparedStatement
.- Specified by:
toJdbcClob
in interfaceLobCreator
- See Also:
-
toJdbcNClob
Description copied from interface:LobCreator
Return an instance which can actually be written to a JDBCPreparedStatement
.- Specified by:
toJdbcNClob
in interfaceLobCreator
- See Also:
-