Package org.dspace.handle.dao
Interface HandleDAO
-
- All Superinterfaces:
GenericDAO<Handle>
- All Known Implementing Classes:
HandleDAOImpl
public interface HandleDAO extends GenericDAO<Handle>
Database Access Object interface class for the Handle object. The implementation of this class is responsible for all database calls for the Handle 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 longcountHandlesByPrefix(Context context, String prefix)intcountRows(Context context)HandlefindByHandle(Context context, String handle)List<Handle>findByPrefix(Context context, String prefix)List<Handle>getHandlesByDSpaceObject(Context context, DSpaceObject dso)LonggetNextHandleSuffix(Context context)intupdateHandlesWithNewPrefix(Context context, String newPrefix, String oldPrefix)-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
getNextHandleSuffix
Long getNextHandleSuffix(Context context) throws SQLException
- Throws:
SQLException
-
getHandlesByDSpaceObject
List<Handle> getHandlesByDSpaceObject(Context context, DSpaceObject dso) throws SQLException
- Throws:
SQLException
-
findByHandle
Handle findByHandle(Context context, String handle) throws SQLException
- Throws:
SQLException
-
findByPrefix
List<Handle> findByPrefix(Context context, String prefix) throws SQLException
- Throws:
SQLException
-
countHandlesByPrefix
long countHandlesByPrefix(Context context, String prefix) throws SQLException
- Throws:
SQLException
-
updateHandlesWithNewPrefix
int updateHandlesWithNewPrefix(Context context, String newPrefix, String oldPrefix) throws SQLException
- Throws:
SQLException
-
countRows
int countRows(Context context) throws SQLException
- Throws:
SQLException
-
-