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

All Superinterfaces:
OriginEntryDao
All Known Implementing Classes:
LaborOriginEntryDaoOjb

public interface LaborOriginEntryDao
extends OriginEntryDao

This is the data access object for labor origin entry.

See Also:
LaborOriginEntry

Field Summary
 
Fields inherited from interface org.kuali.kfs.gl.dataaccess.OriginEntryDao
SORT_ACCOUNT, SORT_DOCUMENT, SORT_LISTING_REPORT, SORT_REPORT
 
Method Summary
 Iterator<Object[]> getConsolidatedEntriesByGroup(OriginEntryGroup group)
          Get the origin entries that belong to the given group in either the consolidation manner
 int getCountOfEntriesInGroups(Collection<OriginEntryGroup> groups)
          get the count of the origin entry collection in the given groups
 Iterator<LaborOriginEntry> getEntriesByGroups(Collection<OriginEntryGroup> groups)
          Get origin entries that belong to the given groups
 Collection<LaborOriginEntry> getEntryCollectionByGroup(OriginEntryGroup group)
          Return a collection to all the entries in the given group
 Collection getLaborBackupGroups(Date groupDate)
          Get all the Labor backup groups to scrub (ie, origin entry groups with source OriginEntrySource.LABOR_BACKUP)
 Iterator<LaborOriginEntry> getLaborEntriesByGroup(OriginEntryGroup oeg, int sort)
          Return an iterator to all the entries in a group
 Collection getLaborGroupsToBackup(Date groupDate)
          Get all the groups to be copied into the backup group
 Collection getMatchingEntriesByCollection(Map searchCriteria)
          Collection of entries that match criteria
 Collection<LaborOriginEntry> testingLaborGetAllEntries()
          This method should only be used in unit tests.
 
Methods inherited from interface org.kuali.kfs.gl.dataaccess.OriginEntryDao
deleteEntry, deleteGroups, deleteMatchingEntries, getBadBalanceEntries, getDocumentsByGroup, getEntriesByGroup, getExactMatchingEntry, getGroupCount, getGroupCounts, getGroupTotal, getMatchingEntries, getPosterOutputSummaryByGroupId, getSummaryByGroupId, saveOriginEntry, testingGetAllEntries
 

Method Detail

getEntriesByGroups

Iterator<LaborOriginEntry> getEntriesByGroups(Collection<OriginEntryGroup> groups)
Get origin entries that belong to the given groups

Parameters:
groups - the given origin entry groups
Returns:
origin entries that belong to the given groups

getConsolidatedEntriesByGroup

Iterator<Object[]> getConsolidatedEntriesByGroup(OriginEntryGroup group)
Get the origin entries that belong to the given group in either the consolidation manner

Parameters:
group - the given group
Returns:
the origin entries that belong to the given group in either the consolidation manner

getCountOfEntriesInGroups

int getCountOfEntriesInGroups(Collection<OriginEntryGroup> groups)
get the count of the origin entry collection in the given groups

Parameters:
groups - the given groups
Returns:
the count of the origin entry collection in the given group

testingLaborGetAllEntries

Collection<LaborOriginEntry> testingLaborGetAllEntries()
This method should only be used in unit tests. It loads all the ld_lbr_origin_entry_t rows in memory into a collection. This won't scale for production.

Returns:
a set of labor origin entries

getLaborEntriesByGroup

Iterator<LaborOriginEntry> getLaborEntriesByGroup(OriginEntryGroup oeg,
                                                  int sort)
Return an iterator to all the entries in a group

Parameters:
oeg - the given origin entry group
Returns:
Iterator of entries in the specified group

getMatchingEntriesByCollection

Collection getMatchingEntriesByCollection(Map searchCriteria)
Collection of entries that match criteria

Specified by:
getMatchingEntriesByCollection in interface OriginEntryDao
Parameters:
searchCriteria - Map of field, value pairs
Returns:
collection of entries

getEntryCollectionByGroup

Collection<LaborOriginEntry> getEntryCollectionByGroup(OriginEntryGroup group)
Return a collection to all the entries in the given group

Parameters:
group - the given origin entry group
Returns:
Collection of entries in the specified group

getLaborBackupGroups

Collection getLaborBackupGroups(Date groupDate)
Get all the Labor backup groups to scrub (ie, origin entry groups with source OriginEntrySource.LABOR_BACKUP)

Parameters:
groupDate - the creation date of labor backup groups to find
Returns:
a Collection of Labor backup groups

getLaborGroupsToBackup

Collection getLaborGroupsToBackup(Date groupDate)
Get all the groups to be copied into the backup group

Parameters:
groupDate - the date returned origin entry groups must have been created on or before
Returns:
a Collection of Labor Origin Entry Groups to backup


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