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

Public Member Functions

String getEntityId ()
 
void setEntityId (String entityId)
 
Long getMemberId ()
 
void setMemberId (Long memberId)
 
String stringify ()
 
boolean isEmpty ()
 
WsMember getMember ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static ProcedenceId from (String id)
 

Detailed Description

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

Definition at line 35 of file ProcedenceId.java.

Member Function Documentation

◆ equals()

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

Definition at line 92 of file ProcedenceId.java.

92  {
93  if (this == obj) {
94  return true;
95  }
96  if (obj == null) {
97  return false;
98  }
99  if (getClass() != obj.getClass()) {
100  return false;
101  }
102  final ProcedenceId other = (ProcedenceId) obj;
103  if (!Objects.equals(this.entityId, other.entityId)) {
104  return false;
105  }
106  return Objects.equals(this.memberId, other.memberId);
107  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ from()

static ProcedenceId org.turro.alliance.db.entities.ProcedenceId.from ( String  id)
static

Definition at line 62 of file ProcedenceId.java.

62  {
63  CompoundId pid = CompoundId.from(id);
64  if(pid != null) {
65  ProcedenceId pi = new ProcedenceId();
66  pi.entityId = pid.getEntityId();
67  pi.memberId = pid.getMemberId();
68  return pi;
69  }
70  return null;
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityId()

String org.turro.alliance.db.entities.ProcedenceId.getEntityId ( )

Definition at line 40 of file ProcedenceId.java.

40  {
41  return entityId;
42  }
Here is the caller graph for this function:

◆ getMember()

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

Definition at line 79 of file ProcedenceId.java.

79  {
80  return Clients.getMember(memberId);
81  }

◆ getMemberId()

Long org.turro.alliance.db.entities.ProcedenceId.getMemberId ( )

Definition at line 48 of file ProcedenceId.java.

48  {
49  return memberId;
50  }
Here is the caller graph for this function:

◆ hashCode()

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

Definition at line 84 of file ProcedenceId.java.

84  {
85  int hash = 7;
86  hash = 67 * hash + Objects.hashCode(this.entityId);
87  hash = 67 * hash + Objects.hashCode(this.memberId);
88  return hash;
89  }

◆ isEmpty()

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

Definition at line 75 of file ProcedenceId.java.

75  {
76  return Strings.isBlank(entityId) || Zero.orNull(memberId);
77  }
Here is the call graph for this function:

◆ setEntityId()

void org.turro.alliance.db.entities.ProcedenceId.setEntityId ( String  entityId)

Definition at line 44 of file ProcedenceId.java.

44  {
45  this.entityId = entityId;
46  }
Here is the caller graph for this function:

◆ setMemberId()

void org.turro.alliance.db.entities.ProcedenceId.setMemberId ( Long  memberId)

Definition at line 52 of file ProcedenceId.java.

52  {
53  this.memberId = memberId;
54  }
Here is the caller graph for this function:

◆ stringify()

String org.turro.alliance.db.entities.ProcedenceId.stringify ( )

Definition at line 58 of file ProcedenceId.java.

58  {
59  return new CompoundId(entityId, memberId).stringify();
60  }
Here is the call graph for this function:
Here is the caller graph for this function:

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