Top Description Inners Methods
org.hibernate.engine.jdbc

public Interface LobCreationContext

Known Direct Implementers
org.hibernate.impl.SessionImpl
Imports
java.sql.Connection, .SQLException

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.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
LobCreationContext.Callback

The callback contract for making use of the JDBC Connection.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

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

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

Method Detail

executeback to summary
public Object execute(LobCreationContext.Callback callback)

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

Parameters
callback:LobCreationContext.Callback

The callback to execute .

Returns:Object

The LOB created by the callback.

org.hibernate.engine.jdbc back to summary

public Interface LobCreationContext.Callback

Known Direct Implementers
org.hibernate.engine.jdbc.ContextualLobCreator.CallbackImpl

The callback contract for making use of the JDBC Connection.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

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

Perform whatever actions are necessary using the provided JDBC Connection.

Method Detail

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

Perform whatever actions are necessary using the provided JDBC Connection.

Parameters
connection:Connection

The JDBC Connection.

Returns:Object

The created LOB.