Package org.nuiton.topia.persistence
Interface TopiaDaoSupplier
- All Known Subinterfaces:
TopiaPersistenceContext
- All Known Implementing Classes:
AbstractTopiaPersistenceContext
public interface TopiaDaoSupplier
Contract that provides any Dao instance from a given entity class.
- Since:
- 3.0
- Author:
- bleny
-
Method Summary
Modifier and TypeMethodDescription<E extends TopiaEntity>
TopiaDao<E>Get Dao for specified class.<E extends TopiaEntity,D extends TopiaDao<E>>
DGet Dao for specified class.
-
Method Details
-
getDao
Get Dao for specified class. If the specialized Dao exists then it is returned otherwise a TopiaException will be thrown.- Type Parameters:
E- type of entity- Parameters:
entityClass- type of entity- Returns:
- the expected dao
-
getDao
Get Dao for specified class. If the specialized Dao exists then it is returned otherwise a TopiaException will be thrown.- Type Parameters:
E- type of entityD- type of dao- Parameters:
entityClass- type of entitydaoClass- the concrete dao class to use- Returns:
- the expected dao
-