|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.core.managers.persistence.GenericDao<Book>
org.jtheque.books.persistence.dao.impl.DaoBooks
public final class DaoBooks
A Dao implementation for books.
| Field Summary |
|---|
| Fields inherited from interface org.jtheque.books.persistence.dao.able.IDaoBooks |
|---|
BOOKS_AUTHOR_TABLE, TABLE |
| Constructor Summary | |
|---|---|
DaoBooks()
Construct a new DaoBooks. |
|
| Method Summary | |
|---|---|
void |
create(Book book)
Create the book. |
Book |
createBook()
Create an empty book. |
boolean |
delete(Book book)
Delete the book. |
Collection<Book> |
getBooks()
Return all the books. |
protected org.jtheque.core.managers.persistence.QueryMapper |
getQueryMapper()
|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Book> |
getRowMapper()
|
protected void |
load(int i)
|
protected void |
loadCache()
|
void |
save(Book book)
Save the book. |
| Methods inherited from class org.jtheque.core.managers.persistence.GenericDao |
|---|
addDataListener, clearAll, delete, get, getAll, getCache, isNotInCache, load, removeDataListener, setCacheEntirelyLoaded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao |
|---|
addDataListener, clearAll, removeDataListener |
| Constructor Detail |
|---|
public DaoBooks()
| Method Detail |
|---|
public Collection<Book> getBooks()
IDaoBooks
getBooks in interface IDaoBookspublic boolean delete(Book book)
IDaoBooks
delete in interface IDaoBooksdelete in class org.jtheque.core.managers.persistence.GenericDao<Book>book - The book to delete.
public void save(Book book)
IDaoBooks
save in interface IDaoBookssave in class org.jtheque.core.managers.persistence.GenericDao<Book>book - The book to save.public void create(Book book)
IDaoBooks
create in interface IDaoBookscreate in class org.jtheque.core.managers.persistence.GenericDao<Book>book - The book to create.protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Book> getRowMapper()
getRowMapper in class org.jtheque.core.managers.persistence.GenericDao<Book>protected org.jtheque.core.managers.persistence.QueryMapper getQueryMapper()
getQueryMapper in class org.jtheque.core.managers.persistence.GenericDao<Book>protected void loadCache()
loadCache in class org.jtheque.core.managers.persistence.GenericDao<Book>protected void load(int i)
load in class org.jtheque.core.managers.persistence.GenericDao<Book>public Book createBook()
IDaoBooks
createBook in interface IDaoBooks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||