bexee.dao
Class JDOProcessContextDAO

java.lang.Object
  extended bybexee.dao.JDOProcessContextDAO
All Implemented Interfaces:
ProcessContextDAO

public class JDOProcessContextDAO
extends java.lang.Object
implements ProcessContextDAO

This class uses JDO to store and load ProcessContext objects.

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

Constructor Summary
JDOProcessContextDAO()
           
 
Method Summary
 void delete(java.lang.String id)
          Deletes a ProcessContext given its key.
 ProcessContext find(java.lang.String key)
          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
 

Constructor Detail

JDOProcessContextDAO

public JDOProcessContextDAO()
Method Detail

insert

public java.lang.String insert(ProcessContext ctx)
                        throws DAOException
Description copied from interface: ProcessContextDAO
Inserts a new ProcessContext.

Specified by:
insert in interface ProcessContextDAO
Parameters:
ctx - the ProcessContext to insert
Returns:
the new id of the ProcessContext
Throws:
DAOException - to indicate that there went something wrong

find

public ProcessContext find(java.lang.String key)
                    throws DAOException
Description copied from interface: ProcessContextDAO
Finds a ProcessContext given its key.

Specified by:
find in interface ProcessContextDAO
Parameters:
key - the key of the ProcessContext to find
Returns:
the ProcessContext or null if no ProcessContext matches the given key
Throws:
DAOException - to indicate that there went something wrong

delete

public void delete(java.lang.String id)
            throws DAOException
Description copied from interface: ProcessContextDAO
Deletes a ProcessContext given its key.

Specified by:
delete in interface ProcessContextDAO
Throws:
DAOException - to indicate that there went something wrong

update

public void update(ProcessContext ctx)
            throws DAOException
Description copied from interface: ProcessContextDAO
Updates an existing ProcessContext.

Specified by:
update in interface ProcessContextDAO
Parameters:
ctx - the ProcessContext to update
Throws:
DAOException - to indicate that there went something wrong


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