BrightSide Workbench Full Report + Source Code
org.turro.crm.entity.Campaign Class Reference
Inheritance diagram for org.turro.crm.entity.Campaign:
Collaboration diagram for org.turro.crm.entity.Campaign:

Public Member Functions

long getId ()
 
void setId (long id)
 
String getDescription ()
 
void setDescription (String description)
 
Date getCampaignDate ()
 
void setCampaignDate (Date campaignDate)
 
Date getClosingDate ()
 
void setClosingDate (Date closingDate)
 
Set< CampaignVendorgetCampaignVendors ()
 
void setCampaignVendors (Set< CampaignVendor > campaignVendors)
 
Set< SaleProspectgetSaleProspects ()
 
void setSaleProspects (Set< SaleProspect > saleProspects)
 
byte[] getTargets ()
 
void setTargets (byte[] targets)
 
Object entityId ()
 
boolean isEmpty ()
 
Collection< Collection > collections ()
 
SaleProspect customerExists (Customer customer)
 
TargetArray getTargetArray ()
 
void setTargetArray (TargetArray targetArray)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 

Detailed Description

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

Definition at line 47 of file Campaign.java.

Member Function Documentation

◆ collections()

Collection<Collection> org.turro.crm.entity.Campaign.collections ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 143 of file Campaign.java.

143  {
144  return List.of(campaignVendors);
145  }

◆ customerExists()

SaleProspect org.turro.crm.entity.Campaign.customerExists ( Customer  customer)

Definition at line 149 of file Campaign.java.

149  {
150  for(SaleProspect sp : saleProspects) {
151  if(sp.getCustomer().getId() == customer.getId()) {
152  return sp;
153  }
154  }
155  return null;
156  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ entityId()

Object org.turro.crm.entity.Campaign.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 133 of file Campaign.java.

133  {
134  return id;
135  }

◆ getCampaignDate()

Date org.turro.crm.entity.Campaign.getCampaignDate ( )

Definition at line 90 of file Campaign.java.

90  {
91  return campaignDate;
92  }
Here is the caller graph for this function:

◆ getCampaignVendors()

Set<CampaignVendor> org.turro.crm.entity.Campaign.getCampaignVendors ( )

Definition at line 106 of file Campaign.java.

106  {
107  return campaignVendors;
108  }
Here is the caller graph for this function:

◆ getClosingDate()

Date org.turro.crm.entity.Campaign.getClosingDate ( )

Definition at line 98 of file Campaign.java.

98  {
99  return closingDate;
100  }
Here is the caller graph for this function:

◆ getDescription()

String org.turro.crm.entity.Campaign.getDescription ( )

Definition at line 82 of file Campaign.java.

82  {
83  return description;
84  }
Here is the caller graph for this function:

◆ getId()

long org.turro.crm.entity.Campaign.getId ( )

Definition at line 74 of file Campaign.java.

74  {
75  return id;
76  }

◆ getSaleProspects()

Set<SaleProspect> org.turro.crm.entity.Campaign.getSaleProspects ( )

Definition at line 114 of file Campaign.java.

114  {
115  return saleProspects;
116  }
Here is the caller graph for this function:

◆ getTargetArray()

TargetArray org.turro.crm.entity.Campaign.getTargetArray ( )

Definition at line 160 of file Campaign.java.

160  {
161  if(targets == null) {
162  return new TargetArray();
163  }
164  GenericObject go = new GenericObject();
165  go.bytesToObject(targets);
166  return (TargetArray) go.getObject();
167  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTargets()

byte [] org.turro.crm.entity.Campaign.getTargets ( )

Definition at line 122 of file Campaign.java.

122  {
123  return targets;
124  }

◆ isEmpty()

boolean org.turro.crm.entity.Campaign.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 138 of file Campaign.java.

138  {
139  return Strings.isBlank(description);
140  }

◆ setCampaignDate()

void org.turro.crm.entity.Campaign.setCampaignDate ( Date  campaignDate)

Definition at line 94 of file Campaign.java.

94  {
95  this.campaignDate = campaignDate;
96  }

◆ setCampaignVendors()

void org.turro.crm.entity.Campaign.setCampaignVendors ( Set< CampaignVendor campaignVendors)

Definition at line 110 of file Campaign.java.

110  {
111  this.campaignVendors = campaignVendors;
112  }

◆ setClosingDate()

void org.turro.crm.entity.Campaign.setClosingDate ( Date  closingDate)

Definition at line 102 of file Campaign.java.

102  {
103  this.closingDate = closingDate;
104  }

◆ setDescription()

void org.turro.crm.entity.Campaign.setDescription ( String  description)

Definition at line 86 of file Campaign.java.

86  {
87  this.description = description;
88  }

◆ setId()

void org.turro.crm.entity.Campaign.setId ( long  id)

Definition at line 78 of file Campaign.java.

78  {
79  this.id = id;
80  }

◆ setSaleProspects()

void org.turro.crm.entity.Campaign.setSaleProspects ( Set< SaleProspect saleProspects)

Definition at line 118 of file Campaign.java.

118  {
119  this.saleProspects = saleProspects;
120  }

◆ setTargetArray()

void org.turro.crm.entity.Campaign.setTargetArray ( TargetArray  targetArray)

Definition at line 169 of file Campaign.java.

169  {
170  if(targetArray == null) {
171  targets = null;
172  return;
173  }
174  GenericObject go = new GenericObject();
175  go.setObject(targetArray);
176  targets = go.objectToBytes();
177  }
Here is the call graph for this function:

◆ setTargets()

void org.turro.crm.entity.Campaign.setTargets ( byte[]  targets)

Definition at line 126 of file Campaign.java.

126  {
127  this.targets = targets;
128  }

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