bexee.dao
Interface BPELProcessDAO

All Known Implementing Classes:
JDOBPELProcessDAO, MemoryBPELProcessDAO

public interface BPELProcessDAO

The BPELProcessDAO abstracts the underlying data access implementation for BPELProcess objects to enable transparent access to the data source.

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

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.
 

Method Detail

insert

public java.lang.String insert(BPELProcess process)
                        throws DAOException
Inserts a new BPELProcess.

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
Finds a BPELProcess given its name.

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
Deletes a BPELProcess given its name.

Parameters:
name - the name of the BPELProcess to delete
Throws:
DAOException - to indicate that there went something wrong

deleteAll

public void deleteAll()
               throws DAOException
Deletes a *ALL* BPELProcess es.

Throws:
DAOException - to indicate that there went something wrong

update

public void update(BPELProcess process)
            throws DAOException
Updates an existing BPELProcess.

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
Replaces an existing BPELProcess.

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

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.