|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.javagroups.persistence.DBPersistenceManager
Class will be utilized
| Constructor Summary | |
|---|---|
DBPersistenceManager(java.io.InputStream input)
Duplicate constructor allowing inputstream |
|
DBPersistenceManager(java.lang.String filename)
Default construct |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the key-cache as well as all entries |
protected void |
init(java.io.InputStream in)
used to intitiailize complete DB access. |
java.io.Serializable |
remove(java.io.Serializable key)
Used to remove existing entry |
java.util.Map |
retrieveAll()
Used to retrieve the persisted map back to its last known state |
void |
save(java.io.Serializable key,
java.io.Serializable val)
Save new NV pair as serializable objects or if already exist; store new state |
void |
saveAll(java.util.Map map)
Used to save all row entries for the map in to DB |
void |
shutDown()
Shutting down the database cleanly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBPersistenceManager(java.lang.String filename)
throws java.lang.Exception
filename - absolute filepath
Exception;
java.lang.Exception
public DBPersistenceManager(java.io.InputStream input)
throws java.lang.Exception
input -
java.lang.Exception| Method Detail |
protected void init(java.io.InputStream in)
throws java.lang.Exception
Exception;
java.lang.Exception
public void save(java.io.Serializable key,
java.io.Serializable val)
throws CannotPersistException
save in interface PersistenceManagerCannotPersistException;
CannotPersistException
public java.io.Serializable remove(java.io.Serializable key)
throws CannotRemoveException
remove in interface PersistenceManagerCannotRemoveException;
CannotRemoveException
public void saveAll(java.util.Map map)
throws CannotPersistException
saveAll in interface PersistenceManagerCannotPersistException;
CannotPersistException
public java.util.Map retrieveAll()
throws CannotRetrieveException
retrieveAll in interface PersistenceManagerCannotRetrieveException;
CannotRetrieveException
public void clear()
throws CannotRemoveException
clear in interface PersistenceManagerCannotRemoveException;
CannotRemoveExceptionpublic void shutDown()
shutDown in interface PersistenceManager
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||