|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<Savable>
net.spy.db.savables.SavableHashSet
public class SavableHashSet
A subclass of HashSet that implements Savable. The save() method does nothing (and should not be called), but all of the objects in the Set will be returned from getPostSavables().
| Constructor Summary | |
|---|---|
SavableHashSet()
Get an instance of SavableHashSet. |
|
SavableHashSet(java.util.Collection<Savable> col)
Get an instance of SavableHashSet populated with the given Collection of objects. |
|
SavableHashSet(int initCap)
Get an instance of SavableHashSet with the given initial capacity. |
|
SavableHashSet(int initialCapacity,
float loadFactor)
Get an instance of SavableHashSet with the given initial capacity and load factors. |
|
| Method Summary | |
|---|---|
java.util.Collection<Savable> |
getPostSavables(SaveContext context)
Get a Collection of all of the SavableNodes this SavableNode is holding that will need to be saved after this Savable. |
java.util.Collection<Savable> |
getPreSavables(SaveContext context)
Get a Collection of all of the SavableNodes this SavableNode is holding that will need to be saved before this Savable. |
boolean |
isModified()
Has this object been modified? |
boolean |
isNew()
Is this a new object? |
void |
save(java.sql.Connection conn,
SaveContext context)
Do nothing. |
| Methods inherited from class java.util.HashSet |
|---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public SavableHashSet()
public SavableHashSet(java.util.Collection<Savable> col)
public SavableHashSet(int initCap)
public SavableHashSet(int initialCapacity,
float loadFactor)
| Method Detail |
|---|
public boolean isNew()
Savable
isNew in interface Savablepublic boolean isModified()
Savable
isModified in interface Savable
public void save(java.sql.Connection conn,
SaveContext context)
throws SaveException,
java.sql.SQLException
save in interface Savableconn - the connection to use for savingcontext - SaveContext being used in this Saver session
SaveException
java.sql.SQLExceptionpublic java.util.Collection<Savable> getPreSavables(SaveContext context)
Savable
getPreSavables in interface Savablecontext - SaveContext being used in this Saver session
public java.util.Collection<Savable> getPostSavables(SaveContext context)
Savable
getPostSavables in interface Savablecontext - SaveContext being used in this Saver session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||