org.melati.poem.transaction
Class ToTidyList

Package class diagram package ToTidyList
java.lang.Object
  extended by org.melati.poem.transaction.ToTidyList

public class ToTidyList
extends Object

List of objects which need closing when a Transaction is terminated.


Nested Class Summary
static interface ToTidyList.Closeable
          Can be closed.
 
Constructor Summary
ToTidyList()
           
 
Method Summary
 void add(InputStream o)
          Add an InputStream to the list.
 void add(OutputStream o)
          Add an OutputStream to the list.
 void add(Reader o)
          Add a Reader to the list.
 void add(ResultSet o)
          Add a ResultSet to the list.
 void add(Statement o)
          Add a Statement to the list.
 void add(ToTidyList.Closeable o)
          Add any Closeable to the list.
 void add(Writer o)
          Add a Writer to the list.
 void close()
          Close all objects on list.
 Enumeration<Object> elements()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToTidyList

public ToTidyList()
Method Detail

close

public void close()
Close all objects on list.


add

public void add(ResultSet o)
Add a ResultSet to the list.

Parameters:
o - the ResultSet to add

add

public void add(Statement o)
Add a Statement to the list.

Parameters:
o - the Statement to add

add

public void add(Reader o)
Add a Reader to the list.

Parameters:
o - the Reader to add

add

public void add(Writer o)
Add a Writer to the list.

Parameters:
o - the Writer to add

add

public void add(InputStream o)
Add an InputStream to the list.

Parameters:
o - the InputStream to add

add

public void add(OutputStream o)
Add an OutputStream to the list.

Parameters:
o - the OutputStream to add

add

public void add(ToTidyList.Closeable o)
Add any Closeable to the list.

Parameters:
o - the Closeable to add

elements

public Enumeration<Object> elements()
Returns:
an Enumeration of the items on the list


Copyright © 2000-2010 PanEris. All Rights Reserved.