65666768697071
public QueryCommand createQueryCommand() { return new QueryCommand(); } public RetractCommand createRetractCommand() { return new RetractCommand(); }
84858687888990
cmd.setReturnObject( returnObject ); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }
6869707172737475
addCommand(new UpdateCommand(handle, object)); return this; } public StatefulKnowledgeSessionSimFluent retract(FactHandle handle) { addCommand(new RetractCommand(handle)); return this; }
798081828384858687
addCommand(lastAddedCommand); return this; } public FluentBatchExecution retract(FactHandle handle) { lastAddedCommand = new RetractCommand(handle); addCommand(lastAddedCommand); return this; }
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(); }
238239240241242243244245246247
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
79808182838485
354355356357358359360
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
404405406407408409410