org.perfectjpattern.jee.integration.dao.spring
Class LocalDaoFactory

java.lang.Object
  extended by org.perfectjpattern.jee.integration.dao.AbstractDaoFactory
      extended by org.perfectjpattern.jee.integration.dao.HibernateDaoFactory
          extended by org.perfectjpattern.jee.integration.dao.spring.LocalDaoFactory
All Implemented Interfaces:
IAbstractFactory, ISingleton, IBaseDaoFactory, IGenericDaoFactory

public final class LocalDaoFactory
extends HibernateDaoFactory

Extends HibernateDaoFactory exposing project-local specific implementations injected via IoC. This implementation was introduced to support the Spring Generic DAO example implementation.

Version:
$ $Date: Dec 8, 2008 3:35:51 AM $
Author:
Giovanni Azua
 

Constructor Summary
LocalDaoFactory()
           
 
Method Summary
 ICustomerDao createCustomerDao()
          Returns the personDao
static LocalDaoFactory getInstance()
          Returns Singleton instance of LocalDaoFactory
 void setCustomerDao(ICustomerDao aCustomerDao)
          Sets the personDao
 
Methods inherited from class org.perfectjpattern.jee.integration.dao.HibernateDaoFactory
createDao, createDao, createReadOnlyDao
 
Methods inherited from class org.perfectjpattern.jee.integration.dao.AbstractDaoFactory
setDaoSessionStrategy, setDaoTransactionStrategy, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseDaoFactory
setDaoSessionStrategy, setDaoTransactionStrategy, shutdown
 

Constructor Detail

LocalDaoFactory

public LocalDaoFactory()
Method Detail

getInstance

public static LocalDaoFactory getInstance()
Returns Singleton instance of LocalDaoFactory

Returns:
Singleton instance of LocalDaoFactory

createCustomerDao

public final ICustomerDao createCustomerDao()
Returns the personDao

Returns:
the personDao

setCustomerDao

public final void setCustomerDao(ICustomerDao aCustomerDao)
Sets the personDao

Parameters:
aCustomerDao - the personDao to set


Copyright © 2007-2009. All Rights Reserved.