@Lazy @Service public class PatientService extends Object
| Constructor and Description |
|---|
PatientService() |
| Modifier and Type | Method and Description |
|---|---|
Patient |
create(Patient patient) |
boolean |
deleteById(Integer id) |
Entity |
getEntity() |
Patient |
read(Integer id) |
Iterable<Patient> |
readAll() |
EntityPager<Patient> |
readAll(int start,
int num,
List<QueryRule> queryRules) |
void |
update(Patient patient) |
@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_WRITE_PATIENT\')") public Patient create(Patient patient) throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_PATIENT\')") public Patient read(Integer id) throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_WRITE_PATIENT\')") public void update(Patient patient) throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_WRITE_PATIENT\')") public boolean deleteById(Integer id) throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_PATIENT\')") public Iterable<Patient> readAll() throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_PATIENT\')") public EntityPager<Patient> readAll(int start, int num, List<QueryRule> queryRules) throws DatabaseException
DatabaseException@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_PATIENT\')") public Entity getEntity() throws DatabaseException
DatabaseExceptionCopyright © 2013. All Rights Reserved.