net.spy.db.savables
Class CollectionSavable

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.db.AbstractSavable
          extended by net.spy.db.savables.CollectionSavable
All Implemented Interfaces:
Savable, TransactionListener

public class CollectionSavable
extends AbstractSavable

Wrapper to save an existing collection.


Constructor Summary
CollectionSavable(Collection<? extends Savable> c)
          Get an instance of CollectionSavable.
 
Method Summary
 Collection<? extends Savable> getPostSavables(SaveContext context)
          Get the collection.
 void save(Connection conn, SaveContext context)
          NOOP.
 
Methods inherited from class net.spy.db.AbstractSavable
finalize, getPreSavables, isModified, isNew, modify, setModified, setNew, transactionCommited
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionSavable

public CollectionSavable(Collection<? extends Savable> c)
Get an instance of CollectionSavable.

Method Detail

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 saving
context - SaveContext being used in this Saver session
Throws:
SaveException
SQLException


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.