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