Interface LobCreationContext

All Known Subinterfaces:
EventSource, SessionImplementor, SharedSessionContractImplementor
All Known Implementing Classes:
AbstractDelegateSessionImplementor, AbstractSharedSessionContract, SessionDelegatorBaseImpl, SessionImpl, SharedSessionDelegatorBaseImpl, StatelessSessionImpl, ToOneDelegateSessionImplementor

public interface LobCreationContext
Provides callback access into the context in which the LOB is to be created.
  • Method Details

    • execute

      <T> T execute(LobCreationContext.Callback<T> callback)
      Execute the given callback, making sure it has access to a viable JDBC Connection.
      Type Parameters:
      T - The Java type of the type of LOB being created. One of Blob, Clob, NClob
      Parameters:
      callback - The callback to execute .
      Returns:
      The LOB created by the callback.
    • fromContext

      default <T> T fromContext(LobCreationContext.Callback<T> callback)