public interface ResourceRegistry
Modifier and Type | Method and 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() |
boolean hasRegisteredResources()
void releaseResources()
void register(Statement statement, boolean cancelable)
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 subsequent cancelLastQuery()
calls?void release(Statement statement)
statement
- The statement to release.void register(ResultSet resultSet, Statement statement)
ResultSet.getStatement()
does not return original Statement
object.resultSet
- The result set to register.statement
- Statement from which ResultSet
has been generated.void release(ResultSet resultSet, Statement statement)
resultSet
- The result set to release.statement
- Statement from which ResultSet
has been generated.void register(Blob blob)
void release(Blob blob)
void register(Clob clob)
void release(Clob clob)
void register(NClob nclob)
void release(NClob nclob)
void cancelLastQuery()
Copyright © 2021 JBoss by Red Hat. All rights reserved.