T
- the DAO typepublic interface DaoRegister<T>
Makes it possible to retrieve a default unnamed DAO or one or more named DAO's.
DAO's retrieved from a DaoRegister should always be returned
to the DaoRegister by calling the returnDao(Object)
method.
Modifier and Type | Method and Description |
---|---|
T |
getDao(String name)
Returns the DAO with the specified name.
|
T |
getDefaultDao()
Returns the default DAO .
|
void |
returnDao(T dao)
Returns the DAO to the register.
|
T getDefaultDao()
UnsupportedOperationException
- if the getDao() operation is
not supported by this DaoRegister.T getDao(String name)
name
- the name of the DAOUnsupportedOperationException
- if the getDao(String) operation is
not supported by this DaoRegister.void returnDao(T dao)
dao
- the DAO to returnCopyright © 2020. All rights reserved.