private void cleanUpDatabaseResources(Database conn,Statement st,ResultSet rs){
  if (rs != null) {
    try {
      rs.close();
    }
 catch (    SQLException ignore) {
    }
  }
  if (st != null) {
    try {
      st.close();
    }
 catch (    SQLException ignore) {
    }
  }
  if (conn != null)   conn.close();
}

private void cleanUpDatabaseResources ( Database conn , Statement st , ResultSet rs ) { if ( rs != null ) { try { rs . close ( ) ; } catch ( SQLException ignore ) { } } if ( st != null ) { try { st . close ( ) ; } catch ( SQLException ignore ) { } } if ( conn != null ) conn . close ( ) ; }
utility method to close result , statement , and connection objects .
