org.hibernate.engine.jdbc.spi
Interface JdbcResourceRegistry

All Superinterfaces:
Serializable
All Known Implementing Classes:
JdbcResourceRegistryImpl

public interface JdbcResourceRegistry
extends Serializable

Defines a registry of JDBC resources related to a particular unit of work.


Method Summary
 void cancelLastQuery()
           
 void close()
          Close this registry.
 boolean hasRegisteredResources()
          Does this registry currently have any registered resources?
 void register(ResultSet resultSet)
          Register a JDBC result set.
 void register(Statement statement)
          Register a JDBC statement.
 void registerLastQuery(Statement statement)
           
 void release(ResultSet resultSet)
          Release a previously registered result set.
 void release(Statement statement)
          Release a previously registered statement.
 void releaseResources()
          Release all registered resources.
 

Method Detail

register

void register(Statement statement)
Register a JDBC statement.

Parameters:
statement - The statement to register.

registerLastQuery

void registerLastQuery(Statement statement)

cancelLastQuery

void cancelLastQuery()

release

void release(Statement statement)
Release a previously registered statement.

Parameters:
statement - The statement to release.

register

void register(ResultSet resultSet)
Register a JDBC result set.

Parameters:
resultSet - The result set to register.

release

void release(ResultSet resultSet)
Release a previously registered result set.

Parameters:
resultSet - The result set to release.

hasRegisteredResources

boolean hasRegisteredResources()
Does this registry currently have any registered resources?

Returns:
True if the registry does have registered resources; false otherwise.

releaseResources

void releaseResources()
Release all registered resources.


close

void close()
Close this registry. Also releases any registered resources.

After execution, the registry is considered unusable.



Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.