Class EntityResultJob
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.engine.storage.EntityResultJob
-
- All Implemented Interfaces:
java.io.Serializable
,IResultJob
@Entity(name="ResultJob") public class EntityResultJob extends java.lang.Object implements IResultJob, java.io.Serializable
IResultJob object for base storage implementation- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResultFile
addFile(ISourceFile file)
Adds a file to the result setjava.util.List<IResultFile>
getFileResults()
Returns the list ofIResultFile
stored for this joblong
getPersistentId()
The unique id for the job resultvoid
remove()
Remove this instance, and any children, from storagevoid
store()
Write this instance, and its children, to storage
-
-
-
Method Detail
-
addFile
public IResultFile addFile(ISourceFile file)
Description copied from interface:IResultJob
Adds a file to the result set- Specified by:
addFile
in interfaceIResultJob
- Parameters:
file
- File to add to results- Returns:
- results instance for the file passed
-
getFileResults
public java.util.List<IResultFile> getFileResults()
Description copied from interface:IResultJob
Returns the list ofIResultFile
stored for this job- Specified by:
getFileResults
in interfaceIResultJob
- Returns:
- list of results
-
getPersistentId
public long getPersistentId()
Description copied from interface:IResultJob
The unique id for the job result- Specified by:
getPersistentId
in interfaceIResultJob
- Returns:
- the unique id
-
remove
public void remove()
Description copied from interface:IResultJob
Remove this instance, and any children, from storage- Specified by:
remove
in interfaceIResultJob
-
store
public void store()
Description copied from interface:IResultJob
Write this instance, and its children, to storage- Specified by:
store
in interfaceIResultJob
-
-