bexee.dao
Class MemoryBPELProcessDAO

java.lang.Object
  extended bybexee.dao.MemoryBPELProcessDAO
All Implemented Interfaces:
BPELProcessDAO

public class MemoryBPELProcessDAO
extends java.lang.Object
implements BPELProcessDAO

This class uses memory rather than persistent storage to store and load BPELProcess objects.

Version:
$Revision: 1.1 $, $Date: 2004/12/15 14:18:09 $
Author:
Patric Fornasier, Pawel Kowalski

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

map

protected static java.util.Map map
Constructor Detail

MemoryBPELProcessDAO

public MemoryBPELProcessDAO()
Creates a new MemoryBPELProcessDAO that uses a static Map to manage the stored BPELProcess objects.

Method Detail

delete

public void delete(java.lang.String name)
Description copied from interface: BPELProcessDAO
Deletes a BPELProcess given its name.

Specified by:
delete in interface BPELProcessDAO
Parameters:
name - the name of the BPELProcess to delete

deleteAll

public void deleteAll()
Description copied from interface: BPELProcessDAO
Deletes a *ALL* BPELProcess es.

Specified by:
deleteAll in interface BPELProcessDAO

find

public BPELProcess find(java.lang.String name)
Description copied from interface: BPELProcessDAO
Finds a BPELProcess given its name.

Specified by:
find in interface BPELProcessDAO
Parameters:
name - the name of the BPELProcess to find
Returns:
the BPELProcess or null if no BPELProcess matches the given name

insert

public java.lang.String insert(BPELProcess process)
Description copied from interface: BPELProcessDAO
Inserts a new BPELProcess.

Specified by:
insert in interface BPELProcessDAO
Parameters:
process - the BPELProcess to insert
Returns:
the name of the BPELProcess which serves as a unique identifier

update

public void update(BPELProcess process)
            throws DAOException
Description copied from interface: BPELProcessDAO
Updates an existing BPELProcess.

Specified by:
update in interface BPELProcessDAO
Parameters:
process - the BPELProcess to update
Throws:
DAOException - to indicate that there went something wrong

replace

public java.lang.String replace(BPELProcess process)
                         throws DAOException
Description copied from interface: BPELProcessDAO
Replaces an existing BPELProcess.

If the process doesn't exist it will be insert ed, otherwise it will be updated.

Specified by:
replace in interface BPELProcessDAO
Parameters:
process - the BPELProcess to replace
Returns:
the id of the BPELProcess. This will be a new id in case the BPELProcess is insert ed or the id of the update d BPELProcess.
Throws:
DAOException - to indicate that there went something wrong


Copyright © 2004 Berne University of Applied Sciences. All Rights Reserved.