Package org.dspace.content.dao
Interface EntityTypeDAO
- All Superinterfaces:
GenericDAO<EntityType>
- All Known Implementing Classes:
EntityTypeDAOImpl
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
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 label
-
Method Details
-
findByEntityType
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
- Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrieve- Returns:
- Throws:
SQLException- If database error
-