BrightSide Workbench Full Report + Source Code
org.turro.erp.clone.RequiredUsageClone Class Reference
Inheritance diagram for org.turro.erp.clone.RequiredUsageClone:
Collaboration diagram for org.turro.erp.clone.RequiredUsageClone:

Public Member Functions

 RequiredUsageClone (RequiredUsage requiredUsage, ClonedEntitySet entities)
 
void setTask (TaskClone task)
 
void setUnitRatio (double ratio)
 
Collection children ()
 
Object parent ()
 

Protected Member Functions

RequiredUsage createClone ()
 
void applyData (RequiredUsage entity)
 
void applyChildren (RequiredUsage entity)
 
void assignEntities ()
 

Detailed Description

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

Definition at line 34 of file RequiredUsageClone.java.

Constructor & Destructor Documentation

◆ RequiredUsageClone()

org.turro.erp.clone.RequiredUsageClone.RequiredUsageClone ( RequiredUsage  requiredUsage,
ClonedEntitySet  entities 
)

Definition at line 50 of file RequiredUsageClone.java.

50  {
51  super(requiredUsage.getId(), requiredUsage, entities);
52  units = requiredUsage.getUnits();
53  cost = requiredUsage.getCost();
54  price = requiredUsage.getPrice();
55  dedication = requiredUsage.getDedication();
56  purchaseLag = requiredUsage.getPurchaseLag();
57  providerId = requiredUsage.getProviderId();
58  providerProductId = requiredUsage.getProviderProductId();
59  productId = requiredUsage.getProductId();
60  lineTypeId = requiredUsage.getLineTypeId();
61  contractPreferenceId = requiredUsage.getContractPreferenceId();
62  viewId = requiredUsage.getViewId();
63  providerFixed = requiredUsage.isProviderFixed();
64  costMaximum = requiredUsage.isCostMaximum();
65  canChange = requiredUsage.isCanChange();
66  representHours = requiredUsage.isRepresentHours();
67  productDescription = requiredUsage.getProductDescription();
68  description = requiredUsage.getDescription();
69  humanResource = requiredUsage.getHumanResource();
70  resource = requiredUsage.getResource();
71  aptitudeDegree = requiredUsage.getAptitudeDegree();
72  aptitudeAssesment = requiredUsage.getAptitudeAssesment();
73  purchaseMode = requiredUsage.getPurchaseMode();
74  purchaseDate = requiredUsage.getPurchaseDate();
75  }
Here is the call graph for this function:

Member Function Documentation

◆ applyChildren()

void org.turro.erp.clone.RequiredUsageClone.applyChildren ( RequiredUsage  entity)
protected

Definition at line 120 of file RequiredUsageClone.java.

120  {
121  }

◆ applyData()

void org.turro.erp.clone.RequiredUsageClone.applyData ( RequiredUsage  entity)
protected

Definition at line 93 of file RequiredUsageClone.java.

93  {
94  entity.setUnits(units);
95  entity.setCost(cost);
96  entity.setPrice(price);
97  entity.setDedication(dedication);
98  entity.setPurchaseLag(purchaseLag);
99  entity.setProviderId(providerId);
100  entity.setProviderProductId(providerProductId);
101  entity.setProductId(productId);
102  entity.setLineTypeId(lineTypeId);
103  entity.setContractPreferenceId(contractPreferenceId);
104  entity.setViewId(viewId);
105  entity.setProviderFixed(providerFixed);
106  entity.setCostMaximum(costMaximum);
107  entity.setCanChange(canChange);
108  entity.setRepresentHours(representHours);
109  entity.setProductDescription(productDescription);
110  entity.setDescription(description);
111  entity.setHumanResource(humanResource);
112  entity.setResource(resource);
113  entity.setAptitudeDegree(aptitudeDegree);
114  entity.setAptitudeAssesment(aptitudeAssesment);
115  entity.setPurchaseMode(purchaseMode);
116  entity.setPurchaseDate(purchaseDate);
117  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignEntities()

void org.turro.erp.clone.RequiredUsageClone.assignEntities ( )
protected

Definition at line 124 of file RequiredUsageClone.java.

124  {
125  if(purchaseTask == null) {
126  purchaseTask = new TaskClone(entity.getPurchaseTask(), entities);
127  } else if(getClone() != null) {
128  getClone().setPurchaseTask(purchaseTask.getClone());
129  }
130  }

◆ children()

Collection org.turro.erp.clone.RequiredUsageClone.children ( )

Implements org.turro.hierarchy.Hierarchical.

Definition at line 135 of file RequiredUsageClone.java.

135  {
136  return null;
137  }

◆ createClone()

RequiredUsage org.turro.erp.clone.RequiredUsageClone.createClone ( )
protected

Definition at line 86 of file RequiredUsageClone.java.

86  {
87  RequiredUsage requiredUsage = new RequiredUsage();
88  applyData(requiredUsage);
89  return requiredUsage;
90  }
Here is the call graph for this function:

◆ parent()

Object org.turro.erp.clone.RequiredUsageClone.parent ( )

Implements org.turro.hierarchy.Hierarchical.

Definition at line 140 of file RequiredUsageClone.java.

140  {
141  return task;
142  }

◆ setTask()

void org.turro.erp.clone.RequiredUsageClone.setTask ( TaskClone  task)

Definition at line 77 of file RequiredUsageClone.java.

77  {
78  this.task = task;
79  }
Here is the caller graph for this function:

◆ setUnitRatio()

void org.turro.erp.clone.RequiredUsageClone.setUnitRatio ( double  ratio)

Definition at line 81 of file RequiredUsageClone.java.

81  {
82  units = units * ratio;
83  }

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