Package org.dspace.content.dao
Interface MetadataValueDAO
-
- All Superinterfaces:
GenericDAO<MetadataValue>
- All Known Implementing Classes:
MetadataValueDAOImpl
public interface MetadataValueDAO extends GenericDAO<MetadataValue>
Database Access Object interface class for the MetadataValue object. The implementation of this class is responsible for all database calls for the MetadataValue 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- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountRows(Context context)voiddeleteByMetadataField(Context context, MetadataField metadataField)List<MetadataValue>findByField(Context context, MetadataField fieldId)Iterator<MetadataValue>findByValueLike(Context context, String value)Iterator<MetadataValue>findItemValuesByFieldAndValue(Context context, MetadataField metadataField, String value)MetadataValuegetMinimum(Context context, int metadataFieldId)-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByField
List<MetadataValue> findByField(Context context, MetadataField fieldId) throws SQLException
- Throws:
SQLException
-
findItemValuesByFieldAndValue
Iterator<MetadataValue> findItemValuesByFieldAndValue(Context context, MetadataField metadataField, String value) throws SQLException
- Throws:
SQLException
-
findByValueLike
Iterator<MetadataValue> findByValueLike(Context context, String value) throws SQLException
- Throws:
SQLException
-
deleteByMetadataField
void deleteByMetadataField(Context context, MetadataField metadataField) throws SQLException
- Throws:
SQLException
-
getMinimum
MetadataValue getMinimum(Context context, int metadataFieldId) throws SQLException
- Throws:
SQLException
-
countRows
int countRows(Context context) throws SQLException
- Throws:
SQLException
-
-