Package be.gaudry.bibliobrol.dao.mysql
Class MySQLPerson
java.lang.Object
be.gaudry.bibliobrol.dao.mysql.MySQLPerson
- All Implemented Interfaces:
IPersonDao
- Since:
- 1.0 4 oct. 2008
- Author:
- Steph GAUDRY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPicture(int personId)TODO : load image from the DB.voidloadAsyncPersonsLos(AbstractBrolWorker<Integer> worker, ActorRole role)voidloadAsyncPersonsLos(AbstractBrolWorker<Integer> worker, String lastName)voidloadAsyncRoles(AbstractBrolWorker<Integer> worker, int personId)Load roles for a personloadPerson(int id)
-
Constructor Details
-
MySQLPerson
- Parameters:
dbConnection-
-
-
Method Details
-
loadAsyncPersonsLos
- Specified by:
loadAsyncPersonsLosin interfaceIPersonDao- Parameters:
worker- to allow loading the list asynchronous and sending each result in an Object[]role- role where the persons may be
-
loadAsyncPersonsLos
- Specified by:
loadAsyncPersonsLosin interfaceIPersonDao- Parameters:
worker- to allow loading the list asynchronous and sending each result in an Object[]lastName- of the persons
-
loadPerson
- Specified by:
loadPersonin interfaceIPersonDao
-
loadActorRoleCatalog
- Specified by:
loadActorRoleCatalogin interfaceIPersonDao
-
loadAsyncRoles
Description copied from interface:IPersonDaoLoad roles for a person- Specified by:
loadAsyncRolesin interfaceIPersonDao- Parameters:
worker- to allow loading the list asynchronous and sending each result in an Object[]personId- ID of the person for whom we want to load the roles
-
getPicture
TODO : load image from the DB. Create a new table person_picture(id,picture) for performances (we don't always need pictures)- Specified by:
getPicturein interfaceIPersonDao- Returns:
- Picture of the person, or null if nothing found
-