BerthChangeEvent.java
1.46 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
package com.zteits.park.event;
import com.zteits.park.domain.TpPBerths;
import org.springframework.context.ApplicationEvent;
/**
* Copyright: Copyright (c) 2019 zteits
*
* @ClassName: com.zteits.park.event
* @Description:
* @version: v1.0.0
* @author: atao
* @date: 2019-04-01 15:19
* Modification History:
* Date Author Version Description
* ---------------------------------------------------------*
* 2019-04-01 atao v1.0.0 创建
*/
public class BerthChangeEvent extends ApplicationEvent {
public enum BerthEventEnum {
//新增
ADD,
//修改
MODIFY,
//删除
DELETE
}
private BerthEventEnum berthEventEnum;
private TpPBerths tpPBerths;
/**
* Create a new ApplicationEvent.
*
* @param source the object on which the event initially occurred (never {@code null})
*/
public BerthChangeEvent(BerthEventEnum berthEventEnum, TpPBerths tpPBerths) {
super(new Object());
this.berthEventEnum = berthEventEnum;
this.tpPBerths = tpPBerths;
}
public BerthEventEnum getBerthEventEnum() {
return berthEventEnum;
}
public void setBerthEventEnum(BerthEventEnum berthEventEnum) {
this.berthEventEnum = berthEventEnum;
}
public TpPBerths getTpPBerths() {
return tpPBerths;
}
public void setTpPBerths(TpPBerths tpPBerths) {
this.tpPBerths = tpPBerths;
}
}