TangCheng
2025-02-28 d787e447e95c7b897c2cc9c0e832f8d2e5084934
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
package com.smtaiserver.smtaiserver.gismap;
 
import com.smtaiserver.smtaiserver.core.SMTAIServerApp;
import com.smtaiserver.smtaiserver.database.SMTDatabase.DBRecord;
import com.smtaiserver.smtaiserver.gismap.tabledef.SMTMapTableDef;
 
public class SMTMapVPropDef
{
    protected SMTMapOtypeDef    _otypeDef;
    protected String            _VPROP;
    protected String            _columnSql;
    protected String            _title;
    protected String            _unit;
    protected SMTMapTableDef     _tableDef;
    
    public SMTMapVPropDef(SMTMapOtypeDef otypeDef, DBRecord rec) throws Exception
    {
        _otypeDef = otypeDef;
        _title = rec.getString("title");
        _unit = rec.getString("unit");
        _VPROP = rec.getString("vprop");
        _columnSql = rec.getString("column_sql");
        
        _tableDef = SMTAIServerApp.getApp().getMapTableDef(rec.getString("table_id"));
    }
    
    public String getTitle()
    {
        return _title;
    }
    
    public String getUnit()
    {
        return _unit;
    }
    
    public String getColumnSql()
    {
        return _columnSql;
    }
    
    public SMTMapOtypeDef getOTYPE()
    {
        return _otypeDef;
    }
    
    public String getVPROP()
    {
        return _VPROP;
    }
    
    public SMTMapTableDef getTableDef()
    {
        return _tableDef;
    }
}