net.sf.farrago.util
Class FarragoStatementAllocation
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conn
private Connection conn
stmt
private Statement stmt
resultSet
private ResultSet resultSet
FarragoStatementAllocation
public FarragoStatementAllocation(Statement stmt)
FarragoStatementAllocation
public FarragoStatementAllocation(Connection conn,
Statement stmt)
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()