|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Id
- Identification typeElement
- Element typepublic interface IBaseDao<Id,Element>
Data Access Object (DAO) Pattern: Abstracts from any direct type of
database or persistence mechanism. Provides specific operations without
exposing details of the database.
Responsibility : Base Data Access Object definition including:
IBaseReadOnlyDao
Method Summary | |
---|---|
Id |
create(Element anElement)
Returns the ID of the newly created Element. |
boolean |
delete(Element anElement)
Returns true if the Element was deleted, false otherwise i.e. |
void |
deleteAll()
Deletes all Element from the persistent storage. |
boolean |
update(Element anElement)
Returns true if the Element was updated, false otherwise i.e. |
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseReadOnlyDao |
---|
contains, count, findAll, findById, getSession, getTransaction |
Method Detail |
---|
Id create(Element anElement) throws DaoException, IllegalArgumentException
anElement
- Element to create
DaoException
IllegalArgumentException
- 'anElement' must not be null.boolean update(Element anElement) throws DaoException, IllegalArgumentException
anElement
- Element to update
DaoException
IllegalArgumentException
- 'anElement' must not be null.boolean delete(Element anElement) throws DaoException, IllegalArgumentException
anElement
- Element to delete
DaoException
IllegalArgumentException
- 'anElement' must not be null.void deleteAll() throws DaoException
DaoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |