Package org.dspace.app.rest.repository
Interface ReloadableEntityObjectRepository<T extends ReloadableEntity<PK>,PK extends Serializable>
-
- Type Parameters:
T- the ReloadableEntity typePK- the primary key type
- All Known Implementing Classes:
BitstreamRestRepository,BundleRestRepository,CollectionRestRepository,CommunityRestRepository,DSpaceObjectRestRepository,EPersonRestRepository,GroupRestRepository,ItemRestRepository,SiteRestRepository,VersionRestRepository,WorkspaceItemRestRepository
public interface ReloadableEntityObjectRepository<T extends ReloadableEntity<PK>,PK extends Serializable>This interface must be implemented by all the rest repository that need to provide access to the DSpace API model objects corresponding to the REST resources that it manages- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfindDomainObjectByPk(Context context, PK id)Class<PK>getPKClass()
-
-
-
Method Detail
-
findDomainObjectByPk
T findDomainObjectByPk(Context context, PK id) throws SQLException
- Parameters:
context- the DSpace contextid- the primary key shared between the rest and dspace api object- Returns:
- the dspace api model object related to the specified id
- Throws:
SQLException- if a database error occurs
-
-