219220221222223224225226227228
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
52535455565758
cmd.setOutIdentifier(outIdentifier); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
405406407408409410411
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
404405406407408409410
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(); }
242243244245246247248249250251
81828384858687
cmd.setReturnObject( returnObject ); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
82838485868788