au.edu.archer.dao.impl
Class BaseDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.jpa.support.JpaDaoSupport
          extended by au.edu.archer.dao.impl.BaseDaoImpl
All Implemented Interfaces:
BaseDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
DatasetHandleDaoImpl

public class BaseDaoImpl
extends org.springframework.orm.jpa.support.JpaDaoSupport
implements BaseDao

Implements BaseDao.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BaseDaoImpl()
           
 
Method Summary
 void delete(java.lang.Class classObj, java.lang.Object key)
          Delete the entity.
 java.lang.Object findById(java.lang.Class classObj, java.lang.Object key)
          Find by key id.
 java.util.List findByQuery(java.lang.String queryString, java.lang.Object... values)
          Find by query.
 void save(java.lang.Object obj)
          Save the entity.
 void update(java.lang.Object obj)
          Update the entity.
 
Methods inherited from class org.springframework.orm.jpa.support.JpaDaoSupport
checkDaoConfig, createJpaTemplate, createJpaTemplate, getJpaTemplate, setEntityManager, setEntityManagerFactory, setJpaTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseDaoImpl

public BaseDaoImpl()
Method Detail

findByQuery

public java.util.List findByQuery(java.lang.String queryString,
                                  java.lang.Object... values)
Find by query.

Specified by:
findByQuery in interface BaseDao
Parameters:
queryString - Query string.
values - Query parameters.
Returns:
List of Object.

findById

public java.lang.Object findById(java.lang.Class classObj,
                                 java.lang.Object key)
Find by key id.

Specified by:
findById in interface BaseDao
Parameters:
classObj - entity class.
key - id.
Returns:
Object

save

public void save(java.lang.Object obj)
Save the entity.

Specified by:
save in interface BaseDao
Parameters:
obj - to persist.

update

public void update(java.lang.Object obj)
Update the entity.

Specified by:
update in interface BaseDao
Parameters:
obj - to persist.

delete

public void delete(java.lang.Class classObj,
                   java.lang.Object key)
Delete the entity.

Specified by:
delete in interface BaseDao
Parameters:
classObj - entity class.
key - entity key id.


Copyright © 2008-09 Monash University. All Rights Reserved.