Package org.dspace.content.dao
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 Summary
All Methods Instance Methods Abstract 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 interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
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 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
List<EntityType> getEntityTypesByNames(Context context, List<String> names, Integer limit, Integer offset) throws SQLException
- 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
int countEntityTypesByNames(Context context, List<String> names) throws SQLException
- Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrieve- Returns:
- Throws:
SQLException- If database error
-
-