public interface RelationshipTypeDAO extends GenericDAO<RelationshipType>
| Modifier and Type | Method and Description |
|---|---|
List<RelationshipType> |
findByEntityType(Context context,
EntityType entityType)
This method will return a list of RelationshipType objects for which the given EntityType object is equal
to the leftType or rightType
|
List<RelationshipType> |
findByLeftOrRightLabel(Context context,
String label)
This method will return a list of RelationshipType objects for which the given label is equal to
either the leftLabel or rightLabel.
|
RelationshipType |
findByTypesAndLabels(Context context,
EntityType leftType,
EntityType rightType,
String leftLabel,
String rightLabel)
This method is used to retrieve the RelationshipType object that has the same
leftType, rightType, leftLabel and rightLabel as given in the parameters
|
create, delete, findAll, findByID, findByID, findMany, findUnique, saveRelationshipType findByTypesAndLabels(Context context, EntityType leftType, EntityType rightType, String leftLabel, String rightLabel) throws SQLException
context - The relevant DSpace contextleftType - The leftType EntityType object to be matched in the queryrightType - The rightType EntityType object to be matched in the queryleftLabel - The leftLabel String to be matched in the queryrightLabel - The rightLabel String to be matched in the querySQLException - If something goes wrongList<RelationshipType> findByLeftOrRightLabel(Context context, String label) throws SQLException
context - The relevant DSpace contextlabel - The label that will be used to check onSQLException - If something goes wrongList<RelationshipType> findByEntityType(Context context, EntityType entityType) throws SQLException
context - The relevant DSpace contextentityType - The EntityType object that will be used to check onSQLException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.