org.clazzes.util.jpa.generic
Class GenericJoinJpaDAO<T,B>

java.lang.Object
  extended by org.clazzes.util.jpa.dao.JpaDAOSupport
      extended by org.clazzes.util.jpa.generic.GenericJpaDAO<T>
          extended by org.clazzes.util.jpa.generic.GenericJoinJpaDAO<T,B>
All Implemented Interfaces:
org.clazzes.util.aop.generic.GenericDAO<T>, org.clazzes.util.aop.generic.GenericJoinDAO<T,B>

public class GenericJoinJpaDAO<T,B>
extends GenericJpaDAO<T>
implements org.clazzes.util.aop.generic.GenericJoinDAO<T,B>

A JPA implementation of GenericJoinDAO.


Constructor Summary
GenericJoinJpaDAO(java.lang.Class<T> persistentClass, java.lang.Class<B> persistentBaseClass, java.lang.String joinPropertyName)
           
 
Method Summary
 java.util.List<T> getAllJoined(java.io.Serializable bId)
           
 java.lang.Class<B> getPersistentBaseClass()
           
 
Methods inherited from class org.clazzes.util.jpa.generic.GenericJpaDAO
delete, get, getPersistentClass, insert, merge, refresh, update
 
Methods inherited from class org.clazzes.util.jpa.dao.JpaDAOSupport
getEntityManager, getThreadLocalKey, setThreadLocalKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.clazzes.util.aop.generic.GenericDAO
delete, get, getPersistentClass, insert, merge, refresh, update
 

Constructor Detail

GenericJoinJpaDAO

public GenericJoinJpaDAO(java.lang.Class<T> persistentClass,
                         java.lang.Class<B> persistentBaseClass,
                         java.lang.String joinPropertyName)
Parameters:
persistentClass - The class object of the persisted class T.
persistentBaseClass - The class object of the base class B.
joinPropertyName - The name of the property of T, which is is of type T.
Method Detail

getAllJoined

public java.util.List<T> getAllJoined(java.io.Serializable bId)
Specified by:
getAllJoined in interface org.clazzes.util.aop.generic.GenericJoinDAO<T,B>

getPersistentBaseClass

public java.lang.Class<B> getPersistentBaseClass()
Specified by:
getPersistentBaseClass in interface org.clazzes.util.aop.generic.GenericJoinDAO<T,B>


Copyright © 2011. All Rights Reserved.