Package org.dspace.content.dao.impl
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 Summary
Constructors Constructor Description EntityTypeDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountEntityTypesByNames(Context context, List<String> names)EntityTypefindByEntityType(Context context, String entityType)This method returns the EntityType object that has the given entityType String as labelList<EntityType>getEntityTypesByNames(Context context, List<String> names, Integer limit, Integer offset)-
Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByEntityType
public EntityType findByEntityType(Context context, String entityType) throws SQLException
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
public int countEntityTypesByNames(Context context, List<String> names) throws SQLException
- 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
-
-