|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.contrib.phonebook.ShadesContactDao
public class ShadesContactDao
| Constructor Summary | |
|---|---|
ShadesContactDao()
Creates a new instance of ShadesContactDao |
|
| Method Summary | |
|---|---|
int |
count(Contact filter)
Return the number of Contacts in the DB. |
void |
delete(long id)
Delete a Contact from the DB, given it's id. |
Iterator<Contact> |
find(QueryParam qp,
Contact filter)
Query the DB, using the supplied query details. |
DataSource |
getDataSource()
|
List<String> |
getUniqueLastNames()
Returns the list of all unique last names in the database |
Contact |
load(long id)
Load a Contact from the DB, given it's id. |
Contact |
save(Contact contact)
Save the contact to the DB |
void |
setDataSource(DataSource ds)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShadesContactDao()
| Method Detail |
|---|
public Contact load(long id)
ContactDaoContact from the DB, given it's id.
load in interface ContactDaoid - The id of the Contact to load.
public Contact save(Contact contact)
ContactDao
save in interface ContactDaopublic void delete(long id)
ContactDaoContact from the DB, given it's id.
delete in interface ContactDaoid - The id of the Contact to delete.
public Iterator<Contact> find(QueryParam qp,
Contact filter)
ContactDao
find in interface ContactDaoqp - Query Paramaters to use.
public int count(Contact filter)
ContactDao
count in interface ContactDaopublic List<String> getUniqueLastNames()
ContactDao
getUniqueLastNames in interface ContactDaopublic final void setDataSource(DataSource ds)
public final DataSource getDataSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||