OOP SimpleDaoHelper Version 1.2

com.bentofw.dao
Class DaoHelperFactory

java.lang.Object
  extended by com.bentofw.dao.DaoHelperFactory

public class DaoHelperFactory
extends java.lang.Object

Given the fully qualified class name, this class creates the instance of SimpleDaoHelper interface.

Once the instance is created for the specified class name, this instance is cached. And the subsequent call of this method with the same class name return it soon, without creating another instance. Because all the available implementations of SimpleDaoHelper interface is Thread Safe, only the single instance will be enough.

Author:
Jun Inamori
See Also:
SimpleDaoHelper

Constructor Summary
DaoHelperFactory()
           
 
Method Summary
static SimpleDaoHelper getDaoHelper(java.lang.String className)
          Given the fully qualified class name, this method creates the instance of SimpleDaoHelper interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoHelperFactory

public DaoHelperFactory()
Method Detail

getDaoHelper

public static SimpleDaoHelper getDaoHelper(java.lang.String className)
                                    throws NestedException
Given the fully qualified class name, this method creates the instance of SimpleDaoHelper interface.

In this package, the following 3 implementations are included: All these implementations are packaged under com.bentofw.dao package. Please specify the fully qualified class name of one of these 3 implementations.

Once the instance is created for the specified class name, this instance is cached. And the subsequent call of this method with the same class name return it soon, without creating another instance. Because all the available implementations of SimpleDaoHelper interface is Thread Safe, only the single instance will be enough.

Parameters:
className - the fully qualified class name of the implementation of SimpleDaoHelper interface.
Returns:
The instance of SimpleDaoHelper.
Throws:
NestedException

OOP SimpleDaoHelper Version 1.2

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.