public class RelationshipDAOImpl extends AbstractHibernateDAO<Relationship> implements RelationshipDAO
| Constructor and Description |
|---|
RelationshipDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
findByItem(Context context,
Item item)
This method returns a list of Relationship objects that have the given Item object
as a leftItem or a rightItem
|
List<Relationship> |
findByRelationshipType(Context context,
RelationshipType relationshipType)
This method returns a list of Relationship objects for the given RelationshipType object.
|
int |
findLeftPlaceByLeftItem(Context context,
Item item)
This method returns the highest leftplace integer for all the relationships where this
item is the leftitem so that we can set a proper leftplace attribute on the next relationship
|
int |
findRightPlaceByRightItem(Context context,
Item item)
This method returns the highest rightplace integer for all the relationships where this
item is the rightitem so that we can set a proper rightplace attribute on the next relationship
|
count, count, countLong, create, createQuery, delete, executeCriteriaQuery, findAll, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, 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<Relationship> findByItem(Context context, Item item) throws SQLException
RelationshipDAOfindByItem in interface RelationshipDAOcontext - The relevant DSpace contextitem - The item that should be either a leftItem or a rightItem of all
the Relationship objects in the returned listSQLException - If something goes wrongpublic int findLeftPlaceByLeftItem(Context context, Item item) throws SQLException
RelationshipDAOfindLeftPlaceByLeftItem in interface RelationshipDAOcontext - The relevant DSpace contextitem - The item to be matched on leftItemSQLException - If something goes wrongpublic int findRightPlaceByRightItem(Context context, Item item) throws SQLException
RelationshipDAOfindRightPlaceByRightItem in interface RelationshipDAOcontext - The relevant DSpace contextitem - The item to be matched on rightItemSQLException - If something goes wrongpublic List<Relationship> findByRelationshipType(Context context, RelationshipType relationshipType) throws SQLException
RelationshipDAOfindByRelationshipType in interface RelationshipDAOcontext - The relevant DSpace contextrelationshipType - The RelationshipType object to be checked onSQLException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.