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; } }