|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
net.spy.db.savables.SavableHashMap
public class SavableHashMap
A subclass of HashMap that implements Savable. 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(java.util.Map map)
Get an instance of SavableHashMap populated with the given Map of objects. |
|
| Method Summary | |
|---|---|
java.util.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. |
java.util.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. |
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.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(java.util.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(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 getPreSavables(SaveContext context)
Savable
getPreSavables in interface Savablecontext - SaveContext being used in this Saver session
public java.util.Collection 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 | |||||||||