org.kuali.kfs.gl.dataaccess
Interface OriginEntryGroupDao

All Known Implementing Classes:
OriginEntryGroupDaoOjb

public interface OriginEntryGroupDao


Method Summary
 void deleteGroups(Collection<OriginEntryGroup> groups)
          Delete all the groups in the list.
 Collection<OriginEntryGroup> getAllScrubbableBackupGroups()
          Gets a collection of all backup groups that are scrubbable (i.e.
 OriginEntryGroup getExactMatchingEntryGroup(Integer id)
          The the group for the ID passed.
 Collection getGroupsToBackup(Date groupDate)
          Get all the groups to be copied into the backup group
 OriginEntryGroup getGroupWithMaxIdFromSource(String sourceCode)
          Given an origin entry group source type (defined in OriginEntrySource)
 Collection getMatchingGroups(Map searchCriteria)
          Fetch all the groups that match the criteria
 Collection<OriginEntryGroup> getOlderGroups(Date day)
          Get all the groups that are older than a date
 Collection getPosterGroups(String groupSourceCode)
          Get all the groups for the poster (that is to say, Groups with "Process" being true)
 Collection<OriginEntryGroup> getRecentGroups(Date day)
          Fetches groups created on or after the given date
 void save(OriginEntryGroup group)
          Save a group
 

Method Detail

getGroupWithMaxIdFromSource

OriginEntryGroup getGroupWithMaxIdFromSource(String sourceCode)
Given an origin entry group source type (defined in OriginEntrySource)

Parameters:
sourceCode - the source code of the groups to find
Returns:
a OriginEntryGroup with the given source code and max ORIGIN_ENTRY_GRP_ID
See Also:
OriginEntrySource

getOlderGroups

Collection<OriginEntryGroup> getOlderGroups(Date day)
Get all the groups that are older than a date

Parameters:
day - the date groups returned should be older than
Returns:
a Collection of origin entry groups older than that date

deleteGroups

void deleteGroups(Collection<OriginEntryGroup> groups)
Delete all the groups in the list. Note...it doesn't delete the entries within them, you need OriginEntryDao.deleteGroups for that


getMatchingGroups

Collection getMatchingGroups(Map searchCriteria)
Fetch all the groups that match the criteria

Parameters:
searchCriteria - a Map of search criteria to form the query
Returns:
a Collection of Origin Entry Groups that match that criteria

getPosterGroups

Collection getPosterGroups(String groupSourceCode)
Get all the groups for the poster (that is to say, Groups with "Process" being true)

Parameters:
groupSourceCode - the source code of origin entry groups to return
Returns:
a Collection of origin entry groups that should be processed by the poster

getAllScrubbableBackupGroups

Collection<OriginEntryGroup> getAllScrubbableBackupGroups()
Gets a collection of all backup groups that are scrubbable (i.e. valid, process, scrub indicators all set to true)

Returns:
a Collection of scrubbable origin entry groups

getGroupsToBackup

Collection getGroupsToBackup(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 origin entry groups to backup

save

void save(OriginEntryGroup group)
Save a group

Parameters:
group - a group to save

getExactMatchingEntryGroup

OriginEntryGroup getExactMatchingEntryGroup(Integer id)
The the group for the ID passed. The EXACT one, not one that is close, it must be EXACTLY EXACT.

Parameters:
id - the group id of the group to return
Returns:
a highly exact origin entry group, or, if not found, null

getRecentGroups

Collection<OriginEntryGroup> getRecentGroups(Date day)
Fetches groups created on or after the given date

Parameters:
day - the date origin entry groups to return must have been created on or after
Returns:
a Collection of origin entry groups created on or after that day


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