Interface EntityTypeDAO

All Superinterfaces:
GenericDAO<EntityType>
All Known Implementing Classes:
EntityTypeDAOImpl

public interface EntityTypeDAO extends GenericDAO<EntityType>
Database Access Object Interface class for the EntityType object The implementation of this class is responsible for all database calls for the EntityType object and is autowired by spring This class should only be accessed from a single service and should never be exposed outside of the API
  • Method Details

    • findByEntityType

      EntityType findByEntityType(Context context, String entityType) throws SQLException
      This method returns the EntityType object that has the given entityType String as label
      Parameters:
      context - The relevant DSpace context
      entityType - The entityType String that will be matched on to find the correct EntityType
      Returns:
      The EntityType object that has the entityType String as label
      Throws:
      SQLException - If something goes wrong
    • getEntityTypesByNames

      List<EntityType> getEntityTypesByNames(Context context, List<String> names, Integer limit, Integer offset) throws SQLException
      Parameters:
      context - DSpace context object
      names - List of Entity type names that you want to retrieve
      limit - paging limit
      offset - the position of the first result to return
      Returns:
      Throws:
      SQLException - if database error
    • countEntityTypesByNames

      int countEntityTypesByNames(Context context, List<String> names) throws SQLException
      Parameters:
      context - DSpace context object
      names - List of Entity type names that you want to retrieve
      Returns:
      Throws:
      SQLException - If database error