+ /** Used by ORM systems. */\r
+ void setResultParts(SortedMap<TreeSPath, PartSubList> resultParts) {\r
+ this.resultParts = resultParts;\r
+ }\r
+\r
+ public void close() {\r
+ if (isClosed) {\r
+ throw new SlcException("Test Result #" + getTestResultId()\r
+ + " alredy closed.");\r
+ }\r
+\r
+ synchronized (listeners) {\r
+ for (TestResultListener listener : listeners) {\r
+ listener.close();\r
+ }\r
+ listeners.clear();\r
+ }\r
+ isClosed = true;\r
+ log.info("Test Result #" + getTestResultId() + " closed.");\r
+ }\r
+\r
+ Long getTid() {\r
+ return tid;\r
+ }\r
+\r
+ void setTid(Long tid) {\r
+ this.tid = tid;\r
+ }\r
+\r
+ /** Gets the related registry (can be null).*/\r
+ public StructureRegistry getRegistry() {\r
+ return registry;\r
+ }\r
+\r
+ /** Sets the related registry.*/\r
+ public void setRegistry(StructureRegistry registry) {\r
+ this.registry = registry;\r
+ }\r
+\r