net.spy.db.savables
Class CollectionSavable
java.lang.Object
net.spy.SpyObject
net.spy.db.AbstractSavable
net.spy.db.savables.CollectionSavable
- All Implemented Interfaces:
- Savable, TransactionListener
public class CollectionSavable
- extends AbstractSavable
Wrapper to save an existing collection.
CollectionSavable
public CollectionSavable(Collection<? extends Savable> c)
- Get an instance of CollectionSavable.
getPostSavables
public Collection<? extends Savable> getPostSavables(SaveContext context)
- Get the collection.
- Specified by:
getPostSavables in interface Savable- Overrides:
getPostSavables in class AbstractSavable
- Parameters:
context - SaveContext being used in this Saver session
- Returns:
- a collection of objects this SavableNode depends on
save
public void save(Connection conn,
SaveContext context)
throws SaveException,
SQLException
- NOOP.
- Parameters:
conn - the connection to use for savingcontext - SaveContext being used in this Saver session
- Throws:
SaveException
SQLException
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.