org.dspace.checker
Class DAOSupport

java.lang.Object
  extended by org.dspace.checker.DAOSupport
Direct Known Subclasses:
BitstreamInfoDAO, ChecksumHistoryDAO, ChecksumResultDAO, ReporterDAO

public class DAOSupport
extends Object

Database Helper Class to cleanup database resources

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Constructor Summary
DAOSupport()
           
 
Method Summary
protected  void cleanup(Connection conn)
           
protected  void cleanup(Statement stmt)
           
protected  void cleanup(Statement stmt, Connection conn)
          Utility method that cleans up the statement and connection.
protected  void cleanup(Statement stmt, Connection conn, ResultSet rs)
          Utility method that cleans up the statement and connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOSupport

public DAOSupport()
Method Detail

cleanup

protected void cleanup(Statement stmt,
                       Connection conn)
Utility method that cleans up the statement and connection.

Parameters:
stmt - A prepared statement to close.
conn - Corresponding connection to close.

cleanup

protected void cleanup(Statement stmt,
                       Connection conn,
                       ResultSet rs)
Utility method that cleans up the statement and connection.

Parameters:
stmt - A prepared statement to close.
conn - Corresponding connection to close.
rs - Result set to close

cleanup

protected void cleanup(Statement stmt)

cleanup

protected void cleanup(Connection conn)


Copyright © 2010 DuraSpace. All Rights Reserved.