|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bexee.dao.MemoryProcessContextDAO
This class uses memory rather than persistent storage to store and load
ProcessContext
objects.
Field Summary | |
protected static java.util.Map |
map
|
Constructor Summary | |
MemoryProcessContextDAO()
Creates a new MemoryProcessContextDAO that uses a static
Map to manage the stored ProcessContext
objects. |
Method Summary | |
void |
delete(java.lang.String id)
Deletes a ProcessContext given its key. |
ProcessContext |
find(java.lang.String id)
Finds a ProcessContext given its key. |
java.lang.String |
insert(ProcessContext ctx)
Inserts a new ProcessContext . |
void |
update(ProcessContext ctx)
Updates an existing ProcessContext . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Map map
Constructor Detail |
public MemoryProcessContextDAO()
MemoryProcessContextDAO
that uses a static
Map
to manage the stored ProcessContext
objects.
Method Detail |
public void delete(java.lang.String id)
ProcessContextDAO
ProcessContext
given its key.
delete
in interface ProcessContextDAO
public ProcessContext find(java.lang.String id)
ProcessContextDAO
ProcessContext
given its key.
find
in interface ProcessContextDAO
id
- the key of the ProcessContext
to find
ProcessContext
or null if no
ProcessContext
matches the given keypublic java.lang.String insert(ProcessContext ctx)
ProcessContextDAO
ProcessContext
.
insert
in interface ProcessContextDAO
ctx
- the ProcessContext
to insert
ProcessContext
public void update(ProcessContext ctx) throws DAOException
ProcessContextDAO
ProcessContext
.
update
in interface ProcessContextDAO
ctx
- the ProcessContext
to update
DAOException
- to indicate that there went something wrong
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |