public class ResourceRegistryStandardImpl extends Object implements ResourceRegistry
Constructor and Description |
---|
ResourceRegistryStandardImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelLastQuery() |
static void |
close(ResultSet resultSet) |
static void |
close(Statement statement) |
protected void |
closeAll(Set<ResultSet> resultSets) |
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() |
public boolean hasRegisteredResources()
ResourceRegistry
hasRegisteredResources
in interface ResourceRegistry
public void register(Statement statement, boolean cancelable)
ResourceRegistry
register
in interface ResourceRegistry
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 ResourceRegistry.cancelLastQuery()
calls?public void release(Statement statement)
ResourceRegistry
release
in interface ResourceRegistry
statement
- The statement to release.public void release(ResultSet resultSet, Statement statement)
ResourceRegistry
release
in interface ResourceRegistry
resultSet
- The result set to release.statement
- Statement from which ResultSet
has been generated.public static void close(ResultSet resultSet)
public static void close(Statement statement)
public void register(ResultSet resultSet, Statement statement)
ResourceRegistry
ResultSet.getStatement()
does not return original Statement
object.register
in interface ResourceRegistry
resultSet
- The result set to register.statement
- Statement from which ResultSet
has been generated.public void register(Blob blob)
register
in interface ResourceRegistry
public void release(Blob blob)
release
in interface ResourceRegistry
public void register(Clob clob)
register
in interface ResourceRegistry
public void release(Clob clob)
release
in interface ResourceRegistry
public void register(NClob nclob)
register
in interface ResourceRegistry
public void release(NClob nclob)
release
in interface ResourceRegistry
public void cancelLastQuery()
cancelLastQuery
in interface ResourceRegistry
public void releaseResources()
releaseResources
in interface ResourceRegistry
Copyright © 2016 JBoss by Red Hat. All rights reserved.