org.kuali.hr.time.earncode.service
Interface EarnCodeService

All Known Implementing Classes:
EarnCodeServiceImpl

public interface EarnCodeService


Method Summary
 EarnCode getEarnCode(String earnCode, Date asOfDate)
          Fetch an EarnCode as of a particular date
 EarnCode getEarnCodeById(String earnCodeId)
          Fetch earn code by id
 int getEarnCodeCount(String earnCode)
          get count of earn code with give earnCode
 List<EarnCode> getEarnCodes(Assignment a, Date asOfDate)
          Fetch a list of earn codes for a particular assignment
 List<EarnCode> getEarnCodes(Assignment a, Date asOfDate, String earnTypeCode)
          Fetch a list of earn codes for a particular assignment and earnTypeCode
 List<EarnCode> getEarnCodesForTime(Assignment a, Date asOfDate)
           
 String getEarnCodeType(String earnCode, Date asOfDate)
          Fetch the earn code type for a particular date
 int getNewerEarnCodeCount(String earnCode, Date effdt)
          get count of newer version of earn code with give earnCode and date
 List<EarnCode> getOvertimeEarnCodes(Date asOfDate)
          Fetch list of system defined overtime earn codes
 List<String> getOvertimeEarnCodesStrs(Date asOfDate)
          Fetch list of system defined overtime earn codes as strings
 

Method Detail

getEarnCodes

@Cacheable(value="KPME/EarnCode",
           key="\'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1")
List<EarnCode> getEarnCodes(Assignment a,
                                      Date asOfDate)
Fetch a list of earn codes for a particular assignment

Parameters:
a -
asOfDate -
Returns:

getEarnCodes

@Cacheable(value="KPME/EarnCode",
           key="\'a=\' + #p0.getTkAssignmentId() + \'|\' + \'asOfDate=\' + #p1 + \'|\' + \'earnTypeCode=\' + #p2")
List<EarnCode> getEarnCodes(Assignment a,
                                      Date asOfDate,
                                      String earnTypeCode)
Fetch a list of earn codes for a particular assignment and earnTypeCode

Parameters:
a -
asOfDate -
Returns:

getEarnCode

@Cacheable(value="KPME/EarnCode",
           key="\'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
EarnCode getEarnCode(String earnCode,
                               Date asOfDate)
Fetch an EarnCode as of a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeType

@Cacheable(value="KPME/EarnCode",
           key="\'{getEarnCodeType}\' + \'earnCode=\' + #p0 + \'|\' + \'asOfDate=\' + #p1")
String getEarnCodeType(String earnCode,
                                 Date asOfDate)
Fetch the earn code type for a particular date

Parameters:
earnCode -
asOfDate -
Returns:

getEarnCodeById

@Cacheable(value="KPME/EarnCode",
           key="\'earnCodeId=\' + #p0")
EarnCode getEarnCodeById(String earnCodeId)
Fetch earn code by id

Parameters:
earnCodeId -
Returns:

getOvertimeEarnCodes

@Cacheable(value="KPME/EarnCode",
           key="\'{getOvertimeEarnCodes}\' + \'asOfDate=\' + #p0")
List<EarnCode> getOvertimeEarnCodes(Date asOfDate)
Fetch list of system defined overtime earn codes

Parameters:
asOfDate -
Returns:

getOvertimeEarnCodesStrs

@Cacheable(value="KPME/EarnCode",
           key="\'{getOvertimeEarnCodesStrs}\' + \'asOfDate=\' + #p0")
List<String> getOvertimeEarnCodesStrs(Date asOfDate)
Fetch list of system defined overtime earn codes as strings

Parameters:
asOfDate -
Returns:

getEarnCodesForTime

List<EarnCode> getEarnCodesForTime(Assignment a,
                                   Date asOfDate)

getEarnCodeCount

int getEarnCodeCount(String earnCode)
get count of earn code with give earnCode

Parameters:
earnCode -
Returns:
int

getNewerEarnCodeCount

int getNewerEarnCodeCount(String earnCode,
                          Date effdt)
get count of newer version of earn code with give earnCode and date

Parameters:
earnCode -
effdt -
Returns:
int


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.