Interface ReloadableEntityObjectRepository<T extends ReloadableEntity<PK>,PK extends Serializable>

Type Parameters:
T - the ReloadableEntity type
PK - 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 Details

    • findDomainObjectByPk

      T findDomainObjectByPk(Context context, PK id) throws SQLException
      Parameters:
      context - the DSpace context
      id - 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
    • getPKClass

      Class<PK> getPKClass()
      Returns:
      the class of the primary key