|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContactDao
The implementation-independent DAO interface. Defines the operations required to be supported by an implementation.
| 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. |
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 |
| Method Detail |
|---|
Contact load(long id)
Contact from the DB, given it's id.
id - The id of the Contact to load.
Contact save(Contact contact)
contact -
void delete(long id)
Contact from the DB, given it's id.
id - The id of the Contact to delete.
Iterator<Contact> find(QueryParam qp,
Contact filter)
qp - Query Paramaters to use.
int count(Contact filter)
List<String> getUniqueLastNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||