@Override public Struct toConnectStruct() { Struct struct = new Struct(CONNECT_SCHEMA); struct.put("title", this.getTitle()); struct.put("note", this.getNote()); if (null!= this.getQuantity()) { struct.put("quantity", this.getQuantity().longValue()); } else { struct.put("quantity", null); } struct.put("price", this.getPrice()); return struct; }
@Override public Struct toConnectStruct() { Struct struct = new Struct(CONNECT_SCHEMA); struct.put("orderperson", this.getOrderperson()); if (null!= this.getShipto()) { struct.put("shipto", this.getShipto().toConnectStruct()); } else { struct.put("shipto", null); } if (null!= this.getItem()) { List<Struct> structs = new ArrayList(); for (Shiporder.Item o: this.getItem()) { structs.add(o.toConnectStruct()); } struct.put("item", structs); } struct.put("orderid", this.getOrderid()); return struct; }
/** * Create an instance of {@link Shiporder.Item } * */ public Shiporder.Item createShiporderItem() { return new Shiporder.Item(); }