org.velocityweb
Class BaseDao

java.lang.Object
  extended byorg.velocityweb.BaseDao
Direct Known Subclasses:
HibernateDao, JdbcDao

public abstract class BaseDao
extends java.lang.Object

Base DAO class template, receive application context from service class

Author:
Jacklondon Chen

Constructor Summary
BaseDao(BaseService srv)
          contructor,force to new dao in service, not in other classes
 
Method Summary
 AppContext getAppContext()
          get application context, normally should not use this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDao

public BaseDao(BaseService srv)
contructor,force to new dao in service, not in other classes

Parameters:
srv - service object
Method Detail

getAppContext

public AppContext getAppContext()
get application context, normally should not use this

Returns:
application context