public class ContactDaoImpl extends Object implements ContactDao
Constructor and Description |
---|
ContactDaoImpl()
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(Contact contact) |
int |
count() |
void |
delete(Contact contact)
delete contact from the database
|
Iterator<Contact> |
find(QueryParam qp)
select contacts and apply sort
|
Contact |
get(long id)
find contact by id
|
protected List<Contact> |
getIndex(SortParam sort) |
void |
save(Contact contact)
add contact to the database
|
public Contact get(long id)
get
in interface ContactDao
id
- protected void add(Contact contact)
public Iterator<Contact> find(QueryParam qp)
find
in interface ContactDao
qp
- the query parameterpublic int count()
count
in interface ContactDao
public void save(Contact contact)
contact
- public void delete(Contact contact)
contact
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.