Package org.dspace.checker
Class ChecksumResultServiceImpl
- java.lang.Object
-
- org.dspace.checker.ChecksumResultServiceImpl
-
- All Implemented Interfaces:
ChecksumResultService
public class ChecksumResultServiceImpl extends Object implements ChecksumResultService
Service implementation for the ChecksumResult object. This class is responsible for all business logic calls for the ChecksumResult object and is autowired by spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChecksumResultServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ChecksumResult>findAll(Context context)Get a list of all the possible result codes.ChecksumResultfindByCode(Context context, ChecksumResultCode code)Get the result description for the given result code
-
-
-
Method Detail
-
findByCode
public ChecksumResult findByCode(Context context, ChecksumResultCode code) throws SQLException
Get the result description for the given result code- Specified by:
findByCodein interfaceChecksumResultService- Parameters:
context- Contextcode- to get the description for.- Returns:
- the found description.
- Throws:
SQLException- if database error
-
findAll
public List<ChecksumResult> findAll(Context context) throws SQLException
Get a list of all the possible result codes.- Specified by:
findAllin interfaceChecksumResultService- Parameters:
context- Context- Returns:
- a list of all the result codes
- Throws:
SQLException- if database error
-
-