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

public class CollectionSavable
extends AbstractSavable

Wrapper to save an existing collection.


Constructor Summary
CollectionSavable(java.util.Collection c)
          Get an instance of CollectionSavable.
 
Method Summary
 java.util.Collection getPostSavables(SaveContext context)
          Get the collection.
 void save(java.sql.Connection conn, SaveContext context)
          NOOP.
 
Methods inherited from class net.spy.db.AbstractSavable
finalize, getPreSavables, isModified, isNew, modify, setModified, setNew, setSaved
 
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(java.util.Collection c)
Get an instance of CollectionSavable.

Method Detail

getPostSavables

public java.util.Collection 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(java.sql.Connection conn,
                 SaveContext context)
          throws SaveException,
                 java.sql.SQLException
NOOP.

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


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