use of com.infiniteautomation.mango.db.tables.records.DataPointsRecord in project ma-core-public by infiniteautomation.
the class DataPointDao method toRecord.
@Override
protected Record toRecord(DataPointVO vo) {
DataPointsRecord record = table.newRecord();
record.set(table.xid, vo.getXid());
record.set(table.name, vo.getName());
record.set(table.data, SerializationHelper.writeObjectToArray(vo));
record.set(table.dataSourceId, vo.getDataSourceId());
record.set(table.deviceName, vo.getDeviceName());
record.set(table.enabled, boolToChar(vo.isEnabled()));
record.set(table.loggingType, vo.getLoggingType());
record.set(table.intervalLoggingPeriodType, vo.getIntervalLoggingPeriodType());
record.set(table.intervalLoggingPeriod, vo.getIntervalLoggingPeriod());
record.set(table.intervalLoggingType, vo.getIntervalLoggingType());
record.set(table.tolerance, vo.getTolerance());
record.set(table.purgeOverride, boolToChar(vo.isPurgeOverride()));
record.set(table.purgeType, vo.getPurgeType());
record.set(table.purgePeriod, vo.getPurgePeriod());
record.set(table.defaultCacheSize, vo.getDefaultCacheSize());
record.set(table.discardExtremeValues, boolToChar(vo.isDiscardExtremeValues()));
record.set(table.engineeringUnits, vo.getEngineeringUnits());
record.set(table.rollup, vo.getRollup());
record.set(table.dataTypeId, vo.getPointLocator().getDataType().getId());
record.set(table.settable, boolToChar(vo.getPointLocator().isSettable()));
record.set(table.jsonData, convertData(vo.getData()));
record.set(table.seriesId, vo.getSeriesId());
record.set(table.readPermissionId, vo.getReadPermission().getId());
record.set(table.editPermissionId, vo.getEditPermission().getId());
record.set(table.setPermissionId, vo.getSetPermission().getId());
return record;
}
use of com.infiniteautomation.mango.db.tables.records.DataPointsRecord in project ma-core-public by MangoAutomation.
the class DataPointDao method toRecord.
@Override
protected Record toRecord(DataPointVO vo) {
DataPointsRecord record = table.newRecord();
record.set(table.xid, vo.getXid());
record.set(table.name, vo.getName());
record.set(table.data, SerializationHelper.writeObjectToArray(vo));
record.set(table.dataSourceId, vo.getDataSourceId());
record.set(table.deviceName, vo.getDeviceName());
record.set(table.enabled, boolToChar(vo.isEnabled()));
record.set(table.loggingType, vo.getLoggingType());
record.set(table.intervalLoggingPeriodType, vo.getIntervalLoggingPeriodType());
record.set(table.intervalLoggingPeriod, vo.getIntervalLoggingPeriod());
record.set(table.intervalLoggingType, vo.getIntervalLoggingType());
record.set(table.tolerance, vo.getTolerance());
record.set(table.purgeOverride, boolToChar(vo.isPurgeOverride()));
record.set(table.purgeType, vo.getPurgeType());
record.set(table.purgePeriod, vo.getPurgePeriod());
record.set(table.defaultCacheSize, vo.getDefaultCacheSize());
record.set(table.discardExtremeValues, boolToChar(vo.isDiscardExtremeValues()));
record.set(table.engineeringUnits, vo.getEngineeringUnits());
record.set(table.rollup, vo.getRollup());
record.set(table.dataTypeId, vo.getPointLocator().getDataType().getId());
record.set(table.settable, boolToChar(vo.getPointLocator().isSettable()));
record.set(table.jsonData, convertData(vo.getData()));
record.set(table.seriesId, vo.getSeriesId());
record.set(table.readPermissionId, vo.getReadPermission().getId());
record.set(table.editPermissionId, vo.getEditPermission().getId());
record.set(table.setPermissionId, vo.getSetPermission().getId());
return record;
}
Aggregations