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
package com.vci.server.framework.volume.dao;
 
import java.io.Serializable;
 
import com.vci.common.annotaion.CustomAnnotaion;
import com.vci.common.objects.AbstractHistorizable;
@CustomAnnotaion(CustomDescription = "卷")
public class Pvolume extends AbstractHistorizable implements Serializable {
   /**
     * 
     */
    @CustomAnnotaion(CustomDescription = "序列",InToString = false)
   private static final long serialVersionUID = 1L;
    @CustomAnnotaion(CustomDescription = "ID",InToString = false)
   private String id; //卷id
    @CustomAnnotaion(CustomDescription = "名称")
   private String name; //卷名称
    @CustomAnnotaion(CustomDescription = "服务")
   private String service;//卷服务
    @CustomAnnotaion(CustomDescription = "服务器")
   private String host;//卷服务器
    @CustomAnnotaion(CustomDescription = "卷类型",InToString = false)
   private int type; //卷服务器类型
    @CustomAnnotaion(CustomDescription = "卷路径")
   private String path; //卷服务路径
    @CustomAnnotaion(CustomDescription = "是否首选")
   private boolean isvalid; //是否为首选路径
   
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getService() {
        return service;
    }
    public void setService(String service) {
        this.service = service;
    }
    public void setHost(String host) {
        this.host = host;
    }
    public String getHost() {
        return this.host;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public String getPath() {
        return path;
    }
    public void setPath(String path) {
        this.path = path;
    }
    public boolean getIsvalid() {
        return isvalid;
    }
    public void setIsvalid(boolean isvalid) {
        this.isvalid = isvalid;
    }
     
    public String getMessage(){
        return "[名称:"+name+"|路径:"+path+"|类型:"+type+"]";
    }
    
}