Package org.dspace.content.dao.impl
Class MetadataValueDAOImpl
- java.lang.Object
-
- org.dspace.core.AbstractHibernateDAO<MetadataValue>
-
- org.dspace.content.dao.impl.MetadataValueDAOImpl
-
- All Implemented Interfaces:
MetadataValueDAO,GenericDAO<MetadataValue>
public class MetadataValueDAOImpl extends AbstractHibernateDAO<MetadataValue> implements MetadataValueDAO
Hibernate implementation of the Database Access Object interface class for the MetadataValue object. This class is responsible for all database calls for the MetadataValue object and is autowired by spring This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetadataValueDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountRows(Context context)voiddeleteByMetadataField(Context context, MetadataField metadataField)List<MetadataValue>findByField(Context context, MetadataField metadataField)Iterator<MetadataValue>findByValueLike(Context context, String value)Iterator<MetadataValue>findItemValuesByFieldAndValue(Context context, MetadataField metadataField, String value)MetadataValuegetMinimum(Context context, int metadataFieldId)-
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
-
findByField
public List<MetadataValue> findByField(Context context, MetadataField metadataField) throws SQLException
- Specified by:
findByFieldin interfaceMetadataValueDAO- Throws:
SQLException
-
findItemValuesByFieldAndValue
public Iterator<MetadataValue> findItemValuesByFieldAndValue(Context context, MetadataField metadataField, String value) throws SQLException
- Specified by:
findItemValuesByFieldAndValuein interfaceMetadataValueDAO- Throws:
SQLException
-
findByValueLike
public Iterator<MetadataValue> findByValueLike(Context context, String value) throws SQLException
- Specified by:
findByValueLikein interfaceMetadataValueDAO- Throws:
SQLException
-
deleteByMetadataField
public void deleteByMetadataField(Context context, MetadataField metadataField) throws SQLException
- Specified by:
deleteByMetadataFieldin interfaceMetadataValueDAO- Throws:
SQLException
-
getMinimum
public MetadataValue getMinimum(Context context, int metadataFieldId) throws SQLException
- Specified by:
getMinimumin interfaceMetadataValueDAO- Throws:
SQLException
-
countRows
public int countRows(Context context) throws SQLException
- Specified by:
countRowsin interfaceMetadataValueDAO- Throws:
SQLException
-
-