|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.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()
Constructor |
|
| Method Summary | |
|---|---|
protected void |
add(Contact contact)
|
int |
count()
|
void |
delete(Contact contact)
delete contact from the database |
java.util.Iterator |
find(QueryParam qp)
select contacts and apply sort |
Contact |
get(long id)
find contact by id |
protected java.util.List |
getIndex(java.lang.String prop,
boolean asc)
|
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()
count - number of contacts to generate at startup| Method Detail |
|---|
public Contact get(long id)
get in interface ContactDaoid -
protected void add(Contact contact)
public java.util.Iterator find(QueryParam qp)
find in interface ContactDaofirst - count - sortProperty - sortAsc -
protected java.util.List getIndex(java.lang.String prop,
boolean asc)
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 | |||||||||