380381382383384385386
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new DeleteCommand( handle ) ); }
384385386387388389390
public void retract(FactHandle handle) { commandService.execute( new DeleteCommand( handle ) ); } public void delete(FactHandle handle) { commandService.execute( new DeleteCommand( handle ) ); }
236237238239240241242243244245
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { DeleteCommand cmd = (DeleteCommand) object; writer.addAttribute( "fact-handle", cmd.getFactHandle().toExternalForm() ); }
489490491492493494495496497498
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { DeleteCommand cmd = (DeleteCommand) object; writer.startNode( "fact-handle" ); writer.setValue( cmd.getFactHandle().toExternalForm() ); writer.endNode(); }
392393394395396397398
396397398399400401402
83848586878889
cmd.setReturnObject( returnObject ); return cmd; } public Command newDelete(FactHandle factHandle) { return new DeleteCommand( factHandle ); }