org.clazzes.util.aop.generic
Interface GenericJoinDAO<T,B>

Type Parameters:
T - The type, which is retrieved by this DAO.
B - The base type to which the type T is joined.
All Superinterfaces:
GenericDAO<T>

public interface GenericJoinDAO<T,B>
extends GenericDAO<T>

This interface encapsulates DAOs for types T which reference a base type B through a foreign key.


Method Summary
 List<T> getAllJoined(Serializable bId)
           
 Class<B> getPersistentBaseClass()
           
 
Methods inherited from interface org.clazzes.util.aop.generic.GenericDAO
delete, get, getPersistentClass, insert, merge, refresh, update
 

Method Detail

getPersistentBaseClass

Class<B> getPersistentBaseClass()
Returns:
The class object for the persistent base class B.

getAllJoined

List<T> getAllJoined(Serializable bId)
Parameters:
bId - The database Id of the base object with the typeB.
Returns:
A list of all objects of type T joined to an object of type B from the DB.


Copyright © 2012. All Rights Reserved.