org.kuali.kfs.module.ld.dataaccess.impl
Class LaborOriginEntryDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.gl.dataaccess.impl.OriginEntryDaoOjb
                  extended by org.kuali.kfs.module.ld.dataaccess.impl.LaborOriginEntryDaoOjb
All Implemented Interfaces:
OriginEntryDao, LaborOriginEntryDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class LaborOriginEntryDaoOjb
extends OriginEntryDaoOjb
implements LaborOriginEntryDao

OJB Implementation of LaborOriginEntryDao.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Fields inherited from interface org.kuali.kfs.gl.dataaccess.OriginEntryDao
SORT_ACCOUNT, SORT_DOCUMENT, SORT_LISTING_REPORT, SORT_REPORT
 
Constructor Summary
LaborOriginEntryDaoOjb()
           
 
Method Summary
protected  List<String> buildConsolidationAttributeList()
          build the returning attribute list for the calling query
protected  List<String> buildGroupByList()
          build the grouping attribute list for the calling query
 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...though, notably, this method does nothing to differentiate labor groups from otherwise normal groups.
 Collection getMatchingEntriesByCollection(Map searchCriteria)
          Collection of entries that match criteria
 Iterator getSummaryByGroupId(Collection groupIdList)
          get the summarized information of the entries that belong to the entry groups with the given group ids
 void saveOriginEntry(LaborOriginEntry entry)
          Deprecated. 
 Collection<LaborOriginEntry> testingLaborGetAllEntries()
          This method should only be used in unit tests.
 
Methods inherited from class org.kuali.kfs.gl.dataaccess.impl.OriginEntryDaoOjb
deleteEntry, deleteGroups, deleteMatchingEntries, getBadBalanceEntries, getDocumentsByGroup, getEntriesByGroup, getEntryClass, getExactMatchingEntry, getGroupCount, getGroupCounts, getGroupTotal, getMatchingEntries, getPosterOutputSummaryByGroupId, saveOriginEntry, setEntryClass, testingGetAllEntries
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kfs.gl.dataaccess.OriginEntryDao
deleteEntry, deleteGroups, deleteMatchingEntries, getBadBalanceEntries, getDocumentsByGroup, getEntriesByGroup, getExactMatchingEntry, getGroupCount, getGroupCounts, getGroupTotal, getMatchingEntries, getPosterOutputSummaryByGroupId, saveOriginEntry, testingGetAllEntries
 

Constructor Detail

LaborOriginEntryDaoOjb

public LaborOriginEntryDaoOjb()
Method Detail

getEntriesByGroups

public Iterator<LaborOriginEntry> getEntriesByGroups(Collection<OriginEntryGroup> groups)
Description copied from interface: LaborOriginEntryDao
Get origin entries that belong to the given groups

Specified by:
getEntriesByGroups in interface LaborOriginEntryDao
Parameters:
groups - the given origin entry groups
Returns:
origin entries that belong to the given groups
See Also:
LaborOriginEntryDao.getEntriesByGroups(java.util.Collection)

getCountOfEntriesInGroups

public int getCountOfEntriesInGroups(Collection<OriginEntryGroup> groups)
Description copied from interface: LaborOriginEntryDao
get the count of the origin entry collection in the given groups

Specified by:
getCountOfEntriesInGroups in interface LaborOriginEntryDao
Parameters:
groups - the given groups
Returns:
the count of the origin entry collection in the given group
See Also:
LaborOriginEntryDao.getCountOfEntriesInGroups(java.util.Collection)

getConsolidatedEntriesByGroup

public Iterator<Object[]> getConsolidatedEntriesByGroup(OriginEntryGroup group)
Description copied from interface: LaborOriginEntryDao
Get the origin entries that belong to the given group in either the consolidation manner

Specified by:
getConsolidatedEntriesByGroup in interface LaborOriginEntryDao
Parameters:
group - the given group
Returns:
the origin entries that belong to the given group in either the consolidation manner
See Also:
LaborOriginEntryDao.getConsolidatedEntriesByGroup(org.kuali.kfs.gl.businessobject.OriginEntryGroup)

buildConsolidationAttributeList

protected List<String> buildConsolidationAttributeList()
build the returning attribute list for the calling query

Returns:
the returning attribute list

buildGroupByList

protected List<String> buildGroupByList()
build the grouping attribute list for the calling query

Returns:
the grouping attribute list

testingLaborGetAllEntries

public Collection<LaborOriginEntry> testingLaborGetAllEntries()
Description copied from interface: LaborOriginEntryDao
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.

Specified by:
testingLaborGetAllEntries in interface LaborOriginEntryDao
Returns:
a set of labor origin entries
See Also:
LaborOriginEntryDao.testingLaborGetAllEntries()

getLaborEntriesByGroup

public Iterator<LaborOriginEntry> getLaborEntriesByGroup(OriginEntryGroup oeg,
                                                         int sort)
Description copied from interface: LaborOriginEntryDao
Return an iterator to all the entries in a group

Specified by:
getLaborEntriesByGroup in interface LaborOriginEntryDao
Parameters:
oeg - the given origin entry group
Returns:
Iterator of entries in the specified group
See Also:
LaborOriginEntryDao.getLaborEntriesByGroup(org.kuali.kfs.gl.businessobject.OriginEntryGroup, int)

getMatchingEntriesByCollection

public Collection getMatchingEntriesByCollection(Map searchCriteria)
Description copied from class: OriginEntryDaoOjb
Collection of entries that match criteria

Specified by:
getMatchingEntriesByCollection in interface OriginEntryDao
Specified by:
getMatchingEntriesByCollection in interface LaborOriginEntryDao
Overrides:
getMatchingEntriesByCollection in class OriginEntryDaoOjb
Parameters:
searchCriteria - Map of field, value pairs
Returns:
collection of entries
See Also:
getMatchingEntriesByCollection(java.util.Map)

saveOriginEntry

@Deprecated
public void saveOriginEntry(LaborOriginEntry entry)
Deprecated. 

Parameters:
entry - the entry to save.

getSummaryByGroupId

public Iterator getSummaryByGroupId(Collection groupIdList)
Description copied from class: OriginEntryDaoOjb
get the summarized information of the entries that belong to the entry groups with the given group ids

Specified by:
getSummaryByGroupId in interface OriginEntryDao
Overrides:
getSummaryByGroupId in class OriginEntryDaoOjb
Parameters:
groupIdList - the ids of origin entry groups
Returns:
a set of summarized information of the entries within the specified groups
See Also:
getSummaryByGroupId(java.util.Collection)

getEntryCollectionByGroup

public Collection<LaborOriginEntry> getEntryCollectionByGroup(OriginEntryGroup group)
Description copied from interface: LaborOriginEntryDao
Return a collection to all the entries in the given group

Specified by:
getEntryCollectionByGroup in interface LaborOriginEntryDao
Parameters:
group - the given origin entry group
Returns:
Collection of entries in the specified group
See Also:
LaborOriginEntryDao.getEntryCollectionByGroup(org.kuali.kfs.gl.businessobject.OriginEntryGroup)

getLaborBackupGroups

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

Specified by:
getLaborBackupGroups in interface LaborOriginEntryDao
Parameters:
groupDate - this parameter isn't really used
Returns:
a Collection of Labor backup groups
See Also:
LaborOriginEntryDao.getLaborBackupGroups(java.sql.Date)

getLaborGroupsToBackup

public Collection getLaborGroupsToBackup(Date groupDate)
Get all the groups to be copied into the backup group...though, notably, this method does nothing to differentiate labor groups from otherwise normal groups. One must assume that processing takes place somewhere else

Specified by:
getLaborGroupsToBackup in interface LaborOriginEntryDao
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
See Also:
org.kuali.kfs.module.ld.dataaccess.LaborOriginEntryDao#getLaborScrubberGroups(java.sql.Date)


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