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