1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package ar.com.fdvs.dj.domain.entities;
31
32 import org.apache.commons.logging.Log;
33 import org.apache.commons.logging.LogFactory;
34
35 import ar.com.fdvs.dj.domain.ColumnProperty;
36 import ar.com.fdvs.dj.domain.DJCalculation;
37 import ar.com.fdvs.dj.domain.entities.columns.AbstractColumn;
38
39
40
41
42
43
44
45
46
47
48
49 public class DJGroupVariableDef implements Entity {
50
51 private static final Log log = LogFactory.getLog(DJGroupVariableDef.class);
52
53 private String name;
54 private AbstractColumn columnToApplyOperation;
55 private ColumnProperty columnProperty;
56 private DJCalculation operation;
57
58 public DJGroupVariableDef(String name, AbstractColumn columnToApplyOperation, DJCalculation operation) {
59 this.name = name;
60 this.columnToApplyOperation = columnToApplyOperation;
61 this.operation = operation;
62 }
63
64 public DJGroupVariableDef(String name, ColumnProperty columnProperty, DJCalculation operation) {
65 this.name = name;
66 this.columnProperty = columnProperty;
67 this.operation = operation;
68 }
69
70
71 public AbstractColumn getColumnToApplyOperation() {
72 return columnToApplyOperation;
73 }
74
75 public void setColumnToApplyOperation(AbstractColumn columnToApplyOperation) {
76 this.columnToApplyOperation = columnToApplyOperation;
77 }
78
79 public DJCalculation getOperation() {
80 return operation;
81 }
82
83 public void setOperation(DJCalculation operation) {
84 this.operation = operation;
85 }
86
87 public String getName() {
88 return name;
89 }
90
91 public void setName(String name) {
92 this.name = name;
93 }
94
95 public static Log getLog() {
96 return log;
97 }
98
99 public ColumnProperty getColumnProperty() {
100 return columnProperty;
101 }
102
103 public void setColumnProperty(ColumnProperty columnProperty) {
104 this.columnProperty = columnProperty;
105 }
106 }