net.spy.db
Interface Savable

All Known Subinterfaces:
SavableNode
All Known Implementing Classes:
AbstractSavable, SavableHashMap, SavableHashSet

Deprecated. use SavableNode instead

public interface Savable

Interface for transactionally savable objects.


Method Summary
 Collection getSavables(SaveContext context)
          Deprecated. Get a list of all of the Savables this Savable is holding that will need to be saved after this object.
 boolean isModified()
          Deprecated. Has this object been modified?
 boolean isNew()
          Deprecated. Is this a new object?
 void save(Connection conn, SaveContext context)
          Deprecated. Save this object's state over the given connection.
 

Method Detail

isNew

public boolean isNew()
Deprecated. 
Is this a new object?


isModified

public boolean isModified()
Deprecated. 
Has this object been modified?


save

public void save(Connection conn,
                 SaveContext context)
          throws SaveException,
                 SQLException
Deprecated. 
Save this object's state over the given connection.

Parameters:
conn - the connection to use for saving
context - SaveContext being used in this Saver session
Throws:
SaveException
SQLException

getSavables

public Collection getSavables(SaveContext context)
Deprecated. 
Get a list of all of the Savables this Savable is holding that will need to be saved after this object.

Parameters:
context - SaveContext being used in this Saver session
Returns:
a collection of dependent objects to save, or null if there are no dependent objects