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

Public Member Functions

String getEntityPath ()
 
void setEntityPath (String entityPath)
 
String getParticipatorPath ()
 
void setParticipatorPath (String participatorPath)
 
ParticipationReason getReason ()
 
void setReason (ParticipationReason reason)
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static EntityParticipationPK from (String id)
 
static EntityParticipationPK from (ComplexNode id)
 

Detailed Description

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

Definition at line 30 of file EntityParticipationPK.java.

Member Function Documentation

◆ equals()

boolean org.turro.elephant.entities.db.EntityParticipationPK.equals ( Object  obj)

Definition at line 86 of file EntityParticipationPK.java.

86  {
87  if (this == obj) {
88  return true;
89  }
90  if (obj == null) {
91  return false;
92  }
93  if (getClass() != obj.getClass()) {
94  return false;
95  }
96  final EntityParticipationPK other = (EntityParticipationPK) obj;
97  if (!Objects.equals(this.entityPath, other.entityPath)) {
98  return false;
99  }
100  if (!Objects.equals(this.participatorPath, other.participatorPath)) {
101  return false;
102  }
103  if (this.reason != other.reason) {
104  return false;
105  }
106  return true;
107  }

◆ from() [1/2]

static EntityParticipationPK org.turro.elephant.entities.db.EntityParticipationPK.from ( ComplexNode  id)
static

Definition at line 66 of file EntityParticipationPK.java.

66  {
67  EntityParticipationPK epk = new EntityParticipationPK();
68  epk.entityPath = id.node(0);
69  epk.participatorPath = id.node(1);
70  epk.reason = ParticipationReason.valueOf(id.node(2));
71  return epk;
72  }

◆ from() [2/2]

static EntityParticipationPK org.turro.elephant.entities.db.EntityParticipationPK.from ( String  id)
static

Definition at line 62 of file EntityParticipationPK.java.

62  {
63  return from(ComplexNode.complex(id));
64  }
Here is the caller graph for this function:

◆ getEntityPath()

String org.turro.elephant.entities.db.EntityParticipationPK.getEntityPath ( )

Definition at line 36 of file EntityParticipationPK.java.

36  {
37  return entityPath;
38  }

◆ getParticipatorPath()

String org.turro.elephant.entities.db.EntityParticipationPK.getParticipatorPath ( )

Definition at line 44 of file EntityParticipationPK.java.

44  {
45  return participatorPath;
46  }

◆ getReason()

ParticipationReason org.turro.elephant.entities.db.EntityParticipationPK.getReason ( )

Definition at line 52 of file EntityParticipationPK.java.

52  {
53  return reason;
54  }

◆ hashCode()

int org.turro.elephant.entities.db.EntityParticipationPK.hashCode ( )

Definition at line 77 of file EntityParticipationPK.java.

77  {
78  int hash = 7;
79  hash = 59 * hash + Objects.hashCode(this.entityPath);
80  hash = 59 * hash + Objects.hashCode(this.participatorPath);
81  hash = 59 * hash + Objects.hashCode(this.reason);
82  return hash;
83  }

◆ setEntityPath()

void org.turro.elephant.entities.db.EntityParticipationPK.setEntityPath ( String  entityPath)

Definition at line 40 of file EntityParticipationPK.java.

40  {
41  this.entityPath = entityPath;
42  }
Here is the caller graph for this function:

◆ setParticipatorPath()

void org.turro.elephant.entities.db.EntityParticipationPK.setParticipatorPath ( String  participatorPath)

Definition at line 48 of file EntityParticipationPK.java.

48  {
49  this.participatorPath = participatorPath;
50  }
Here is the caller graph for this function:

◆ setReason()

void org.turro.elephant.entities.db.EntityParticipationPK.setReason ( ParticipationReason  reason)

Definition at line 56 of file EntityParticipationPK.java.

56  {
57  this.reason = reason;
58  }
Here is the caller graph for this function:

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