org.mule.module.db.internal.result.statement
Class StatementStreamingResultSetCloser

java.lang.Object
  extended by org.mule.module.db.internal.result.statement.AbstractStreamingResultSetCloser
      extended by 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


Field Summary
 
Fields inherited from class org.mule.module.db.internal.result.statement.AbstractStreamingResultSetCloser
logger
 
Constructor Summary
StatementStreamingResultSetCloser()
           
 
Method Summary
protected  void checkValidConnectionLock(DbConnection connection, Object connectionLock)
           
 void close(DbConnection connection, ResultSet resultSet)
           
protected  Object getConnectionLock(DbConnection connection)
           
protected  Set<ResultSet> getConnectionResultSets(DbConnection connection, ResultSet resultSet)
           
protected  Object getTrackedConnectionLock(DbConnection connection)
           
protected  void releaseResources(DbConnection connection, Object connectionLock)
           
 void trackResultSet(DbConnection connection, ResultSet resultSet)
          Adds a resultSet for tracking in order to be able to close it later
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementStreamingResultSetCloser

public StatementStreamingResultSetCloser()
Method Detail

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 resultSet
resultSet - 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.