Class EntityTypeDAOImpl

java.lang.Object
org.dspace.core.AbstractHibernateDAO<EntityType>
org.dspace.content.dao.impl.EntityTypeDAOImpl
All Implemented Interfaces:
EntityTypeDAO, GenericDAO<EntityType>

public class EntityTypeDAOImpl extends AbstractHibernateDAO<EntityType> implements EntityTypeDAO
Hibernate implementation of the Database Access Object interface class for the EntityType object. This class is responsible for all database calls for the EntityType object and is autowired by Spring. This class should never be accessed directly.
Author:
kevinvandevelde at atmire.com
  • Constructor Details

    • EntityTypeDAOImpl

      public EntityTypeDAOImpl()
  • Method Details

    • findByEntityType

      public EntityType findByEntityType(Context context, String entityType) throws SQLException
      Description copied from interface: EntityTypeDAO
      This method returns the EntityType object that has the given entityType String as label
      Specified by:
      findByEntityType in interface EntityTypeDAO
      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

      public List<EntityType> getEntityTypesByNames(Context context, List<String> names, Integer limit, Integer offset) throws SQLException
      Specified by:
      getEntityTypesByNames in interface EntityTypeDAO
      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

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