public class OriginEntryDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements OriginEntryDao
SORT_ACCOUNT, SORT_DOCUMENT, SORT_LISTING_REPORT, SORT_REPORT
Constructor and Description |
---|
OriginEntryDaoOjb()
Constructs a OriginEntryDaoOjb instance
|
Modifier and Type | Method and Description |
---|---|
void |
deleteEntry(OriginEntryInformation oe)
Delete an entry from the database
|
void |
deleteGroups(Collection<OriginEntryGroup> groups)
Delete all the groups in the list.
|
void |
deleteMatchingEntries(Map searchCriteria)
Delete entries matching searchCriteria search criteria.
|
Iterator<OriginEntryFull> |
getBadBalanceEntries(Collection groups)
Get bad balance entries
|
Iterator |
getDocumentsByGroup(OriginEntryGroup oeg)
Return an iterator of keys of all documents referenced by origin entries in a given group
|
<T> Iterator<T> |
getEntriesByGroup(OriginEntryGroup oeg,
int sort)
This method is special because of the order by.
|
Class |
getEntryClass()
Gets the entryClass attribute.
|
OriginEntryFull |
getExactMatchingEntry(Integer entryId)
Fetches an entry for the given entryId, or returns a newly created on
|
Integer |
getGroupCount(Integer groupId)
Counts the number of entries in a group
|
Iterator |
getGroupCounts()
Counts of rows of all the origin entry groups
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getGroupTotal(Integer groupId,
boolean isCredit)
Get the total amount of transactions in a group
|
Iterator<OriginEntryFull> |
getMatchingEntries(Map searchCriteria)
Iterator of entries that match criteria
|
Collection<OriginEntryFull> |
getMatchingEntriesByCollection(Map searchCriteria)
Collection of entries that match criteria
|
Iterator |
getPosterOutputSummaryByGroupId(Collection groups)
get the summarized information of poster input entries that belong to the entry groups with the given group id list
|
Iterator |
getSummaryByGroupId(Collection groupIdList)
get the summarized information of the entries that belong to the entry groups with the given group ids
|
void |
setEntryClass(Class entryClass)
Sets the class of the origin entries this class deals with.
|
Collection<OriginEntryFull> |
testingGetAllEntries()
This method should only be used in unit tests.
|
getDbPlatform, setDbPlatform
public OriginEntryDaoOjb()
public void setEntryClass(Class entryClass)
entryClass
- the class of OriginEntries this instance will use for OJB operationspublic Class getEntryClass()
public org.kuali.rice.core.api.util.type.KualiDecimal getGroupTotal(Integer groupId, boolean isCredit)
getGroupTotal
in interface OriginEntryDao
the
- id of the origin entry group to totalisCredit
- whether the total should be of credits or notOriginEntryDao.getGroupTotal(java.lang.Integer, boolean)
public Integer getGroupCount(Integer groupId)
getGroupCount
in interface OriginEntryDao
the
- id of an origin entry groupOriginEntryDao.getGroupCount(java.lang.Integer)
public Iterator getGroupCounts()
getGroupCounts
in interface OriginEntryDao
OriginEntryDao.getGroupCounts()
public void deleteEntry(OriginEntryInformation oe)
deleteEntry
in interface OriginEntryDao
oe
- the entry to deleteOriginEntryDao.deleteEntry(org.kuali.ole.gl.businessobject.OriginEntryInformation)
public Iterator getDocumentsByGroup(OriginEntryGroup oeg)
getDocumentsByGroup
in interface OriginEntryDao
oeg
- Group the origin entry group to find entries in, by origin entryOriginEntryDao.getDocumentsByGroup(org.kuali.ole.gl.businessobject.OriginEntryGroup)
public Iterator<OriginEntryFull> getMatchingEntries(Map searchCriteria)
getMatchingEntries
in interface OriginEntryDao
searchCriteria
- Map of field, value pairsOriginEntryDao.getMatchingEntries(java.util.Map)
public Iterator<OriginEntryFull> getBadBalanceEntries(Collection groups)
getBadBalanceEntries
in interface OriginEntryDao
groups
- a Collection of groups to remove bad entries inOriginEntryDao.getBadBalanceEntries(java.util.Collection)
public <T> Iterator<T> getEntriesByGroup(OriginEntryGroup oeg, int sort)
getEntriesByGroup
in interface OriginEntryDao
OriginEntryGroup
- the originEntryGroup that holds the origin entries to findsort
- the sort order to sort entries by, defined in OriginEntryDaopublic Collection<OriginEntryFull> testingGetAllEntries()
testingGetAllEntries
in interface OriginEntryDao
public void deleteMatchingEntries(Map searchCriteria)
deleteMatchingEntries
in interface OriginEntryDao
searchCriteria
- a map of criteria to use as keys for building a querypublic void deleteGroups(Collection<OriginEntryGroup> groups)
deleteGroups
in interface OriginEntryDao
groups
- a Collection of Origin Entry Groups to delete entries inOriginEntryDao.deleteGroups(java.util.Collection)
public Collection<OriginEntryFull> getMatchingEntriesByCollection(Map searchCriteria)
getMatchingEntriesByCollection
in interface OriginEntryDao
searchCriteria
- Map of field, value pairsOriginEntryDao.getMatchingEntriesByCollection(java.util.Map)
public Iterator getSummaryByGroupId(Collection groupIdList)
getSummaryByGroupId
in interface OriginEntryDao
groupIdList
- the ids of origin entry groupsorg.kuali.ole.gl.dataaccess.OriginEntryDao#getSummaryByGroupId(java.util.List)
public OriginEntryFull getExactMatchingEntry(Integer entryId)
getExactMatchingEntry
in interface OriginEntryDao
entryId
- an entry id to find an entry forOriginEntryDao.getExactMatchingEntry(java.lang.Integer)
public Iterator getPosterOutputSummaryByGroupId(Collection groups)
getPosterOutputSummaryByGroupId
in interface OriginEntryDao
groups
- the origin entry groupsOriginEntryDao.getPosterOutputSummaryByGroupId(java.util.Collection)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.