Package org.dspace.content
Class Relationship
- java.lang.Object
-
- org.dspace.content.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationship()Protected constructor, create object using:DSpaceCRUDService.create(Context)}
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetID()Standard getter for the ID for this RelationshipItemgetLeftItem()Standard getter for the leftItem fieldintgetLeftPlace()Standard getter for the leftPlace Integer in this RelationshipStringgetLeftwardValue()Standard getter for the leftwardValue String in this RelationshipRelationshipTypegetRelationshipType()Standard getter for the relationshipType fieldItemgetRightItem()Standard getter for the rightItem Item object in this RelationshipintgetRightPlace()Standard getter for the rightPlace Integer in this RelationshipStringgetRightwardValue()Standard getter for the rightwardValue String in this RelationshipvoidsetId(Integer id)Standard setter for the ID fieldvoidsetLeftItem(Item leftItem)Standard setter for the leftItem fieldvoidsetLeftPlace(int leftPlace)Standard setter for the leftPlace Integer in this RelationshipvoidsetLeftwardValue(String leftwardValue)Standard setter for the leftwardValue String in this RelationshipvoidsetRelationshipType(RelationshipType relationshipType)Standard setter for the relationshipType field for the RelationshipvoidsetRightItem(Item rightItem)Standard setter for the rightItem Item object in this RelationshipvoidsetRightPlace(int rightPlace)Standard setter for the rightPlace Integer in this RelationshipvoidsetRightwardValue(String rightwardValue)Standard setter for the rightwardValue String in this Relationship
-
-
-
Field Detail
-
id
protected Integer id
The Integer ID field for this object This is automatically generated
-
-
Constructor Detail
-
Relationship
protected Relationship()
Protected constructor, create object using:DSpaceCRUDService.create(Context)}
-
-
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:
getIDin interfaceReloadableEntity<Integer>- Returns:
- The ID of this relationship
-
-