|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bexee.dao.MemoryBPELProcessDAO
This class uses memory rather than persistent storage to store and load
BPELProcess
objects.
Field Summary | |
protected static java.util.Map |
map
|
Constructor Summary | |
MemoryBPELProcessDAO()
Creates a new MemoryBPELProcessDAO that uses a static
Map to manage the stored BPELProcess
objects. |
Method Summary | |
void |
delete(java.lang.String name)
Deletes a BPELProcess given its name. |
void |
deleteAll()
Deletes a *ALL* BPELProcess es. |
BPELProcess |
find(java.lang.String name)
Finds a BPELProcess given its name. |
java.lang.String |
insert(BPELProcess process)
Inserts a new BPELProcess . |
java.lang.String |
replace(BPELProcess process)
Replaces an existing BPELProcess .
|
void |
update(BPELProcess process)
Updates an existing BPELProcess . |
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 MemoryBPELProcessDAO()
MemoryBPELProcessDAO
that uses a static
Map
to manage the stored BPELProcess
objects.
Method Detail |
public void delete(java.lang.String name)
BPELProcessDAO
BPELProcess
given its name.
delete
in interface BPELProcessDAO
name
- the name of the BPELProcess
to deletepublic void deleteAll()
BPELProcessDAO
BPELProcess
es.
deleteAll
in interface BPELProcessDAO
public BPELProcess find(java.lang.String name)
BPELProcessDAO
BPELProcess
given its name.
find
in interface BPELProcessDAO
name
- the name of the BPELProcess
to find
BPELProcess
or null if no
BPELProcess
matches the given namepublic java.lang.String insert(BPELProcess process)
BPELProcessDAO
BPELProcess
.
insert
in interface BPELProcessDAO
process
- the BPELProcess
to insert
BPELProcess
which serves as a
unique identifierpublic void update(BPELProcess process) throws DAOException
BPELProcessDAO
BPELProcess
.
update
in interface BPELProcessDAO
process
- the BPELProcess
to update
DAOException
- to indicate that there went something wrongpublic java.lang.String replace(BPELProcess process) throws DAOException
BPELProcessDAO
BPELProcess
.
If the process doesn't exist it will be insert
ed,
otherwise it will be update
d.
replace
in interface BPELProcessDAO
process
- the BPELProcess
to replace
BPELProcess
. This will be a new id
in case the BPELProcess
is insert
ed or the id of the update
d
BPELProcess
.
DAOException
- to indicate that there went something wrong
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |