357358359360361362363
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
79808182838485
cmd.setReturnObject( returnObject ); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
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(); }
52535455565758
public QueryCommand createQueryCommand() { return new QueryCommand(); } public RetractCommand createRetractCommand() { return new RetractCommand(); }
242243244245246247248249250251
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
82838485868788
84858687888990
341342343344345346347
470471472473474475476477478479
36373839404142