Package ejava.examples.daoex.dao
Interface AuthorDAO
-
- All Known Implementing Classes:
JPAAuthorDAO
public interface AuthorDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(Author author)Authorget(long id)AuthorgetByQuery(long id)voidremove(Author author)Authorupdate(Author author)AuthorupdateByMerge(Author author)
-
-
-
Method Detail
-
create
void create(Author author) throws DAOException
- Throws:
DAOException
-
get
Author get(long id) throws DAOException
- Throws:
DAOException
-
getByQuery
Author getByQuery(long id) throws DAOException
- Throws:
DAOException
-
update
Author update(Author author) throws DAOException
- Throws:
DAOException
-
updateByMerge
Author updateByMerge(Author author) throws DAOException
- Throws:
DAOException
-
remove
void remove(Author author) throws DAOException
- Throws:
DAOException
-
-