7778798081828384
addCommand(new UpdateCommand(handle, object)); return this; } public StatefulKnowledgeSessionSimFluent retract(FactHandle handle) { addCommand(new RetractCommand(handle)); return this; }
747576777879808182
addCommand(lastAddedCommand); return this; } public FluentBatchExecution retract(FactHandle handle) { lastAddedCommand = new RetractCommand(handle); addCommand(lastAddedCommand); return this; }
399400401402403404405
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
304305306307308309310
308309310311312313314315316317
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "factHandle", cmd.getFactHandle().toExternalForm() ); }
50515253545556
cmd.setOutIdentifier(outIdentifier); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
242243244245246247248249250251
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
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(); }
383384385386387388389