|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
java.util.List |
find(int first,
int count,
java.lang.String sortProperty,
boolean sortAsc)
select contacts and apply sort |
Contact |
get(long id)
find contact by id |
int |
getCount()
|
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 ContactsDatabase(int count)
count
- number of contacts to generate at startupMethod Detail |
---|
public Contact get(long id)
id
-
protected void add(Contact contact)
public java.util.List find(int first, int count, java.lang.String sortProperty, boolean sortAsc)
first
- count
- sortProperty
- sortAsc
-
protected java.util.List getIndex(java.lang.String prop, boolean asc)
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 |