Top Description Inners Methods
org.hibernate.engine.jdbc

public Interface LobCreationContext

Known Direct Subinterfaces
org.hibernate.engine.spi.SharedSessionContractImplementor
Imports
java.sql.Connection, .SQLException

Provides callback access into the context in which the LOB is to be created.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
LobCreationContext.Callback<T>

The callback contract for making use of the JDBC Connection.

Method Summary

Modifier and TypeMethod and Description
public <
The Java type of the type of LOB being created. One of java.sql.Blob, java.sql.Clob, java.sql.NClob
T
>
T

Returns:

The LOB created by the callback.
execute
(LobCreationContext.Callback<T>
The callback to execute .
callback
)

Execute the given callback, making sure it has access to a viable JDBC Connection.

public default <T> T

Method Detail

executeback to summary
public <T> T execute(LobCreationContext.Callback<T> callback)

Execute the given callback, making sure it has access to a viable JDBC Connection.

Parameters
<T>
The Java type of the type of LOB being created. One of java.sql.Blob, java.sql.Clob, java.sql.NClob
callback:LobCreationContext.Callback<T>

The callback to execute .

Returns:T

The LOB created by the callback.

fromContextback to summary
public default <T> T fromContext(LobCreationContext.Callback<T> callback)
org.hibernate.engine.jdbc back to summary

public Interface LobCreationContext.Callback<T>

Annotations
@FunctionalInterface

The callback contract for making use of the JDBC Connection.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

The created LOB.
executeOnConnection
(Connection
The JDBC Connection.
connection
)

Perform whatever actions are necessary using the provided JDBC Connection.

public default T
from(Connection connection)

Method Detail

executeOnConnectionback to summary
public T executeOnConnection(Connection connection) throws SQLException

Perform whatever actions are necessary using the provided JDBC Connection.

Parameters
connection:Connection

The JDBC Connection.

Returns:T

The created LOB.

Exceptions
SQLException:
Indicates trouble accessing the JDBC driver to create the LOB
fromback to summary
public default T from(Connection connection) throws SQLException