public abstract class AbstractDaoAdapterRegister<D,A> extends AbstractDaoRegister<D>
Constructor and Description |
---|
AbstractDaoAdapterRegister(A defaultAdaptable) |
AbstractDaoAdapterRegister(A defaultAdaptable,
Map<String,? extends A> adaptableMap) |
AbstractDaoAdapterRegister(Map<String,? extends A> adaptableMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToSessionMap(Map<String,? extends A> adaptableMap) |
protected abstract D |
createAdapter(A adaptable)
This method creates the Dao Adapter from the Adaptable.
|
D |
getDao(String name)
Returns the DAO with the specified name.
|
D |
getDefaultDao()
Returns the default DAO .
|
returnDao
public AbstractDaoAdapterRegister(A defaultAdaptable)
public AbstractDaoAdapterRegister(A defaultAdaptable, Map<String,? extends A> adaptableMap)
public D getDefaultDao()
DaoRegister
getDefaultDao
in interface DaoRegister<D>
getDefaultDao
in class AbstractDaoRegister<D>
public D getDao(String name)
DaoRegister
getDao
in interface DaoRegister<D>
getDao
in class AbstractDaoRegister<D>
name
- the name of the DAOprotected abstract D createAdapter(A adaptable)
NOTE
This method can not reference any object fields because this
method is called in the constructor of the
AbstractDaoAdapterRegister
class.
adaptable
- The object that will be adapted by a Dao AdapterCopyright © 2020. All rights reserved.