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

Public Member Functions

 WorkOrderClone (WorkOrder workOrder, ClonedEntitySet entities)
 
Collection children ()
 
Object parent ()
 

Protected Member Functions

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

Detailed Description

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

Definition at line 35 of file WorkOrderClone.java.

Constructor & Destructor Documentation

◆ WorkOrderClone()

org.turro.erp.clone.WorkOrderClone.WorkOrderClone ( WorkOrder  workOrder,
ClonedEntitySet  entities 
)

Definition at line 41 of file WorkOrderClone.java.

41  {
42  super(workOrder.getId(), workOrder, entities);
43  description = workOrder.getDescription();
44  supervised = workOrder.getSupervised();
45  for(OrderReference orderReference : workOrder.getOrderReferences()) {
46  if(orderReference.getId() > 0) {
47  OrderReferenceClone or = new OrderReferenceClone(orderReference, entities);
48  or.setWorkOrder(this);
49  orderReferences.add((OrderReferenceClone) entities.addClonedEntity(or));
50  }
51  }
52  }
Here is the call graph for this function:

Member Function Documentation

◆ applyChildren()

void org.turro.erp.clone.WorkOrderClone.applyChildren ( WorkOrder  entity)
protected

Definition at line 74 of file WorkOrderClone.java.

74  {
75  for(OrderReferenceClone orderReferenceClone : orderReferences) {
76  orderReferenceClone.applyChanges();
77  }
78  }

◆ applyData()

void org.turro.erp.clone.WorkOrderClone.applyData ( WorkOrder  entity)
protected

Definition at line 68 of file WorkOrderClone.java.

68  {
69  entity.setDescription(description);
70  entity.setSupervised(supervised);
71  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignEntities()

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

Definition at line 81 of file WorkOrderClone.java.

81  {
82  for(OrderReferenceClone orderReferenceClone : orderReferences) {
83  orderReferenceClone.assignEntities();
84  }
85  }

◆ children()

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

Implements org.turro.hierarchy.Hierarchical.

Definition at line 90 of file WorkOrderClone.java.

90  {
91  return orderReferences;
92  }

◆ createClone()

WorkOrder org.turro.erp.clone.WorkOrderClone.createClone ( )
protected

Definition at line 55 of file WorkOrderClone.java.

55  {
56  WorkOrder workOrder = new WorkOrder();
57  applyData(workOrder);
58  for(OrderReferenceClone orderReferenceClone : orderReferences) {
59  orderReferenceClone.generateClone();
60  OrderReference orderReference = orderReferenceClone.getClone();
61  orderReference.setWorkOrder(workOrder);
62  workOrder.getOrderReferences().add(orderReference);
63  }
64  return workOrder;
65  }
void applyData(WorkOrder entity)
Here is the call graph for this function:

◆ parent()

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

Implements org.turro.hierarchy.Hierarchical.

Definition at line 95 of file WorkOrderClone.java.

95  {
96  return null;
97  }

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