org.mule.module.db.internal.result.statement
Class StatementStreamingResultSetCloser
java.lang.Object
org.mule.module.db.internal.result.statement.AbstractStreamingResultSetCloser
org.mule.module.db.internal.result.statement.StatementStreamingResultSetCloser
- All Implemented Interfaces:
- StreamingResultSetCloser
public class StatementStreamingResultSetCloser
- extends AbstractStreamingResultSetCloser
Closes a ResultSet once it has been processed
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementStreamingResultSetCloser
public StatementStreamingResultSetCloser()
close
public void close(DbConnection connection,
ResultSet resultSet)
- Specified by:
close in interface StreamingResultSetCloser- Overrides:
close in class AbstractStreamingResultSetCloser
trackResultSet
public void trackResultSet(DbConnection connection,
ResultSet resultSet)
- Adds a resultSet for tracking in order to be able to close it later
- Parameters:
connection - connection that holds the resultSetresultSet - resultSet to track
getTrackedConnectionLock
protected Object getTrackedConnectionLock(DbConnection connection)
releaseResources
protected void releaseResources(DbConnection connection,
Object connectionLock)
getConnectionResultSets
protected Set<ResultSet> getConnectionResultSets(DbConnection connection,
ResultSet resultSet)
checkValidConnectionLock
protected void checkValidConnectionLock(DbConnection connection,
Object connectionLock)
getConnectionLock
protected Object getConnectionLock(DbConnection connection)
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.