bexee.dao
Class DAOFactory

java.lang.Object
  extended bybexee.dao.DAOFactory
Direct Known Subclasses:
JDODAOFactory, MemoryDAOFactory

public abstract class DAOFactory
extends java.lang.Object

Abstract factory class for constructing various types of DAOFactory implementations, each factory supporting a different type of persistent storage implementation.

DAOFactory is an abstract class that is inherited and implemented by different concrete DAO factories to support storage implementation-specific access. The client can obtain a concrete DAO factory implementation such as MemoryDAOFactory and use it to obtain concrete DAOs that work with that specific storage implementation.

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

Constructor Summary
DAOFactory()
           
 
Method Summary
abstract  BPELProcessDAO createBPELProcessDAO()
          The concrete factories will have to implement this method.
abstract  ProcessContextDAO createProcessContextDAO()
          The concrete factories will have to implement this method.
static DAOFactory getInstance()
          Creates a new DAOFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOFactory

public DAOFactory()
Method Detail

getInstance

public static DAOFactory getInstance()
Creates a new DAOFactory. The actual type is defined by the property bexee.dao.factory.

If it is not set then MemoryDAOFactorywill be created.

Returns:
a DAOFactory implementation

createBPELProcessDAO

public abstract BPELProcessDAO createBPELProcessDAO()
The concrete factories will have to implement this method.

Returns:
a BPELProcessDAO implementation

createProcessContextDAO

public abstract ProcessContextDAO createProcessContextDAO()
The concrete factories will have to implement this method.

Returns:
a ProcessContextDAO implementation


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