OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 150 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 150 Rev 181
Line 23... Line 23...
23
 
23
 
24
    public JCalendarItemDB(final SQLElementDirectory dir, final SQLRowValues r) {
24
    public JCalendarItemDB(final SQLElementDirectory dir, final SQLRowValues r) {
25
        assert r.isFrozen();
25
        assert r.isFrozen();
26
        this.item = r;
26
        this.item = r;
27
        this.group = dir.getElement(this.item.getTable()).getContainer(this.item);
27
        this.group = dir.getElement(this.item.getTable()).getContainer(this.item);
-
 
28
        if (this.group == null) {
-
 
29
            throw new IllegalArgumentException("no group found for row " + r);
-
 
30
        }
28
        this.operationElem = dir.getElement(OperationSQLElement.class);
31
        this.operationElem = dir.getElement(OperationSQLElement.class);
-
 
32
        if (this.operationElem == null) {
-
 
33
            throw new IllegalStateException("no element found " + OperationSQLElement.class);
-
 
34
        }
29
        this.operation = CollectionUtils.getSole(this.group.getReferentRows(this.operationElem.getTable()));
35
        this.operation = CollectionUtils.getSole(this.group.getReferentRows(this.operationElem.getTable()));
30
    }
36
    }
31
 
37
 
32
    // OK since frozen
38
    // OK since frozen
33
    public final SQLRowValues getRow() {
39
    public final SQLRowValues getRow() {
Line 82... Line 88...
82
    public void setOperationStatus(String status) {
88
    public void setOperationStatus(String status) {
83
        this.status = status;
89
        this.status = status;
84
    }
90
    }
85
 
91
 
86
    public String getStatus() {
92
    public String getStatus() {
87
        return status;
93
        return this.status;
88
    }
94
    }
89
 
95
 
90
    public void setOperationType(String type) {
96
    public void setOperationType(String type) {
91
        this.type = type;
97
        this.type = type;
92
    }
98
    }
93
 
99
 
94
    public String getType() {
100
    public String getType() {
95
        return type;
101
        return this.type;
96
    }
102
    }
97
 
103
 
98
    public String getFlagsString() {
104
    public String getFlagsString() {
99
        final List<Flag> flags = getFlags();
105
        final List<Flag> flags = getFlags();
100
        final int size = flags.size();
106
        final int size = flags.size();
Line 107... Line 113...
107
        }
113
        }
108
        return str;
114
        return str;
109
    }
115
    }
110
 
116
 
111
    public String getPlannerXML() {
117
    public String getPlannerXML() {
112
        return plannerXML;
118
        return this.plannerXML;
113
    }
119
    }
114
 
120
 
115
    public void setPlannerXML(String string) {
121
    public void setPlannerXML(String string) {
116
        this.plannerXML = string;
122
        this.plannerXML = string;
117
    }
123
    }
118
 
124
 
119
    public String getPlannerUID() {
125
    public String getPlannerUID() {
120
        return plannerUID;
126
        return this.plannerUID;
121
    }
127
    }
122
 
128
 
123
    public void setPlannerUID(String plannerUID) {
129
    public void setPlannerUID(String plannerUID) {
124
        this.plannerUID = plannerUID;
130
        this.plannerUID = plannerUID;
125
    }
131
    }
126
 
132
 
127
    public String getSiteName() {
133
    public String getSiteName() {
128
        return siteName;
134
        return this.siteName;
129
    }
135
    }
130
 
136
 
131
    public void setSiteName(String siteName) {
137
    public void setSiteName(String siteName) {
132
        this.siteName = siteName;
138
        this.siteName = siteName;
133
    }
139
    }
134
 
140
 
135
    public String getSiteComment() {
141
    public String getSiteComment() {
136
        return siteComment;
142
        return this.siteComment;
137
    }
143
    }
138
 
144
 
139
    public void setSiteComment(String siteComment) {
145
    public void setSiteComment(String siteComment) {
140
        this.siteComment = siteComment;
146
        this.siteComment = siteComment;
141
    }
147
    }
Line 143... Line 149...
143
    public void setSiteId(Number idNumber) {
149
    public void setSiteId(Number idNumber) {
144
        this.siteId = idNumber;
150
        this.siteId = idNumber;
145
    }
151
    }
146
 
152
 
147
    public Number getSiteId() {
153
    public Number getSiteId() {
148
        return siteId;
154
        return this.siteId;
149
    }
155
    }
150
 
156
 
151
    public int getId() {
157
    public int getId() {
152
        return this.getRow().getID();
158
        return this.getRow().getID();
153
    }
159
    }