|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl
public class JdbcResourceRegistryImpl
Standard implementation of the JdbcResourceRegistry
contract
Constructor Summary | |
---|---|
JdbcResourceRegistryImpl(SqlExceptionHelper exceptionHelper)
|
Method Summary | |
---|---|
void |
cancelLastQuery()
Cancel the last query registered via JdbcResourceRegistry.registerLastQuery(java.sql.Statement) |
void |
close()
Close this registry. |
protected void |
close(ResultSet resultSet)
|
protected void |
close(Statement statement)
|
protected void |
closeAll(Set<ResultSet> resultSets)
|
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)
Register a query statement as being able to be cancelled. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcResourceRegistryImpl(SqlExceptionHelper exceptionHelper)
Method Detail |
---|
public void register(Statement statement)
JdbcResourceRegistry
register
in interface JdbcResourceRegistry
statement
- The statement to register.public void registerLastQuery(Statement statement)
JdbcResourceRegistry
registerLastQuery
in interface JdbcResourceRegistry
statement
- The cancel-able query statement.public void cancelLastQuery()
JdbcResourceRegistry
JdbcResourceRegistry.registerLastQuery(java.sql.Statement)
cancelLastQuery
in interface JdbcResourceRegistry
public void release(Statement statement)
JdbcResourceRegistry
release
in interface JdbcResourceRegistry
statement
- The statement to release.public void register(ResultSet resultSet)
JdbcResourceRegistry
register
in interface JdbcResourceRegistry
resultSet
- The result set to register.public void release(ResultSet resultSet)
JdbcResourceRegistry
release
in interface JdbcResourceRegistry
resultSet
- The result set to release.public boolean hasRegisteredResources()
JdbcResourceRegistry
hasRegisteredResources
in interface JdbcResourceRegistry
public void releaseResources()
JdbcResourceRegistry
releaseResources
in interface JdbcResourceRegistry
protected void closeAll(Set<ResultSet> resultSets)
public void close()
JdbcResourceRegistry
releases
any registered resources.
After execution, the registry is considered unusable.
close
in interface JdbcResourceRegistry
protected void close(Statement statement)
protected void close(ResultSet resultSet)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |