public class BitstreamFormatDAOImpl extends AbstractHibernateDAO<BitstreamFormat> implements BitstreamFormatDAO
| Modifier | Constructor and Description |
|---|---|
protected |
BitstreamFormatDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<BitstreamFormat> |
findAll(Context context,
Class clazz)
Fetch all persisted instances of a given object type.
|
List<BitstreamFormat> |
findByFileExtension(Context context,
String extension) |
BitstreamFormat |
findByMIMEType(Context context,
String mimeType,
boolean includeInternal)
Find a bitstream format by its (unique) MIME type.
|
BitstreamFormat |
findByShortDescription(Context context,
String desc)
Find a bitstream format by its (unique) short description
|
List<BitstreamFormat> |
findNonInternal(Context context) |
int |
updateRemovedBitstreamFormat(Context context,
BitstreamFormat deletedBitstreamFormat,
BitstreamFormat newBitstreamFormat) |
count, count, countLong, create, createCriteria, createCriteria, createQuery, delete, findByID, findByID, findMany, findMany, findUnique, getHibernateSession, iterate, list, list, save, singleResult, singleResult, uniqueResult, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, delete, findByID, findByID, findMany, findUnique, savepublic BitstreamFormat findByMIMEType(Context context, String mimeType, boolean includeInternal) throws SQLException
findByMIMEType in interface BitstreamFormatDAOcontext - DSpace context objectmimeType - MIME type valueincludeInternal - whether to include internal mimetypesnull if
there's no bitstream format with the given MIMEtype.SQLException - if database errorpublic BitstreamFormat findByShortDescription(Context context, String desc) throws SQLException
findByShortDescription in interface BitstreamFormatDAOcontext - DSpace context objectdesc - the short descriptionnull if
there's no bitstream format with the given short descriptionSQLException - if database errorpublic int updateRemovedBitstreamFormat(Context context, BitstreamFormat deletedBitstreamFormat, BitstreamFormat newBitstreamFormat) throws SQLException
updateRemovedBitstreamFormat in interface BitstreamFormatDAOSQLExceptionpublic List<BitstreamFormat> findNonInternal(Context context) throws SQLException
findNonInternal in interface BitstreamFormatDAOSQLExceptionpublic List<BitstreamFormat> findByFileExtension(Context context, String extension) throws SQLException
findByFileExtension in interface BitstreamFormatDAOSQLExceptionpublic List<BitstreamFormat> findAll(Context context, Class clazz) throws SQLException
GenericDAOfindAll in interface GenericDAO<BitstreamFormat>findAll in class AbstractHibernateDAO<BitstreamFormat>clazz - the desired type.SQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.