public class HandleDAOImpl extends AbstractHibernateDAO<Handle> implements HandleDAO
| Modifier | Constructor and Description |
|---|---|
protected |
HandleDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
countHandlesByPrefix(Context context,
String prefix) |
int |
countRows(Context context) |
Handle |
findByHandle(Context context,
String handle) |
List<Handle> |
findByPrefix(Context context,
String prefix) |
List<Handle> |
getHandlesByDSpaceObject(Context context,
DSpaceObject dso) |
Long |
getNextHandleSuffix(Context context)
Return next available value of Handle suffix (based on DB sequence).
|
int |
updateHandlesWithNewPrefix(Context context,
String newPrefix,
String oldPrefix) |
count, count, countLong, create, createCriteria, createCriteria, createQuery, delete, findAll, 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, findAll, findByID, findByID, findMany, findUnique, savepublic List<Handle> getHandlesByDSpaceObject(Context context, DSpaceObject dso) throws SQLException
getHandlesByDSpaceObject in interface HandleDAOSQLExceptionpublic Handle findByHandle(Context context, String handle) throws SQLException
findByHandle in interface HandleDAOSQLExceptionpublic List<Handle> findByPrefix(Context context, String prefix) throws SQLException
findByPrefix in interface HandleDAOSQLExceptionpublic long countHandlesByPrefix(Context context, String prefix) throws SQLException
countHandlesByPrefix in interface HandleDAOSQLExceptionpublic int updateHandlesWithNewPrefix(Context context, String newPrefix, String oldPrefix) throws SQLException
updateHandlesWithNewPrefix in interface HandleDAOSQLExceptionpublic int countRows(Context context) throws SQLException
countRows in interface HandleDAOSQLExceptionpublic Long getNextHandleSuffix(Context context) throws SQLException
getNextHandleSuffix in interface HandleDAOcontext - Current DSpace ContextSQLException - if database error or sequence doesn't existCopyright © 2017 DuraSpace. All rights reserved.