Java IDL parser supports isnew/ischanged/isdeleted
[working/Evergreen.git] / Open-ILS / src / java / org / open_ils / idl / IDLParser.java
index 4da147f..059aeb7 100644 (file)
@@ -159,6 +159,15 @@ public class IDLParser {
 
         if("class".equals(localpart)) {
 
+            String[] vfields = {"isnew", "ischanged", "isdeleted"};
+            for (String fieldName : vfields) {
+                IDLField field = new IDLField();
+                field.setName(fieldName);
+                field.setArrayPos(fieldIndex++);
+                field.setIsVirtual(true);
+                current.addField(field);
+            }
+
             if(keepIDLObjects)
                 IDLObjects.put(current.getIDLClass(), current);