Package org.hibernate.resource.jdbc
Interface ResourceRegistry
-
- All Known Implementing Classes:
ResourceRegistryStandardImpl
public interface ResourceRegistry
A registry for tracking JDBC resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelLastQuery()
boolean
hasRegisteredResources()
Does this registry currently have any registered resources?void
register(Blob blob)
void
register(Clob clob)
void
register(NClob nclob)
void
register(ResultSet resultSet, Statement statement)
Register a JDBC result set.void
register(Statement statement, boolean cancelable)
Register a JDBC statement.void
release(Blob blob)
void
release(Clob clob)
void
release(NClob nclob)
void
release(ResultSet resultSet, Statement statement)
Release a previously registered result set.void
release(Statement statement)
Release a previously registered statement.void
releaseResources()
-
-
-
Method Detail
-
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
void register(Statement statement, boolean cancelable)
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
void release(Statement statement)
Release a previously registered statement.- Parameters:
statement
- The statement to release.
-
register
void register(ResultSet resultSet, Statement statement)
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
void release(ResultSet resultSet, Statement statement)
Release a previously registered result set.- Parameters:
resultSet
- The result set to release.statement
- Statement from whichResultSet
has been generated.
-
register
void register(Blob blob)
-
release
void release(Blob blob)
-
register
void register(Clob clob)
-
release
void release(Clob clob)
-
register
void register(NClob nclob)
-
release
void release(NClob nclob)
-
cancelLastQuery
void cancelLastQuery()
-
-