|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.kfs.gl.dataaccess.impl.OriginEntryDaoOjb
public class OriginEntryDaoOjb
An OJB implementation of the OriginEntryDao
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 | |
---|---|
OriginEntryDaoOjb()
Constructs a OriginEntryDaoOjb instance |
Method Summary | ||
---|---|---|
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 |
|
|
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.kns.util.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 |
saveOriginEntry(OriginEntryInformation entry)
Saves an origin entry to the database |
|
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. |
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 |
Constructor Detail |
---|
public OriginEntryDaoOjb()
Method Detail |
---|
public void setEntryClass(Class entryClass)
entryClass
- the class of OriginEntries this instance will use for OJB operationspublic Class getEntryClass()
public org.kuali.rice.kns.util.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 not
OriginEntryDao.getGroupTotal(java.lang.Integer, boolean)
public Integer getGroupCount(Integer groupId)
getGroupCount
in interface OriginEntryDao
the
- id of an origin entry group
OriginEntryDao.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.kfs.gl.businessobject.OriginEntryInformation)
public Iterator getDocumentsByGroup(OriginEntryGroup oeg)
getDocumentsByGroup
in interface OriginEntryDao
oeg
- Group the origin entry group to find entries in, by origin entry
OriginEntryDao.getDocumentsByGroup(org.kuali.kfs.gl.businessobject.OriginEntryGroup)
public Iterator<OriginEntryFull> getMatchingEntries(Map searchCriteria)
getMatchingEntries
in interface OriginEntryDao
searchCriteria
- Map of field, value pairs
OriginEntryDao.getMatchingEntries(java.util.Map)
public Iterator<OriginEntryFull> getBadBalanceEntries(Collection groups)
getBadBalanceEntries
in interface OriginEntryDao
groups
- a Collection of groups to remove bad entries in
OriginEntryDao.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 OriginEntryDao
public Collection<OriginEntryFull> testingGetAllEntries()
testingGetAllEntries
in interface OriginEntryDao
public void saveOriginEntry(OriginEntryInformation entry)
saveOriginEntry
in interface OriginEntryDao
entry
- the entry to save.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 pairs
OriginEntryDao.getMatchingEntriesByCollection(java.util.Map)
public Iterator getSummaryByGroupId(Collection groupIdList)
getSummaryByGroupId
in interface OriginEntryDao
groupIdList
- the ids of origin entry groups
org.kuali.kfs.gl.dataaccess.OriginEntryDao#getSummaryByGroupId(java.util.List)
public OriginEntryFull getExactMatchingEntry(Integer entryId)
getExactMatchingEntry
in interface OriginEntryDao
entryId
- an entry id to find an entry for
OriginEntryDao.getExactMatchingEntry(java.lang.Integer)
public Iterator getPosterOutputSummaryByGroupId(Collection groups)
getPosterOutputSummaryByGroupId
in interface OriginEntryDao
groups
- the origin entry groups
OriginEntryDao.getPosterOutputSummaryByGroupId(java.util.Collection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |