public interface ContactDao
Modifier and Type | Method and Description |
---|---|
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
|
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)
Copyright © 2015. All rights reserved.