org.kuali.kfs.module.ld.dataaccess
Interface LaborLedgerEntryDao

All Known Implementing Classes:
LaborLedgerEntryDaoOjb

public interface LaborLedgerEntryDao

This is the data access object for ledger entry.

See Also:
LedgerEntry

Method Summary
 void deleteLedgerEntriesPriorToYear(Integer fiscalYear, String chartOfAccountsCode)
          delete the ledger entry records that were posted prior to the given fiscal year
 Iterator<LedgerEntry> find(Map<String,String> fieldValues)
          Find the ledger entries that satisfy the all entries in the given field-value pair
 List<String> findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
          find the employees who were paid based on a set of specified pay type within the given report periods.
 Collection<LedgerEntry> getLedgerEntriesForEmployeeWithPayType(String emplid, Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
          get the ledger entries for the given employee based on a set of specified pay type within the given report periods.
 Integer getMaxSquenceNumber(LedgerEntry ledgerEntry)
          The sequence number is one of the primary keys of ledger entry.
 boolean isEmployeeWithPayType(String emplid, Map<Integer,Set<String>> payPeriods, List<String> balanceTypes, Map<String,Set<String>> earnCodePayGroupMap)
          determine if the given employee is associated with a set of specified pay type within the given report periods.
 void save(LedgerEntry ledgerEntry)
          save the given ledger entry into the underlying data store
 

Method Detail

getMaxSquenceNumber

Integer getMaxSquenceNumber(LedgerEntry ledgerEntry)
The sequence number is one of the primary keys of ledger entry. The entries can be grouped by other keys. This method is used to get the maximum sequence number in the group of entries.

Parameters:
ledgerEntry - the given ledger entry
Returns:
the maximum sequence number in a group of entries. If the group doesn't exist, return 0.

find

Iterator<LedgerEntry> find(Map<String,String> fieldValues)
Find the ledger entries that satisfy the all entries in the given field-value pair

Parameters:
fieldValues - the given field-value pair
Returns:
the ledger entries that satisfy the all entries in the given field-value pair

save

void save(LedgerEntry ledgerEntry)
save the given ledger entry into the underlying data store

Parameters:
ledgerEntry - the given ledger entry

findEmployeesWithPayType

List<String> findEmployeesWithPayType(Map<Integer,Set<String>> payPeriods,
                                      List<String> balanceTypes,
                                      Map<String,Set<String>> earnCodePayGroupMap)
find the employees who were paid based on a set of specified pay type within the given report periods. Here, a pay type can be determined by earn code and pay group.

Parameters:
payPeriods - the given pay periods
balanceTypes - the specified balance type codes
earnCodePayGroupMap - the combination of earn codes and pay groups, where pay group is the key and earn code set is the value
Returns:
the employees who were paid based on a set of specified pay type within the given report periods

getLedgerEntriesForEmployeeWithPayType

Collection<LedgerEntry> getLedgerEntriesForEmployeeWithPayType(String emplid,
                                                               Map<Integer,Set<String>> payPeriods,
                                                               List<String> balanceTypes,
                                                               Map<String,Set<String>> earnCodePayGroupMap)
get the ledger entries for the given employee based on a set of specified pay type within the given report periods. Here, a pay type can be determined by earn code and pay group.

Parameters:
emplid - the given employee id
payPeriods - the given pay periods
balanceTypes - the specified balance type codes
earnCodePayGroupMap - the combination of earn codes and pay groups, where pay group is the key and earn code set is the value
Returns:
true if the given employee was paid based on a set of specified pay type within the given report periods; otherwise, false

isEmployeeWithPayType

boolean isEmployeeWithPayType(String emplid,
                              Map<Integer,Set<String>> payPeriods,
                              List<String> balanceTypes,
                              Map<String,Set<String>> earnCodePayGroupMap)
determine if the given employee is associated with a set of specified pay type within the given report periods. Here, a pay type can be determined by earn code and pay group.

Parameters:
emplid - the given employee id
payPeriods - the given pay periods
balanceTypes - the specified balance type codes
earnCodePayGroupMap - the combination of earn codes and pay groups, where pay group is the key and earn code set is the value
Returns:
true if the given employee was paid based on a set of specified pay type within the given report periods; otherwise, false

deleteLedgerEntriesPriorToYear

void deleteLedgerEntriesPriorToYear(Integer fiscalYear,
                                    String chartOfAccountsCode)
delete the ledger entry records that were posted prior to the given fiscal year

Parameters:
fiscalYear - the given fiscal year
chartOfAccountsCode - the given chart of account code


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