public class IbatisContactDao extends org.springframework.orm.ibatis.support.SqlMapClientDaoSupport implements ContactDao
ContactDao
.Constructor and Description |
---|
IbatisContactDao() |
Modifier and Type | Method and Description |
---|---|
int |
count(Contact filter)
Return the number of Configs 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 a list of unique last names
|
Contact |
load(long id)
Load a
Contact from the DB, given it's id . |
Contact |
save(Contact contact)
Save the contact to the DB
|
public Contact load(long id) throws org.springframework.dao.DataAccessException
Contact
from the DB, given it's id .load
in interface ContactDao
id
- The id of the Contact to load.org.springframework.dao.DataAccessException
public Contact save(Contact contact)
save
in interface ContactDao
contact
- public void delete(long id)
Contact
from the DB, given it's id.delete
in interface ContactDao
id
- The id of the Contact to delete.public Iterator<Contact> find(QueryParam qp, Contact filter)
find
in interface ContactDao
qp
- Query Paramaters to use.public int count(Contact filter)
count
in interface ContactDao
public List<String> getUniqueLastNames()
getUniqueLastNames
in interface ContactDao
Copyright © 2015. All rights reserved.