bexee.dao
Class JDOBPELProcessDAO

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

public class JDOBPELProcessDAO
extends java.lang.Object
implements BPELProcessDAO

This class uses JDO to store and load BPELProcess objects.

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

Constructor Summary
JDOBPELProcessDAO()
           
 
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
 

Constructor Detail

JDOBPELProcessDAO

public JDOBPELProcessDAO()
Method Detail

insert

public java.lang.String insert(BPELProcess process)
                        throws DAOException
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
Throws:
DAOException - to indicate that there went something wrong

find

public BPELProcess find(java.lang.String name)
                 throws DAOException
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
Throws:
DAOException - to indicate that there went something wrong

delete

public void delete(java.lang.String name)
            throws DAOException
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
Throws:
DAOException - to indicate that there went something wrong

deleteAll

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

Specified by:
deleteAll in interface BPELProcessDAO
Throws:
DAOException - to indicate that there went something wrong

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.