Skip to content
Snippets Groups Projects
Commit e1543c3b authored by gwen-soleil's avatar gwen-soleil
Browse files

fix to avoid create a connection to the attribute while exporting tdb files...

fix to avoid create a connection to the attribute while exporting tdb files (SOLEIL Jira TANGOARCH-663)
parent 026e1871
No related branches found
No related tags found
No related merge requests found
...@@ -93,13 +93,12 @@ public abstract class TdbDataExport implements ITdbDataExport { ...@@ -93,13 +93,12 @@ public abstract class TdbDataExport implements ITdbDataExport {
} }
final String tableName = dbUtils.getTableName(attributeName); final String tableName = dbUtils.getTableName(attributeName);
final int[] tfw = AdtAptAttributesFactory.getInstance(connector).getAttTFWData(attributeName);
final AttributeLightMode attributeLightMode = new AttributeLightMode(attributeName); final AttributeLightMode attributeLightMode = new AttributeLightMode(attributeName);
final AttributeInfo attributeInfo = ArchivingManagerApiRef.getAttributeInfo(attributeName,
true);
attributeLightMode.setDevice_in_charge(archiverName); attributeLightMode.setDevice_in_charge(archiverName);
attributeLightMode.setDataType(attributeInfo.data_type); attributeLightMode.setDataType(tfw[0]);
attributeLightMode.setDataFormat(attributeInfo.data_format.value()); attributeLightMode.setDataFormat(tfw[1]);
attributeLightMode.setWritable(attributeInfo.writable.value()); attributeLightMode.setWritable(tfw[2]);
attributeLightMode.setMode(mode); attributeLightMode.setMode(mode);
final DeviceProxy archiverProxy = new DeviceProxy(archiverName); final DeviceProxy archiverProxy = new DeviceProxy(archiverName);
final String[] attributeLightModeArray = attributeLightMode.toArray(); final String[] attributeLightModeArray = attributeLightMode.toArray();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment