public class RelationshipTypeDAOImpl extends AbstractHibernateDAO<RelationshipType> implements RelationshipTypeDAO
| Constructor and Description |
|---|
RelationshipTypeDAOImpl() |
| 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
|
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 RelationshipType findByTypesAndLabels(Context context, EntityType leftType, EntityType rightType, String leftLabel, String rightLabel) throws SQLException
RelationshipTypeDAOfindByTypesAndLabels in interface RelationshipTypeDAOcontext - 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 wrongpublic List<RelationshipType> findByLeftOrRightLabel(Context context, String label) throws SQLException
RelationshipTypeDAOfindByLeftOrRightLabel in interface RelationshipTypeDAOcontext - The relevant DSpace contextlabel - The label that will be used to check onSQLException - If something goes wrongpublic List<RelationshipType> findByEntityType(Context context, EntityType entityType) throws SQLException
RelationshipTypeDAOfindByEntityType in interface RelationshipTypeDAOcontext - The relevant DSpace contextentityType - The EntityType object that will be used to check onSQLException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.