it.mokabyte.pattern.dao
Class MyDaoFactory

java.lang.Object
  |
  +--it.mokabyte.pattern.dao.MyDaoFactory

public class MyDaoFactory
extends java.lang.Object

Title: MyDaoFactory

Description: the dao factory class

Copyright: Copyright (c) 2002

Company:

Author:
Rossini S. - Dozio L.

Field Summary
static int JDBC_TYPE
           
static int XML_TYPE
          Constants of DAO type
 
Constructor Summary
MyDaoFactory()
           
 
Method Summary
static MyDao getDAO()
           Instantiate the class specified by Deployment descriptor environment entry
static MyDao getDAO(int DaoType)
           Instantiate the class specified by user
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

XML_TYPE

public static final int XML_TYPE
Constants of DAO type

JDBC_TYPE

public static final int JDBC_TYPE
Constructor Detail

MyDaoFactory

public MyDaoFactory()
Method Detail

getDAO

public static MyDao getDAO()
                    throws DAOException

Instantiate the class specified by Deployment descriptor environment entry

Returns:
the Dao class
Throws:
DAOException -  

getDAO

public static MyDao getDAO(int DaoType)
                    throws DAOException

Instantiate the class specified by user

Returns:
the Dao class
Throws:
DAOException -