Package org.dspace.content.dao.impl
Class EntityTypeDAOImpl
- All Implemented Interfaces:
EntityTypeDAO,GenericDAO<EntityType>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountEntityTypesByNames(Context context, List<String> names) findByEntityType(Context context, String entityType) This method returns the EntityType object that has the given entityType String as labelMethods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Constructor Details
-
EntityTypeDAOImpl
public EntityTypeDAOImpl()
-
-
Method Details
-
findByEntityType
Description copied from interface:EntityTypeDAOThis method returns the EntityType object that has the given entityType String as label- Specified by:
findByEntityTypein interfaceEntityTypeDAO- Parameters:
context- The relevant DSpace contextentityType- 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:
getEntityTypesByNamesin interfaceEntityTypeDAO- Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrievelimit- paging limitoffset- the position of the first result to return- Returns:
- Throws:
SQLException- if database error
-
countEntityTypesByNames
- Specified by:
countEntityTypesByNamesin interfaceEntityTypeDAO- Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrieve- Returns:
- Throws:
SQLException- If database error
-