List<TypedColumn> deleteList = new ArrayList<TypedColumn>();
List<CommonTree> childrenList = tree.getChildren();
if (childrenList == null)
return;
else {
TypeInfo columnTypeInfo = processSide(new ExpressionNode(childrenList.get(0)), wiring, null, facade);
byte[] value = null;
if (childrenList.size() > 1)
{
// value is only relevant if it is *ToOne or *ToMany
String withQuotes = childrenList.get(1).getText().trim();
String withoutQuotes = withQuotes.substring(1, withQuotes.length()-1);
value = StandardConverters.convertToBytes(withoutQuotes);
}
TypedColumn columnforDelete = new TypedColumn(columnTypeInfo.getColumnInfo(), columnTypeInfo.getColumnInfo().getColumnNameAsBytes(), value, null);
deleteList.add(columnforDelete);
}
wiring.setUpdateList(deleteList);
}