BrightSide Workbench Full Report + Source Code
org.turro.alliance.db.entities.RelationId Class Reference
Inheritance diagram for org.turro.alliance.db.entities.RelationId:
Collaboration diagram for org.turro.alliance.db.entities.RelationId:

Public Member Functions

String getMainEntityId ()
 
void setMainEntityId (String mainEntityId)
 
Long getMainMemberId ()
 
void setMainMemberId (Long mainMemberId)
 
String getRelatedEntityId ()
 
void setRelatedEntityId (String relatedEntityId)
 
Long getRelatedMemberId ()
 
void setRelatedMemberId (Long relatedMemberId)
 
void setMainEntityId (Long mainEntityId)
 
void setRelatedEntityId (Long relatedEntityId)
 
boolean isEmpty ()
 
ProcedenceId getMainProcedenceId ()
 
ProcedenceId getRelatedProcedenceId ()
 
WsMember getMember ()
 
WsMember getRelatedMember ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file RelationId.java.

Member Function Documentation

◆ equals()

boolean org.turro.alliance.db.entities.RelationId.equals ( Object  obj)

Definition at line 124 of file RelationId.java.

124  {
125  if (this == obj) {
126  return true;
127  }
128  if (obj == null) {
129  return false;
130  }
131  if (getClass() != obj.getClass()) {
132  return false;
133  }
134  final RelationId other = (RelationId) obj;
135  if (!Objects.equals(this.mainEntityId, other.mainEntityId)) {
136  return false;
137  }
138  if (!Objects.equals(this.relatedEntityId, other.relatedEntityId)) {
139  return false;
140  }
141  if (!Objects.equals(this.mainMemberId, other.mainMemberId)) {
142  return false;
143  }
144  return Objects.equals(this.relatedMemberId, other.relatedMemberId);
145  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMainEntityId()

String org.turro.alliance.db.entities.RelationId.getMainEntityId ( )

Definition at line 42 of file RelationId.java.

42  {
43  return mainEntityId;
44  }
Here is the caller graph for this function:

◆ getMainMemberId()

Long org.turro.alliance.db.entities.RelationId.getMainMemberId ( )

Definition at line 50 of file RelationId.java.

50  {
51  return mainMemberId;
52  }
Here is the caller graph for this function:

◆ getMainProcedenceId()

ProcedenceId org.turro.alliance.db.entities.RelationId.getMainProcedenceId ( )

Definition at line 91 of file RelationId.java.

91  {
92  ProcedenceId mainId = new ProcedenceId();
93  mainId.setEntityId(getMainEntityId());
94  mainId.setMemberId(getMainMemberId());
95  return mainId;
96  }
Here is the call graph for this function:

◆ getMember()

WsMember org.turro.alliance.db.entities.RelationId.getMember ( )

Definition at line 105 of file RelationId.java.

105  {
106  return Clients.getMember(mainMemberId);
107  }

◆ getRelatedEntityId()

String org.turro.alliance.db.entities.RelationId.getRelatedEntityId ( )

Definition at line 58 of file RelationId.java.

58  {
59  return relatedEntityId;
60  }
Here is the caller graph for this function:

◆ getRelatedMember()

WsMember org.turro.alliance.db.entities.RelationId.getRelatedMember ( )

Definition at line 109 of file RelationId.java.

109  {
110  return Clients.getMember(relatedMemberId);
111  }

◆ getRelatedMemberId()

Long org.turro.alliance.db.entities.RelationId.getRelatedMemberId ( )

Definition at line 66 of file RelationId.java.

66  {
67  return relatedMemberId;
68  }
Here is the caller graph for this function:

◆ getRelatedProcedenceId()

ProcedenceId org.turro.alliance.db.entities.RelationId.getRelatedProcedenceId ( )

Definition at line 98 of file RelationId.java.

98  {
99  ProcedenceId relatedId = new ProcedenceId();
100  relatedId.setEntityId(getRelatedEntityId());
101  relatedId.setMemberId(getRelatedMemberId());
102  return relatedId;
103  }
Here is the call graph for this function:

◆ hashCode()

int org.turro.alliance.db.entities.RelationId.hashCode ( )

Definition at line 114 of file RelationId.java.

114  {
115  int hash = 7;
116  hash = 79 * hash + Objects.hashCode(this.mainEntityId);
117  hash = 79 * hash + Objects.hashCode(this.mainMemberId);
118  hash = 79 * hash + Objects.hashCode(this.relatedEntityId);
119  hash = 79 * hash + Objects.hashCode(this.relatedMemberId);
120  return hash;
121  }

◆ isEmpty()

boolean org.turro.alliance.db.entities.RelationId.isEmpty ( )

Definition at line 86 of file RelationId.java.

86  {
87  return Strings.isBlank(mainEntityId) || Zero.orNull(mainMemberId) ||
88  Strings.isBlank(relatedEntityId) || Zero.orNull(relatedMemberId);
89  }
Here is the call graph for this function:

◆ setMainEntityId() [1/2]

void org.turro.alliance.db.entities.RelationId.setMainEntityId ( Long  mainEntityId)

Definition at line 76 of file RelationId.java.

76  {
77  this.mainEntityId = Converter.STANDARD.convert(mainEntityId, String.class);
78  }

◆ setMainEntityId() [2/2]

void org.turro.alliance.db.entities.RelationId.setMainEntityId ( String  mainEntityId)

Definition at line 46 of file RelationId.java.

46  {
47  this.mainEntityId = mainEntityId;
48  }
Here is the caller graph for this function:

◆ setMainMemberId()

void org.turro.alliance.db.entities.RelationId.setMainMemberId ( Long  mainMemberId)

Definition at line 54 of file RelationId.java.

54  {
55  this.mainMemberId = mainMemberId;
56  }
Here is the caller graph for this function:

◆ setRelatedEntityId() [1/2]

void org.turro.alliance.db.entities.RelationId.setRelatedEntityId ( Long  relatedEntityId)

Definition at line 80 of file RelationId.java.

80  {
81  this.relatedEntityId = Converter.STANDARD.convert(relatedEntityId, String.class);
82  }

◆ setRelatedEntityId() [2/2]

void org.turro.alliance.db.entities.RelationId.setRelatedEntityId ( String  relatedEntityId)

Definition at line 62 of file RelationId.java.

62  {
63  this.relatedEntityId = relatedEntityId;
64  }
Here is the caller graph for this function:

◆ setRelatedMemberId()

void org.turro.alliance.db.entities.RelationId.setRelatedMemberId ( Long  relatedMemberId)

Definition at line 70 of file RelationId.java.

70  {
71  this.relatedMemberId = relatedMemberId;
72  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: