Class Relationship

  • All Implemented Interfaces:
    ReloadableEntity<Integer>

    @Entity
    public class Relationship
    extends Object
    implements ReloadableEntity<Integer>
    This class represents a relationship It has a leftItem and a rightItem which are both DSpaceObjects that have a specified RelationshipType that links them together It also has a left and right place column that works just like a normal DSpace metadata place column
    • Field Detail

      • id

        protected Integer id
        The Integer ID field for this object This is automatically generated
    • Method Detail

      • setId

        public void setId​(Integer id)
        Standard setter for the ID field
        Parameters:
        id - The ID to be set
      • getLeftItem

        public Item getLeftItem()
        Standard getter for the leftItem field
        Returns:
        The leftItem Item object in this relationship
      • setLeftItem

        public void setLeftItem​(Item leftItem)
        Standard setter for the leftItem field
        Parameters:
        leftItem - The leftItem Item object that the leftItem field should be set to
      • getRelationshipType

        public RelationshipType getRelationshipType()
        Standard getter for the relationshipType field
        Returns:
        The relationshipType RelationshipType object in this relationship
      • setRelationshipType

        public void setRelationshipType​(RelationshipType relationshipType)
        Standard setter for the relationshipType field for the Relationship
        Parameters:
        relationshipType - The relationshipType that will be set in this Relationship
      • getRightItem

        public Item getRightItem()
        Standard getter for the rightItem Item object in this Relationship
        Returns:
        the rightItem Item object
      • setRightItem

        public void setRightItem​(Item rightItem)
        Standard setter for the rightItem Item object in this Relationship
        Parameters:
        rightItem - The rightItem Item object that will be used in this relationship
      • getLeftPlace

        public int getLeftPlace()
        Standard getter for the leftPlace Integer in this Relationship
        Returns:
        The leftPlace integer for this relationship
      • setLeftPlace

        public void setLeftPlace​(int leftPlace)
        Standard setter for the leftPlace Integer in this Relationship
        Parameters:
        leftPlace - the leftPlace Integer that will be used in this relationship
      • getRightPlace

        public int getRightPlace()
        Standard getter for the rightPlace Integer in this Relationship
        Returns:
        the rightPlace integer for this relationship
      • setRightPlace

        public void setRightPlace​(int rightPlace)
        Standard setter for the rightPlace Integer in this Relationship
        Parameters:
        rightPlace - the rightPlace Integer that will be used in this relationship
      • getLeftwardValue

        public String getLeftwardValue()
        Standard getter for the leftwardValue String in this Relationship
        Returns:
        the leftwardValue String for this relationship
      • setLeftwardValue

        public void setLeftwardValue​(String leftwardValue)
        Standard setter for the leftwardValue String in this Relationship
        Parameters:
        leftwardValue - the leftwardValue String that will be used in this relationship
      • getRightwardValue

        public String getRightwardValue()
        Standard getter for the rightwardValue String in this Relationship
        Returns:
        the rightwardValue string for this relationship
      • setRightwardValue

        public void setRightwardValue​(String rightwardValue)
        Standard setter for the rightwardValue String in this Relationship
        Parameters:
        rightwardValue - the rightwardValue String that will be used in this relationship
      • getID

        public Integer getID()
        Standard getter for the ID for this Relationship
        Specified by:
        getID in interface ReloadableEntity<Integer>
        Returns:
        The ID of this relationship