Package org.hibernate.resource.jdbc
Interface ResourceRegistry
- All Known Implementing Classes:
ResourceRegistryStandardImpl
public interface ResourceRegistry
A registry for tracking JDBC resources.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
Does this registry currently have any registered resources?void
void
void
void
Register a JDBC result set.void
Register a JDBC statement.void
void
void
void
Release a previously registered result set.void
Release a previously registered statement.void
-
Method Details
-
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() -
register
Register a JDBC statement.- Parameters:
statement
- The statement to register.cancelable
- Is the statement being registered capable of being cancelled? In other words, should we register it to be the target of subsequentcancelLastQuery()
calls?
-
release
Release a previously registered statement.- Parameters:
statement
- The statement to release.
-
register
Register a JDBC result set.Implementation note: Second parameter has been introduced to prevent multiple registrations of the same statement in case
ResultSet.getStatement()
does not return originalStatement
object.- Parameters:
resultSet
- The result set to register.statement
- Statement from whichResultSet
has been generated.
-
release
Release a previously registered result set.- Parameters:
resultSet
- The result set to release.statement
- Statement from whichResultSet
has been generated.
-
register
-
release
-
register
-
release
-
register
-
release
-
cancelLastQuery
void cancelLastQuery()
-