bexee.dao
Interface ProcessContextDAO

All Known Implementing Classes:
JDOProcessContextDAO, MemoryProcessContextDAO

public interface ProcessContextDAO

The ProcessContextDAO abstracts the underlying data access implementation for ProcessContext 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 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.
 

Method Detail

insert

public java.lang.String insert(ProcessContext ctx)
                        throws DAOException
Inserts a new ProcessContext.

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
Finds a ProcessContext given its key.

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
Deletes a ProcessContext given its key.

Throws:
DAOException - to indicate that there went something wrong

update

public void update(ProcessContext ctx)
            throws DAOException
Updates an existing ProcessContext.

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.