ch.elca.el4j.services.persistence.jpa.dao
Class ConvenienceJpaDaoSupport

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.jpa.support.JpaDaoSupport
          extended by ch.elca.el4j.services.persistence.jpa.dao.ConvenienceJpaDaoSupport
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
GenericJpaDao

public class ConvenienceJpaDaoSupport
extends JpaDaoSupport

Convenience JPA dao support class to be able to return the convenience JPA template without casting it.

Author:
Simon Stelling (SST)
File-location:
ConvenienceJpaDaoSupport
Last check-in date:
2010-12-21 11:08:04 +0100 (Di, 21. Dez 2010) by swismer for revision 4253

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ConvenienceJpaDaoSupport()
           
 
Method Summary
protected  JpaTemplate createJpaTemplate(javax.persistence.EntityManagerFactory emf)
          
 ConvenienceJpaTemplate getConvenienceJpaTemplate()
           
 void setConvenienceJpaTemplate(ConvenienceJpaTemplate template)
           
 
Methods inherited from class org.springframework.orm.jpa.support.JpaDaoSupport
checkDaoConfig, 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

ConvenienceJpaDaoSupport

public ConvenienceJpaDaoSupport()
Method Detail

getConvenienceJpaTemplate

public ConvenienceJpaTemplate getConvenienceJpaTemplate()
Returns:
Returns the Hibernate template casted to the convenience model of it.

setConvenienceJpaTemplate

public void setConvenienceJpaTemplate(ConvenienceJpaTemplate template)
Parameters:
template - Is the convenience Hibernate template to set.

createJpaTemplate

protected JpaTemplate createJpaTemplate(javax.persistence.EntityManagerFactory emf)

Overrides:
createJpaTemplate in class JpaDaoSupport


Copyright © 2005-2011 ELCA. All Rights Reserved.