bexee.dao
Class MemoryProcessContextDAO

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

public class MemoryProcessContextDAO
extends java.lang.Object
implements ProcessContextDAO

This class uses memory rather than persistent storage to store and load ProcessContext 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
MemoryProcessContextDAO()
          Creates a new MemoryProcessContextDAO that uses a static Map to manage the stored ProcessContext objects.
 
Method Summary
 void delete(java.lang.String id)
          Deletes a ProcessContext given its key.
 ProcessContext find(java.lang.String id)
          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
 

Field Detail

map

protected static java.util.Map map
Constructor Detail

MemoryProcessContextDAO

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

Method Detail

delete

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

Specified by:
delete in interface ProcessContextDAO

find

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

Specified by:
find in interface ProcessContextDAO
Parameters:
id - the key of the ProcessContext to find
Returns:
the ProcessContext or null if no ProcessContext matches the given key

insert

public java.lang.String insert(ProcessContext ctx)
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

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.