Examples of ExportPointInfo


Examples of com.serotonin.m2m2.vo.export.ExportPointInfo

      return query(REPORT_INSTANCE_POINT_SELECT + "where reportInstanceId=?",
                new Object[] { instanceId }, new RowMapper<ExportPointInfo>() {
                    @Override
                    public ExportPointInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
                        int i = 0;
                        ExportPointInfo rp = new ExportPointInfo();
                        rp.setReportPointId(rs.getInt(++i));
                        rp.setDeviceName(rs.getString(++i));
                        rp.setPointName(rs.getString(++i));
                        rp.setXid(rs.getString(++i));
                        rp.setDataType(rs.getInt(++i));
                        String startValue = rs.getString(++i);
                        if (startValue != null)
                            rp.setStartValue(DataValue.stringToValue(startValue, rp.getDataType()));
                        rp.setTextRenderer((TextRenderer) SerializationHelper.readObjectInContext(rs.getBlob(++i)
                                .getBinaryStream()));
                        rp.setColour(rs.getString(++i));
                        rp.setWeight(rs.getFloat(++i));
                        rp.setConsolidatedChart(charToBool(rs.getString(++i)));
                        rp.setPlotType(rs.getInt(++i));
                        return rp;
                    }
                });
    }
View Full Code Here

Examples of com.serotonin.m2m2.vo.export.ExportPointInfo

        List<ExportPointInfo> pointInfos = query(REPORT_INSTANCE_POINT_SELECT + "where reportInstanceId=?",
                new Object[] { instanceId }, new RowMapper<ExportPointInfo>() {
                    @Override
                    public ExportPointInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
                        int i = 0;
                        ExportPointInfo rp = new ExportPointInfo();
                        rp.setReportPointId(rs.getInt(++i));
                        rp.setDeviceName(rs.getString(++i));
                        rp.setPointName(rs.getString(++i));
                        rp.setXid(rs.getString(++i));
                        rp.setDataType(rs.getInt(++i));
                        String startValue = rs.getString(++i);
                        if (startValue != null)
                            rp.setStartValue(DataValue.stringToValue(startValue, rp.getDataType()));
                        rp.setTextRenderer((TextRenderer) SerializationHelper.readObjectInContext(rs.getBlob(++i)
                                .getBinaryStream()));
                        rp.setColour(rs.getString(++i));
                        rp.setWeight(rs.getFloat(++i));
                        rp.setConsolidatedChart(charToBool(rs.getString(++i)));
                        rp.setPlotType(rs.getInt(++i));
                        return rp;
                    }
                });

        final ExportDataValue edv = new ExportDataValue();
View Full Code Here

Examples of com.serotonin.m2m2.vo.export.ExportPointInfo

        List<ExportPointInfo> pointInfos = query(REPORT_INSTANCE_POINT_SELECT + "where reportInstanceId=?",
                new Object[] { instanceId }, new RowMapper<ExportPointInfo>() {
                    @Override
                    public ExportPointInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
                        int i = 0;
                        ExportPointInfo rp = new ExportPointInfo();
                        rp.setReportPointId(rs.getInt(++i));
                        rp.setDeviceName(rs.getString(++i));
                        rp.setPointName(rs.getString(++i));
                        rp.setXid(rs.getString(++i));
                        rp.setDataType(rs.getInt(++i));
                        String startValue = rs.getString(++i);
                        if (startValue != null)
                            rp.setStartValue(DataValue.stringToValue(startValue, rp.getDataType()));
                        rp.setTextRenderer((TextRenderer) SerializationHelper.readObjectInContext(rs.getBlob(++i)
                                .getBinaryStream()));
                        rp.setColour(rs.getString(++i));
                        rp.setWeight(rs.getFloat(++i));
                        rp.setConsolidatedChart(charToBool(rs.getString(++i)));
                        rp.setPlotType(rs.getInt(++i));
                        return rp;
                    }
                });

        final ExportDataValue edv = new ExportDataValue();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.