|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.core.managers.persistence.GenericDao<Person>
org.jtheque.primary.dao.impl.DaoPersons
public final class DaoPersons
A Data Access Object implementation for borrowers.
| Field Summary |
|---|
| Fields inherited from interface org.jtheque.primary.dao.able.IDaoPersons |
|---|
TABLE |
| Constructor Summary | |
|---|---|
DaoPersons()
Construct a new DaoBorrowers. |
|
| Method Summary | |
|---|---|
void |
clearAll(String type)
Clear all the entities with the specified type. |
Person |
createPerson()
Create a person. |
boolean |
exist(Person person)
Indicate if the person exist in the Dao. |
boolean |
exists(String firstName,
String name,
String type)
Indicate if a person with this firstName and this name exists in the application. |
Person |
getPerson(int id)
Return the person of the specified id. |
Person |
getPerson(String firstName,
String name,
String type)
Return the person with the specified name and first name. |
Collection<Person> |
getPersons(String type)
Return all the persons. |
protected org.jtheque.core.managers.persistence.QueryMapper |
getQueryMapper()
|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Person> |
getRowMapper()
|
protected void |
load(int i)
|
protected void |
loadCache()
|
| Methods inherited from class org.jtheque.core.managers.persistence.GenericDao |
|---|
addDataListener, clearAll, create, delete, delete, get, getAll, getCache, isNotInCache, load, removeDataListener, save, setCacheEntirelyLoaded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jtheque.primary.dao.able.IDaoPersons |
|---|
create, delete, save |
| Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao |
|---|
addDataListener, clearAll, removeDataListener |
| Constructor Detail |
|---|
public DaoPersons()
| Method Detail |
|---|
public Collection<Person> getPersons(String type)
IDaoPersons
getPersons in interface IDaoPersonstype - The type of persons to search for.
public Person getPerson(int id)
IDaoPersons
getPerson in interface IDaoPersonsid - The person borrower id.
null if there is no person with this id.
public Person getPerson(String firstName,
String name,
String type)
IDaoPersons
getPerson in interface IDaoPersonsfirstName - The searched first name.name - The searched name.type - The type of persons to search for.
null.
public boolean exists(String firstName,
String name,
String type)
IDaoPersons
exists in interface IDaoPersonsfirstName - The searched first name.name - The searched name.type - The type of persons to search for.
true if an person exist with first name and this name else false.public boolean exist(Person person)
IDaoPersons
exist in interface IDaoPersonsperson - The person we must test if it's exist.
true if the person exists else false.public Person createPerson()
IDaoPersons
createPerson in interface IDaoPersonspublic void clearAll(String type)
IDaoPersons
clearAll in interface IDaoPersonstype - The type of entities to delete.protected void loadCache()
loadCache in class org.jtheque.core.managers.persistence.GenericDao<Person>protected void load(int i)
load in class org.jtheque.core.managers.persistence.GenericDao<Person>protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Person> getRowMapper()
getRowMapper in class org.jtheque.core.managers.persistence.GenericDao<Person>protected org.jtheque.core.managers.persistence.QueryMapper getQueryMapper()
getQueryMapper in class org.jtheque.core.managers.persistence.GenericDao<Person>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||