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

Public Member Functions

String getServerDomain ()
 
void setServerDomain (String serverDomain)
 
String getProjectId ()
 
void setProjectId (String projectId)
 
Long getCategoryId ()
 
void setCategoryId (Long categoryId)
 
Dossier getDossier ()
 
void setDossier (Dossier dossier)
 
Structure getCategory ()
 
void setCategory (Structure category)
 
Object entityId ()
 
boolean isEmpty ()
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 43 of file AxProjectCategory.java.

Member Function Documentation

◆ entityId()

Object org.turro.member.db.entities.AxProjectCategory.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 104 of file AxProjectCategory.java.

104  {
105  return AxProjectCategoryPK.from(this);
106  }
Here is the call graph for this function:

◆ getCategory()

Structure org.turro.member.db.entities.AxProjectCategory.getCategory ( )

Definition at line 90 of file AxProjectCategory.java.

90  {
91  return Zero.orNull(categoryId) ? null :
92  (category == null ? Servers.getData(WsServer.from(getServerDomain(), AxServer.SERVER_SERVICE), AxConstants.CATEGORY,
93  Jsons.object().add("id", categoryId)).getStructure() : category);
94  }
Here is the call graph for this function:

◆ getCategoryId()

Long org.turro.member.db.entities.AxProjectCategory.getCategoryId ( )

Definition at line 66 of file AxProjectCategory.java.

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

◆ getDossier()

Dossier org.turro.member.db.entities.AxProjectCategory.getDossier ( )

Definition at line 78 of file AxProjectCategory.java.

78  {
79  return Strings.isBlank(projectId) ? null :
80  (dossier == null ? new DossierPU().find(Dossier.class, Long.valueOf(projectId)) : dossier);
81  }

◆ getProjectId()

String org.turro.member.db.entities.AxProjectCategory.getProjectId ( )

Definition at line 58 of file AxProjectCategory.java.

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

◆ getServerDomain()

String org.turro.member.db.entities.AxProjectCategory.getServerDomain ( )

Definition at line 50 of file AxProjectCategory.java.

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

◆ isEmpty()

boolean org.turro.member.db.entities.AxProjectCategory.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 109 of file AxProjectCategory.java.

109  {
110  return Strings.isBlank(serverDomain) ||
111  Strings.isBlank(projectId) ||
112  Zero.orNull(categoryId);
113  }
Here is the call graph for this function:

◆ setCategory()

void org.turro.member.db.entities.AxProjectCategory.setCategory ( Structure  category)

Definition at line 96 of file AxProjectCategory.java.

96  {
97  this.category = category;
98  this.categoryId = category == null ? null : category.getLong("categoryId");
99  }

◆ setCategoryId()

void org.turro.member.db.entities.AxProjectCategory.setCategoryId ( Long  categoryId)

Definition at line 70 of file AxProjectCategory.java.

70  {
71  this.categoryId = categoryId;
72  }

◆ setDossier()

void org.turro.member.db.entities.AxProjectCategory.setDossier ( Dossier  dossier)

Definition at line 83 of file AxProjectCategory.java.

83  {
84  this.dossier = dossier;
85  this.projectId = dossier == null ? null : Long.toString(dossier.getId());
86  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setProjectId()

void org.turro.member.db.entities.AxProjectCategory.setProjectId ( String  projectId)

Definition at line 62 of file AxProjectCategory.java.

62  {
63  this.projectId = projectId;
64  }

◆ setServerDomain()

void org.turro.member.db.entities.AxProjectCategory.setServerDomain ( String  serverDomain)

Definition at line 54 of file AxProjectCategory.java.

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

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