net.sf.farrago.util
Class FarragoStatementAllocation

java.lang.Object
  extended by net.sf.farrago.util.FarragoStatementAllocation
All Implemented Interfaces:
FarragoAllocation, ClosableAllocation

public class FarragoStatementAllocation
extends Object
implements FarragoAllocation

FarragoStatementAllocation takes care of closing a JDBC Statement (and its associated ResultSet if any).

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/util/FarragoStatementAllocation.java#12 $
Author:
John V. Sichi

Field Summary
private  Connection conn
           
private  ResultSet resultSet
           
private  Statement stmt
           
 
Constructor Summary
FarragoStatementAllocation(Connection conn, Statement stmt)
           
FarragoStatementAllocation(Statement stmt)
           
 
Method Summary
 void closeAllocation()
          Closes this object.
 ResultSet getResultSet()
           
 Statement getStatement()
           
 void setResultSet(ResultSet resultSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

private Connection conn

stmt

private Statement stmt

resultSet

private ResultSet resultSet
Constructor Detail

FarragoStatementAllocation

public FarragoStatementAllocation(Statement stmt)

FarragoStatementAllocation

public FarragoStatementAllocation(Connection conn,
                                  Statement stmt)
Method Detail

setResultSet

public void setResultSet(ResultSet resultSet)

closeAllocation

public void closeAllocation()
Description copied from interface: ClosableAllocation
Closes this object.

Specified by:
closeAllocation in interface ClosableAllocation

getStatement

public Statement getStatement()

getResultSet

public ResultSet getResultSet()