|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.examples.repeater.ContactsDatabase
public class ContactsDatabase
simple database for contacts
| Constructor Summary | |
|---|---|
ContactsDatabase(int count)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
add(Contact contact)
|
void |
delete(Contact contact)
delete contact from the database |
List<Contact> |
find(int first,
int count,
SortParam sort)
select contacts and apply sort |
Contact |
get(long id)
find contact by id |
int |
getCount()
|
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 ContactsDatabase(int count)
count - number of contacts to generate at startup| Method Detail |
|---|
public Contact get(long id)
id -
protected void add(Contact contact)
public List<Contact> find(int first,
int count,
SortParam sort)
first - count - sort -
protected List<Contact> getIndex(SortParam sort)
public int getCount()
public 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 | |||||||||