|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
net.spy.db.savables.SavableHashMap
A subclass of HashMap that implements SavableNode. The save() method does nothing (and should not be called), but all of the values in the Map will be returned from getPostSavables().
| Constructor Summary | |
SavableHashMap()
Get an instance of SavableHashMap. |
|
SavableHashMap(int initCap)
Get an instance of SavableHashMap with the given initial capacity. |
|
SavableHashMap(int initialCapacity,
float loadFactor)
Get an instance of SavableHashMap with the given initial capacity and load factors. |
|
SavableHashMap(Map map)
Get an instance of SavableHashMap populated with the given Map of objects. |
|
| Method Summary | |
Collection |
getPostSavables(SaveContext context)
Get a Collection of all of the SavableNodes this SavableNode is holding that will need to be saved after this Savable. |
Collection |
getPreSavables(SaveContext context)
Get a Collection of all of the SavableNodes this SavableNode is holding that will need to be saved before this Savable. |
Collection |
getSavables(SaveContext context)
This method is deprecated and should return the same value as getPostSavables. |
boolean |
isModified()
Has this object been modified? |
boolean |
isNew()
Is this a new object? |
void |
save(Connection conn,
SaveContext context)
Do nothing. |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Constructor Detail |
public SavableHashMap()
public SavableHashMap(Map map)
public SavableHashMap(int initCap)
public SavableHashMap(int initialCapacity,
float loadFactor)
| Method Detail |
public boolean isNew()
Savable
isNew in interface Savablepublic boolean isModified()
Savable
isModified in interface Savable
public void save(Connection conn,
SaveContext context)
throws SaveException,
SQLException
save in interface Savableconn - the connection to use for savingcontext - SaveContext being used in this Saver session
SaveException
SQLExceptionpublic Collection getPreSavables(SaveContext context)
SavableNode
getPreSavables in interface SavableNodecontext - SaveContext being used in this Saver session
public Collection getPostSavables(SaveContext context)
SavableNode
getPostSavables in interface SavableNodecontext - SaveContext being used in this Saver session
public Collection getSavables(SaveContext context)
SavableNode
getSavables in interface SavableNode
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||