public interface RelationshipDAO extends GenericDAO<Relationship>
| 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
|
create, delete, findAll, findByID, findByID, findMany, findUnique, saveList<Relationship> findByItem(Context context, Item item) throws SQLException
context - 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 wrongint findLeftPlaceByLeftItem(Context context, Item item) throws SQLException
context - The relevant DSpace contextitem - The item to be matched on leftItemSQLException - If something goes wrongint findRightPlaceByRightItem(Context context, Item item) throws SQLException
context - The relevant DSpace contextitem - The item to be matched on rightItemSQLException - If something goes wrongList<Relationship> findByRelationshipType(Context context, RelationshipType relationshipType) throws SQLException
context - The relevant DSpace contextrelationshipType - The RelationshipType object to be checked onSQLException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.