Package org.hibernate.engine.jdbc
Interface LobCreationContext
- All Known Implementing Classes:
SessionImpl
public interface LobCreationContext
Provides callback access into the context in which the LOB is to be created. Mainly this is useful
for gaining access to the JDBC
Connection for use in JDBC 4 environments.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe callback contract for making use of the JDBCConnection. -
Method Summary
Modifier and TypeMethodDescriptionexecute(LobCreationContext.Callback callback) Execute the given callback, making sure it has access to a viable JDBCConnection.
-
Method Details
-
execute
Execute the given callback, making sure it has access to a viable JDBCConnection.- Parameters:
callback- The callback to execute .- Returns:
- The LOB created by the callback.
-