1010// limitations under the License.
1111//
1212// Automatically generated by addcopyright.py at 04/03/2012
13- package com .cloud .alert ;
14-
13+ package com .cloud .alert ;
14+
1515import java .util .Date ;
1616import java .util .UUID ;
1717
2626
2727import com .cloud .api .Identity ;
2828import com .cloud .utils .db .GenericDao ;
29-
30- @ Entity
31- @ Table (name ="alert" )
32- public class AlertVO implements Alert , Identity {
33- @ Id
34- @ GeneratedValue (strategy =GenerationType .IDENTITY )
35- @ Column (name ="id" )
36- private long id ;
37-
38- @ Column (name ="type" )
29+
30+ @ Entity
31+ @ Table (name ="alert" )
32+ public class AlertVO implements Alert , Identity {
33+ @ Id
34+ @ GeneratedValue (strategy =GenerationType .IDENTITY )
35+ @ Column (name ="id" )
36+ private long id ;
37+
38+ @ Column (name ="type" )
3939 private short type ;
40-
40+
4141 @ Column (name ="cluster_id" )
4242 private Long clusterId = null ;
43-
44- @ Column (name ="pod_id" )
45- private Long podId = null ;
46-
47- @ Column (name ="data_center_id" )
48- private long dataCenterId = 0 ;
49-
50- @ Column (name ="subject" , length =999 )
51- private String subject ;
52-
53- @ Column (name ="sent_count" )
54- private int sentCount = 0 ;
55-
56- @ Column (name =GenericDao .CREATED_COLUMN )
57- private Date createdDate ;
58-
59- @ Temporal (TemporalType .TIMESTAMP )
60- @ Column (name ="last_sent" , updatable =true , nullable =true )
61- private Date lastSent ;
62-
63- @ Temporal (TemporalType .TIMESTAMP )
64- @ Column (name ="resolved" , updatable =true , nullable =true )
43+
44+ @ Column (name ="pod_id" )
45+ private Long podId = null ;
46+
47+ @ Column (name ="data_center_id" )
48+ private long dataCenterId = 0 ;
49+
50+ @ Column (name ="subject" , length =999 )
51+ private String subject ;
52+
53+ @ Column (name ="sent_count" )
54+ private int sentCount = 0 ;
55+
56+ @ Column (name =GenericDao .CREATED_COLUMN )
57+ private Date createdDate ;
58+
59+ @ Temporal (TemporalType .TIMESTAMP )
60+ @ Column (name ="last_sent" , updatable =true , nullable =true )
61+ private Date lastSent ;
62+
63+ @ Temporal (TemporalType .TIMESTAMP )
64+ @ Column (name ="resolved" , updatable =true , nullable =true )
6565 private Date resolved ;
6666
6767 @ Column (name ="uuid" )
6868 private String uuid ;
69-
69+
7070 public AlertVO () {
7171 this .uuid = UUID .randomUUID ().toString ();
72- }
73- public AlertVO (Long id ) {
74- this .id = id ;
72+ }
73+ public AlertVO (Long id ) {
74+ this .id = id ;
7575 this .uuid = UUID .randomUUID ().toString ();
76- }
77-
76+ }
77+
7878 @ Override
79- public long getId () {
80- return id ;
81- }
79+ public long getId () {
80+ return id ;
81+ }
8282 @ Override
83- public short getType () {
84- return type ;
85- }
86-
87- public void setType (short type ) {
88- this .type = type ;
89- }
90-
83+ public short getType () {
84+ return type ;
85+ }
86+
87+ public void setType (short type ) {
88+ this .type = type ;
89+ }
90+
9191 @ Override
92- public String getSubject () {
93- return subject ;
94- }
95-
96- public void setSubject (String subject ) {
97- this .subject = subject ;
98- }
99-
92+ public String getSubject () {
93+ return subject ;
94+ }
95+
96+ public void setSubject (String subject ) {
97+ this .subject = subject ;
98+ }
99+
100100 public Long getClusterId () {
101101 return clusterId ;
102102 }
103103 public void setClusterId (Long clusterId ) {
104104 this .clusterId = clusterId ;
105105 }
106106 @ Override
107- public Long getPodId () {
108- return podId ;
109- }
110-
111- public void setPodId (Long podId ) {
112- this .podId = podId ;
113- }
114-
107+ public Long getPodId () {
108+ return podId ;
109+ }
110+
111+ public void setPodId (Long podId ) {
112+ this .podId = podId ;
113+ }
114+
115115 @ Override
116- public long getDataCenterId () {
117- return dataCenterId ;
118- }
119-
120- public void setDataCenterId (long dataCenterId ) {
121- this .dataCenterId = dataCenterId ;
122- }
123-
116+ public long getDataCenterId () {
117+ return dataCenterId ;
118+ }
119+
120+ public void setDataCenterId (long dataCenterId ) {
121+ this .dataCenterId = dataCenterId ;
122+ }
123+
124124 @ Override
125- public int getSentCount () {
126- return sentCount ;
127- }
128-
129- public void setSentCount (int sentCount ) {
130- this .sentCount = sentCount ;
131- }
132-
125+ public int getSentCount () {
126+ return sentCount ;
127+ }
128+
129+ public void setSentCount (int sentCount ) {
130+ this .sentCount = sentCount ;
131+ }
132+
133133 @ Override
134- public Date getCreatedDate () {
135- return createdDate ;
136- }
137-
138- public void setCreatedDate (Date createdDate ) {
139- this .createdDate = createdDate ;
140- }
141-
134+ public Date getCreatedDate () {
135+ return createdDate ;
136+ }
137+
138+ public void setCreatedDate (Date createdDate ) {
139+ this .createdDate = createdDate ;
140+ }
141+
142142 @ Override
143- public Date getLastSent () {
144- return lastSent ;
145- }
146-
147- public void setLastSent (Date lastSent ) {
148- this .lastSent = lastSent ;
149- }
150-
143+ public Date getLastSent () {
144+ return lastSent ;
145+ }
146+
147+ public void setLastSent (Date lastSent ) {
148+ this .lastSent = lastSent ;
149+ }
150+
151151 @ Override
152- public Date getResolved () {
153- return resolved ;
154- }
155-
156- public void setResolved (Date resolved ) {
157- this .resolved = resolved ;
152+ public Date getResolved () {
153+ return resolved ;
154+ }
155+
156+ public void setResolved (Date resolved ) {
157+ this .resolved = resolved ;
158158 }
159159
160160 @ Override
@@ -164,5 +164,5 @@ public String getUuid() {
164164
165165 public void setUuid (String uuid ) {
166166 this .uuid = uuid ;
167- }
168- }
167+ }
168+ }
0 commit comments