Package org.dspace.service
Interface DSpaceCRUDService<T>
-
- Type Parameters:
T- Concrete object type.
- All Known Subinterfaces:
BitstreamFormatService,ClaimedTaskService,EntityTypeService,InProgressUserService,PoolTaskService,RegistrationDataService,RelationshipService,RelationshipTypeService,ResourcePolicyService,VersionHistoryService,WorkflowItemRoleService
- All Known Implementing Classes:
BitstreamFormatServiceImpl,ClaimedTaskServiceImpl,EntityTypeServiceImpl,InProgressUserServiceImpl,PoolTaskServiceImpl,RegistrationDataServiceImpl,RelationshipServiceImpl,RelationshipTypeServiceImpl,ResourcePolicyServiceImpl,VersionHistoryServiceImpl,WorkflowItemRoleServiceImpl
public interface DSpaceCRUDService<T>Interface containing the simple CRUD methods so we don't have to add them over and again to every service which requires these methods.- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcreate(Context context)voiddelete(Context context, T t)Tfind(Context context, int id)voidupdate(Context context, List<T> t)Persist a collection of model objects.voidupdate(Context context, T t)Persist a model object.
-
-
-
Method Detail
-
create
T create(Context context) throws SQLException, AuthorizeException
- Throws:
SQLExceptionAuthorizeException
-
find
T find(Context context, int id) throws SQLException
- Throws:
SQLException
-
update
void update(Context context, T t) throws SQLException, AuthorizeException
Persist a model object.- Parameters:
context-t- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
update
void update(Context context, List<T> t) throws SQLException, AuthorizeException
Persist a collection of model objects.- Parameters:
context-t- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
delete
void delete(Context context, T t) throws SQLException, AuthorizeException
- Throws:
SQLExceptionAuthorizeException
-
-