|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.examples.spring.common.ContactDaoImpl
public class ContactDaoImpl
a dao implementation with an auto-generated embedded database. in a true application this dao would interface with a real database, but because we want to keep dependencies to a minimum we generate our own database here.
| Constructor Summary | |
|---|---|
ContactDaoImpl()
Construct. |
|
| Method Summary | |
|---|---|
protected void |
add(Contact contact)
|
int |
count()
|
void |
delete(Contact contact)
delete contact from the database |
Iterator<Contact> |
find(QueryParam qp)
select contacts and apply sort |
Contact |
get(long id)
find contact by id |
protected List<Contact> |
getIndex(SortParam sort)
|
void |
save(Contact contact)
add contact to the database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContactDaoImpl()
| Method Detail |
|---|
public Contact get(long id)
get in interface ContactDaoid -
protected void add(Contact contact)
public Iterator<Contact> find(QueryParam qp)
find in interface ContactDaoqp - the query parameter
protected List<Contact> getIndex(SortParam sort)
public int count()
count in interface ContactDaopublic void save(Contact contact)
contact - public void delete(Contact contact)
contact -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||