490491492493494495496497498499
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.startNode( "fact-handle" ); writer.setValue( cmd.getFactHandle().toExternalForm() ); writer.endNode(); }
404405406407408409410
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
310311312313314315316
306307308309310311312313314315
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "factHandle", cmd.getFactHandle().toExternalForm() ); }
85868788899091
cmd.setReturnObject( returnObject ); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
405406407408409410411
409410411412413414415
public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); } public void delete(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
238239240241242243244245246247
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
79808182838485