T
- The DAO typepublic abstract class AbstractDaoRegister<D> extends Object implements DaoRegister<D>
getDefaultDao()
and getDao(String)
methods both throw a
UnsupportedOperationException
. The returnDao(Object)
methods
does nothing.Constructor and Description |
---|
AbstractDaoRegister() |
Modifier and Type | Method and Description |
---|---|
D |
getDao(String name)
Returns the DAO with the specified name.
|
D |
getDefaultDao()
Returns the default DAO .
|
void |
returnDao(D dao)
Returns the DAO to the register.
|
public D getDefaultDao()
DaoRegister
getDefaultDao
in interface DaoRegister<D>
public D getDao(String name)
DaoRegister
getDao
in interface DaoRegister<D>
name
- the name of the DAOpublic void returnDao(D dao)
DaoRegister
returnDao
in interface DaoRegister<D>
dao
- the DAO to returnCopyright © 2020. All rights reserved.