ludc
2025-01-16 986aa62ed00bee39363bab41b4eeb8259d446efd
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
package com.vci.server.query.refquery.objects;
 
import com.vci.corba.query.data.RefPath;
 
public class PLMRefQueryPath {
    // 值对象
    RefPath pathObject;
    // 参照属性的路径信息(元数据)
    PLMRefPathInfo pathInfo;
    // 参照属性的层次数
    Integer level;
    //最大的路径长度
    Integer maxpath;
    // 参照是属性对应的SQL返回值键
    String selectKey;
 
    public Integer getMaxpath() {
        return maxpath;
    }
 
    public void setMaxpath(Integer maxpath) {
        this.maxpath = maxpath;
    }
 
    public RefPath getPath() {
        return pathObject;
    }
 
    public void setPath(RefPath path) {
        this.pathObject = path;
    }
 
    public PLMRefPathInfo getPathInfo() {
        return pathInfo;
    }
 
    public void setPathInfo(PLMRefPathInfo pathInfo) {
        this.pathInfo = pathInfo;
    }
 
    public Integer getLevel() {
        return level;
    }
 
    public void setLevel(Integer level) {
        this.level = level;
    }
 
    public String getSelectKey() {
        return selectKey;
    }
 
    public void setSelectKey(String selectKey) {
        this.selectKey = selectKey;
    }
 
    public MetaData getLevel(int i) {
        MetaData result = null;
        MetaData[] metadatas = pathInfo.getMd();
        for (MetaData md : metadatas) {
            if (md.getLevel() == i) {
                result = md;
                break;
            }
        }
        return result;
    }
 
    public String getlevel(int i) {
        String[] s = pathObject.path.split("\\.");
        String results = "";
        for (int j = 0; j <= i; j++) {
 
            results += s[j];
            results += ".";
        }
        return results.substring(0, results.lastIndexOf("."));
 
    }
}