org.clazzes.util.jpa.generic
Class GenericJoinJpaDAO<T,B>
java.lang.Object
org.clazzes.util.jpa.dao.JpaDAOSupport
org.clazzes.util.jpa.generic.GenericJpaDAO<T>
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)
|
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 |
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
.
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.