CompoEntryBase.as
6.51 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/**
* Generated by Gas3 v2.1.0 (Granite Data Services).
*
* WARNING: DO NOT CHANGE THIS FILE. IT MAY BE OVERWRITTEN EACH TIME YOU USE
* THE GENERATOR. INSTEAD, EDIT THE INHERITED CLASS (CompoEntry.as).
*/
package fi.insomnia.bortal.model {
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;
import mx.collections.ListCollectionView;
import org.granite.collections.IPersistentCollection;
import org.granite.meta;
use namespace meta;
[Bindable]
public class CompoEntryBase implements IExternalizable, EventChildInterface {
private var __initialized:Boolean = true;
private var __detachedState:String = null;
private var _compo:Compo;
private var _created:Date;
private var _creator:User;
private var _currentFile:CompoEntryFile;
private var _files:ListCollectionView;
private var _finalPosition:Number;
private var _id:EventPk;
private var _jpaVersionField:int;
private var _name:String;
private var _notes:String;
private var _participants:ListCollectionView;
private var _screenMessage:String;
private var _sort:Number;
private var _votes:ListCollectionView;
meta function isInitialized(name:String = null):Boolean {
if (!name)
return __initialized;
var property:* = this[name];
return (
(!(property is CompoEntry) || (property as CompoEntry).meta::isInitialized()) &&
(!(property is IPersistentCollection) || (property as IPersistentCollection).isInitialized())
);
}
public function set compo(value:Compo):void {
_compo = value;
}
public function get compo():Compo {
return _compo;
}
public function set created(value:Date):void {
_created = value;
}
public function get created():Date {
return _created;
}
public function set creator(value:User):void {
_creator = value;
}
public function get creator():User {
return _creator;
}
public function set currentFile(value:CompoEntryFile):void {
_currentFile = value;
}
public function get currentFile():CompoEntryFile {
return _currentFile;
}
public function set files(value:ListCollectionView):void {
_files = value;
}
public function get files():ListCollectionView {
return _files;
}
public function set finalPosition(value:Number):void {
_finalPosition = value;
}
public function get finalPosition():Number {
return _finalPosition;
}
public function set id(value:EventPk):void {
_id = value;
}
public function get id():EventPk {
return _id;
}
public function set jpaVersionField(value:int):void {
_jpaVersionField = value;
}
public function get jpaVersionField():int {
return _jpaVersionField;
}
public function set name(value:String):void {
_name = value;
}
public function get name():String {
return _name;
}
public function set notes(value:String):void {
_notes = value;
}
public function get notes():String {
return _notes;
}
public function set participants(value:ListCollectionView):void {
_participants = value;
}
public function get participants():ListCollectionView {
return _participants;
}
public function set screenMessage(value:String):void {
_screenMessage = value;
}
public function get screenMessage():String {
return _screenMessage;
}
public function set sort(value:Number):void {
_sort = value;
}
public function get sort():Number {
return _sort;
}
public function set votes(value:ListCollectionView):void {
_votes = value;
}
public function get votes():ListCollectionView {
return _votes;
}
public function readExternal(input:IDataInput):void {
__initialized = input.readObject() as Boolean;
__detachedState = input.readObject() as String;
if (meta::isInitialized()) {
_compo = input.readObject() as Compo;
_created = input.readObject() as Date;
_creator = input.readObject() as User;
_currentFile = input.readObject() as CompoEntryFile;
_files = input.readObject() as ListCollectionView;
_finalPosition = function(o:*):Number { return (o is Number ? o as Number : Number.NaN) } (input.readObject());
_id = input.readObject() as EventPk;
_jpaVersionField = input.readObject() as int;
_name = input.readObject() as String;
_notes = input.readObject() as String;
_participants = input.readObject() as ListCollectionView;
_screenMessage = input.readObject() as String;
_sort = function(o:*):Number { return (o is Number ? o as Number : Number.NaN) } (input.readObject());
_votes = input.readObject() as ListCollectionView;
}
else {
_id = input.readObject() as EventPk;
}
}
public function writeExternal(output:IDataOutput):void {
output.writeObject(__initialized);
output.writeObject(__detachedState);
if (meta::isInitialized()) {
output.writeObject(_compo);
output.writeObject(_created);
output.writeObject(_creator);
output.writeObject(_currentFile);
output.writeObject(_files);
output.writeObject(_finalPosition);
output.writeObject(_id);
output.writeObject(_jpaVersionField);
output.writeObject(_name);
output.writeObject(_notes);
output.writeObject(_participants);
output.writeObject(_screenMessage);
output.writeObject(_sort);
output.writeObject(_votes);
}
else {
output.writeObject(_id);
}
}
}
}