|
|
|
@ -261,13 +261,28 @@ public class TableDataPaneListPane extends JListControlPane implements TableData
|
|
|
|
|
try { |
|
|
|
|
switch (entryEventKind) { |
|
|
|
|
case REMOVED: |
|
|
|
|
deleteDatas.add(TableDataBeanHelper.getServerDataSetBean(s, tabledata)); |
|
|
|
|
ServerDataSetBean remove = TableDataBeanHelper.getServerDataSetBean(s, tabledata); |
|
|
|
|
if (StringUtils.isNotEmpty(remove.getDatasetData())) { |
|
|
|
|
deleteDatas.add(remove); |
|
|
|
|
} else { |
|
|
|
|
FineLoggerFactory.getLogger().error("Unable to find the corresponding processor : {}", tabledata.getClass()); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case ADDED: |
|
|
|
|
addDatas.add(TableDataBeanHelper.getServerDataSetBean(s, tabledata)); |
|
|
|
|
ServerDataSetBean add = TableDataBeanHelper.getServerDataSetBean(s, tabledata); |
|
|
|
|
if (StringUtils.isNotEmpty(add.getDatasetData())) { |
|
|
|
|
addDatas.add(add); |
|
|
|
|
} else { |
|
|
|
|
FineLoggerFactory.getLogger().error("Unable to find the corresponding processor : {}", tabledata.getClass()); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case UPDATED: |
|
|
|
|
updateDatas.add(TableDataBeanHelper.getServerDataSetBean(s, tabledata)); |
|
|
|
|
ServerDataSetBean update = TableDataBeanHelper.getServerDataSetBean(s, tabledata); |
|
|
|
|
if (StringUtils.isNotEmpty(update.getDatasetData())) { |
|
|
|
|
updateDatas.add(update); |
|
|
|
|
} else { |
|
|
|
|
FineLoggerFactory.getLogger().error("Unable to find the corresponding processor : {}", tabledata.getClass()); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|