Class RelationshipType

java.lang.Object
org.dspace.content.RelationshipType
All Implemented Interfaces:
ReloadableEntity<Integer>

@Entity public class RelationshipType extends Object implements ReloadableEntity<Integer>
Class representing a RelationshipType This class contains an Integer ID that will be the unique value and primary key in the database. This key is automatically generated It also has a leftType and rightType EntityType that describes the relationshipType together with a leftwardType and rightwardType. The cardinality properties describe how many of each relations this relationshipType can support
  • Field Details

    • id

      protected Integer id
      The Integer ID used as a primary key for this database object. This is generated by a sequence
  • Constructor Details

  • Method Details

    • setId

      public void setId(Integer id)
      Standard getter for the ID of this RelationshipType
      Parameters:
      id - The ID that this RelationshipType should receive
    • getLeftType

      public EntityType getLeftType()
      Standard getter for The leftType EntityType for this RelationshipType
      Returns:
      The leftType EntityType of this RelationshipType
    • setLeftType

      public void setLeftType(EntityType leftType)
      Standard setter for the leftType EntityType for this RelationshipType
      Parameters:
      leftType - The leftType EntityType that this RelationshipType should receive
    • getRightType

      public EntityType getRightType()
      Standard getter for The rightType EntityType for this RelationshipType
      Returns:
      The rightType EntityType of this RelationshipType
    • setRightType

      public void setRightType(EntityType rightType)
      Standard setter for the rightType EntityType for this RelationshipType
      Parameters:
      rightType - The rightType EntityType that this RelationshipType should receive
    • getLeftwardType

      public String getLeftwardType()
      Standard getter for the leftwardType String for this RelationshipType
      Returns:
      The leftwardType String of this RelationshipType
    • setLeftwardType

      public void setLeftwardType(String leftwardType)
      Standard setter for the leftwardType String for this RelationshipType
      Parameters:
      leftwardType - The leftwardType String that this RelationshipType should receive
    • getRightwardType

      public String getRightwardType()
      Standard getter for the rightwardType String for this RelationshipType
      Returns:
      The rightwardType String of this RelationshipType
    • setRightwardType

      public void setRightwardType(String rightwardType)
      Standard setter for the rightwardType String for this RelationshipType
      Parameters:
      rightwardType - The rightwardType String that this RelationshipType should receive
    • getLeftMinCardinality

      public Integer getLeftMinCardinality()
      Standard getter for the leftMinCardinality Integer for this RelationshipType
      Returns:
      the leftMinCardinality Integer of this RelationshipType
    • setLeftMinCardinality

      public void setLeftMinCardinality(Integer leftMinCardinality)
      Standard setter for the leftMinCardinality Integer for this RelationshipType
      Parameters:
      leftMinCardinality - The leftMinCardinality Integer that this RelationshipType should receive
    • getLeftMaxCardinality

      public Integer getLeftMaxCardinality()
      Standard getter for the leftMaxCardinality Integer for this RelationshipType
      Returns:
      the leftMaxCardinality Integer of this RelationshipType
    • setLeftMaxCardinality

      public void setLeftMaxCardinality(Integer leftMaxCardinality)
      Standard setter for the leftMaxCardinality Integer for this RelationshipType
      Parameters:
      leftMaxCardinality - The leftMaxCardinality Integer that this RelationshipType should receive
    • getRightMinCardinality

      public Integer getRightMinCardinality()
      Standard getter for the rightMinCardinality Integer for this RelationshipType
      Returns:
      the rightMinCardinality Integer of this RelationshipType
    • setRightMinCardinality

      public void setRightMinCardinality(Integer rightMinCardinality)
      Standard setter for the rightMinCardinality Integer for this RelationshipType
      Parameters:
      rightMinCardinality - The rightMinCardinality Integer that this RelationshipType should receive
    • getRightMaxCardinality

      public Integer getRightMaxCardinality()
      Standard getter for the rightMaxCardinality Integer for this RelationshipType
      Returns:
      the rightMaxCardinality Integer of this RelationshipType
    • setRightMaxCardinality

      public void setRightMaxCardinality(Integer rightMaxCardinality)
      Standard setter for the rightMaxCardinality Integer for this RelationshipType
      Parameters:
      rightMaxCardinality - The rightMaxCardinality Integer that this RelationshipType should receive
    • isCopyToLeft

      public boolean isCopyToLeft()
      Generic getter for the copyToLeft
      Returns:
      the copyToLeft value of this RelationshipType
    • setCopyToLeft

      public void setCopyToLeft(boolean copyToLeft)
      Generic setter for the copyToLeft
      Parameters:
      copyToLeft - The copyToLeft to be set on this RelationshipType
    • isCopyToRight

      public boolean isCopyToRight()
      Generic getter for the copyToRight
      Returns:
      the copyToRight value of this RelationshipType
    • setCopyToRight

      public void setCopyToRight(boolean copyToRight)
      Generic setter for the copyToRight
      Parameters:
      copyToRight - The copyToRight to be set on this RelationshipType
    • getTilted

      public RelationshipType.Tilted getTilted()
      Generic getter for tilted
      Returns:
      the tilted value of this RelationshipType
    • setTilted

      public void setTilted(RelationshipType.Tilted tilted)
      Generic setter for tilted
      Parameters:
      tilted - The tilted to be set on this RelationshipType
    • getID

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