org.fm.addressbook.dao
Class DAOFactory

java.lang.Object
  extended by org.fm.addressbook.dao.DAOFactory
Direct Known Subclasses:
HibernateDAOFactory

public abstract class DAOFactory
extends java.lang.Object

JContact- online Address Book Management Systemhttp://jcontact.sourceforge.net/

Licensed under the terms of any of the following licenses at your choice: -
GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/licenses/gpl.html -
GNU Lesser General Public License Version 2.1 or later (the "LGPL") http://www.gnu.org/licenses/lgpl.html

DAO Factory class.

Author:
Tennyson Varghese
Aneesh S

Field Summary
static int HIBERNATE
           
 
Constructor Summary
DAOFactory()
           
 
Method Summary
abstract  AddressBookDAO getAddressBookDAO()
           
abstract  CategoryDAO getCategoryDAO()
           
abstract  ContactDAO getContactDAO()
           
static DAOFactory getDAOFactory()
           
static DAOFactory getDAOFactory(int whichFactory)
          Select the DAOFactory with given param whichFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE

public static final int HIBERNATE
See Also:
Constant Field Values
Constructor Detail

DAOFactory

public DAOFactory()
Method Detail

getAddressBookDAO

public abstract AddressBookDAO getAddressBookDAO()

getContactDAO

public abstract ContactDAO getContactDAO()

getCategoryDAO

public abstract CategoryDAO getCategoryDAO()

getDAOFactory

public static DAOFactory getDAOFactory(int whichFactory)
Select the DAOFactory with given param whichFactory

Parameters:
whichFactory -
Returns:
DAOFactory

getDAOFactory

public static DAOFactory getDAOFactory()