Java Doc for BalanceDaoOjb.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » gl » dao » ojb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.gl.dao.ojb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.core.dao.ojb.PlatformAwareDaoBaseOjb
   org.kuali.module.gl.dao.ojb.BalanceDaoOjb

All known Subclasses:   org.kuali.module.gl.dao.ojb.BalanceTestDaoOjb,
BalanceDaoOjb
public class BalanceDaoOjb extends PlatformAwareDaoBaseOjb implements BalanceDao(Code)
An OJB implementation of BalanceDao




Method Summary
public  intcountBalancesForFiscalYear(Integer year)
    
public  Iterator<Balance>findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)
     Find all matching account balances.
public  Iterator<Balance>findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sfCode)
     Find all matching account balances.
public  Iterator<Balance>findBalance(Map fieldValues, boolean isConsolidated)
    
public  Iterator<Balance>findBalances(Account account, Integer fiscalYear, Collection includedObjectCodes, Collection excludedObjectCodes, Collection objectTypeCodes, Collection balanceTypeCodes)
    
public  Iterator<Balance>findBalancesForFiscalYear(Integer year)
    
public  Iterator<Balance>findCashBalance(Map fieldValues, boolean isConsolidated)
    
public  Iterator<Balance>findCumulativeBalancesToForwardForFiscalYear(Integer year)
    
public  Iterator<Balance>findGeneralBalancesToForwardForFiscalYear(Integer year)
    
public  Iterator<Balance>findNominalActivityBalancesForFiscalYear(Integer year)
    
public  Iterator<Balance>findOrganizationReversionBalancesForFiscalYear(Integer year, boolean endOfYear)
    
public  BalancegetBalanceByPrimaryId(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)
     Whoa! This method is seemingly not called in the code base right now, and you know what? You shouldn't call it First of all, we're not even sending in all the primary keys for Balance, and second of all, we're returning a SufficientFundsBalance, which we cast to a Balance, which is *always* going to throw a ClassCastException.
public  BalancegetBalanceByTransaction(Transaction t)
    
public  IteratorgetConsolidatedBalanceRecordCount(Map fieldValues)
     Given a Map of keys to use as a query, if we performed that query as a consolidated query...
public  IteratorgetConsolidatedCashBalanceRecordCount(Map fieldValues)
    
public  BalancegetCurrentBudgetForObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String objectCode)
     Since SubAccountNumber, SubObjectCode, and ObjectType are all part of the primary key of Balance, you're guaranteed to get one of those records when you call this method.
public  IntegergetDetailedCashBalanceRecordCount(Map fieldValues)
    
public  IteratorgetGlSummary(int universityFiscalYear, List<String> balanceTypeCodes)
    
public  voidpurgeYearByChart(String chartOfAccountsCode, int year)
    
public  voidsave(Balance b)
    
public  voidsetBalanceTypService(BalanceTypService balanceTypService)
    
public  voidsetOptionsService(OptionsService optionsService)
    
public  voidsetParameterService(ParameterService parameterService)
    



Method Detail
countBalancesForFiscalYear
public int countBalancesForFiscalYear(Integer year)(Code)
Returns the count of balances for a given fiscal year; this method is used for year end job reporting
Parameters:
  year - the university fiscal year to count balances for an int with the count of balances for that fiscal year
See Also:   org.kuali.module.gl.dao.BalanceDao.countBalancesForFiscalYear(java.lang.Integer)



findAccountBalances
public Iterator<Balance> findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)(Code)
Find all matching account balances.
Parameters:
  universityFiscalYear - the university fiscal year of balances to return
Parameters:
  chartOfAccountsCode - the chart of accounts code of balances to return
Parameters:
  accountNumber - the account number of balances to return balances sorted by object code



findAccountBalances
public Iterator<Balance> findAccountBalances(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String sfCode)(Code)
Find all matching account balances. The Sufficient funds code is used to determine the sort of the results.
Parameters:
  universityFiscalYear - the university fiscal year of balances to return
Parameters:
  chartOfAccountsCode - the chart of accounts code of balances to return
Parameters:
  accountNumber - the account number of balances to return
Parameters:
  sfCode - the sufficient funds code, used to sort on an Iterator of balances



findBalance
public Iterator<Balance> findBalance(Map fieldValues, boolean isConsolidated)(Code)
Given a map of values, build a query out of those and find all the balances that qualify
Parameters:
  fieldValues - a Map of fieldValues to use as keys in the query
Parameters:
  isConsolidated - should the results be consolidated? an Iterator of Balances
See Also:   org.kuali.module.gl.dao.BalanceDao.findBalance(java.util.Mapboolean)



findBalances
public Iterator<Balance> findBalances(Account account, Integer fiscalYear, Collection includedObjectCodes, Collection excludedObjectCodes, Collection objectTypeCodes, Collection balanceTypeCodes)(Code)
Build a query based on all the parameters, and return an Iterator of all Balances from the database that qualify
Parameters:
  account - the account of balances to find
Parameters:
  fiscalYear - the fiscal year of balances to find
Parameters:
  includedObjectCodes - a Collection of object codes found balances should have one of
Parameters:
  excludedObjectCodes - a Collection of object codes found balances should not have one of
Parameters:
  objectTypeCodes - a Collection of object type codes found balances should have one of
Parameters:
  balanceTypeCodes - a Collection of balance type codes found balances should have one of an Iterator of Balances
See Also:   org.kuali.module.gl.dao.BalanceDao.findBalances(org.kuali.module.chart.bo.Accountjava.lang.Integerjava.util.Collectionjava.util.Collectionjava.util.Collectionjava.util.Collection)



findBalancesForFiscalYear
public Iterator<Balance> findBalancesForFiscalYear(Integer year)(Code)
Queries the database for all the balances for a given fiscal year
Parameters:
  year - the university fiscal year of balances to return an iterator over all balances for a given fiscal year
See Also:   org.kuali.module.gl.dao.BalanceDao.findBalancesForFiscalYear(java.lang.Integer)



findCashBalance
public Iterator<Balance> findCashBalance(Map fieldValues, boolean isConsolidated)(Code)
Using the given fieldValues as keys, return all cash balance records
Parameters:
  fieldValues - the input fields and values
Parameters:
  isConsolidated - consolidation option is applied or not the records of cash balance entries
See Also:   org.kuali.module.gl.dao.BalanceDao.findCashBalance(java.util.Mapboolean)



findCumulativeBalancesToForwardForFiscalYear
public Iterator<Balance> findCumulativeBalancesToForwardForFiscalYear(Integer year)(Code)
Returns all of the balances that should be procesed by the BalanceForward year end job under the active rule
Parameters:
  the - university fiscal year to find balances for an Iterator of Balances to process
See Also:   org.kuali.module.gl.dao.BalanceDao.findGeneralBalancesToForwardForFiscalYear(java.lang.Integer)



findGeneralBalancesToForwardForFiscalYear
public Iterator<Balance> findGeneralBalancesToForwardForFiscalYear(Integer year)(Code)
Returns all of the balances that should be procesed by the BalanceForward year end job under the general rule
Parameters:
  the - university fiscal year to find balances for an Iterator of Balances to process
See Also:   org.kuali.module.gl.dao.BalanceDao.findCumulativeBalancesToForwardForFiscalYear(java.lang.Integer)



findNominalActivityBalancesForFiscalYear
public Iterator<Balance> findNominalActivityBalancesForFiscalYear(Integer year)(Code)
Finds all of the balances for the fiscal year that should be processed by nominal activity closing
Parameters:
  year - the university fiscal year of balances to find an Iterator of Balances to process
See Also:   org.kuali.module.gl.dao.BalanceDao.findNominalActivityBalancesForFiscalYear(java.lang.Integer)



findOrganizationReversionBalancesForFiscalYear
public Iterator<Balance> findOrganizationReversionBalancesForFiscalYear(Integer year, boolean endOfYear)(Code)
Returns a list of balances to return for the Organization Reversion year end job to process
Parameters:
  the - university fiscal year to find balances for
Parameters:
  endOfYear - if true, use currrent year accounts, otherwise use prior year accounts an Iterator of Balances to process
See Also:   org.kuali.module.gl.dao.BalanceDao.findOrganizationReversionBalancesForFiscalYear(java.lang.Integerboolean)



getBalanceByPrimaryId
public Balance getBalanceByPrimaryId(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber)(Code)
Whoa! This method is seemingly not called in the code base right now, and you know what? You shouldn't call it First of all, we're not even sending in all the primary keys for Balance, and second of all, we're returning a SufficientFundsBalance, which we cast to a Balance, which is *always* going to throw a ClassCastException. Don't call this method. Just...just step away.
See Also:   org.kuali.module.gl.dao.BalanceDao.getBalanceByPrimaryId(java.lang.Integerjava.lang.Stringjava.lang.String)



getBalanceByTransaction
public Balance getBalanceByTransaction(Transaction t)(Code)
Using values from the transaction as keys, lookup the balance the transaction would affect were it posted a Balance that the given transaction would affect
See Also:   org.kuali.module.gl.dao.BalanceDao.getBalanceByTransaction(org.kuali.module.gl.bo.Transaction)



getConsolidatedBalanceRecordCount
public Iterator getConsolidatedBalanceRecordCount(Map fieldValues)(Code)
Given a Map of keys to use as a query, if we performed that query as a consolidated query... how many records would we get back?
Parameters:
  fieldValues - a Map of values to use as keys to build the query an Iterator of counts...
See Also:   org.kuali.module.gl.dao.BalanceDao.getConsolidatedBalanceRecordCount(java.util.Map)



getConsolidatedCashBalanceRecordCount
public Iterator getConsolidatedCashBalanceRecordCount(Map fieldValues)(Code)
Given a map of keys, return all of the report data about qualifying cash balances
Parameters:
  fieldValues - the input fields and values the size collection of cash balance entry groups
See Also:   org.kuali.module.gl.dao.BalanceDao.getCashBalanceRecordSize(java.util.Mapboolean)



getCurrentBudgetForObjectCode
public Balance getCurrentBudgetForObjectCode(Integer universityFiscalYear, String chartOfAccountsCode, String accountNumber, String objectCode)(Code)
Since SubAccountNumber, SubObjectCode, and ObjectType are all part of the primary key of Balance, you're guaranteed to get one of those records when you call this method. Let's hope the right one.
Parameters:
  universityFiscalYear - the fiscal year of the CB balance to return
Parameters:
  chartOfAccountsCode - the chart of the accounts code of the CB balanes to return
Parameters:
  accountNumber - the account number of the CB balance to return
Parameters:
  objectCode - the object code of the CB balance to return the CB Balance record
See Also:   org.kuali.module.gl.dao.BalanceDao.getCurrentBudgetForObjectCode(java.lang.Integerjava.lang.Stringjava.lang.Stringjava.lang.String)



getDetailedCashBalanceRecordCount
public Integer getDetailedCashBalanceRecordCount(Map fieldValues)(Code)
Get the number of detailed cash balance records that would be returned, were we to do a query based on the given fieldValues
Parameters:
  fieldValues - the input fields and values
Parameters:
  isConsolidated - consolidation option is applied or not the size collection of cash balance entry groups
See Also:   org.kuali.module.gl.dao.BalanceDao.getCashBalanceRecordCount(java.util.Mapboolean)



getGlSummary
public Iterator getGlSummary(int universityFiscalYear, List<String> balanceTypeCodes)(Code)
Does a ReportQuery to summarize GL balance data
Parameters:
  universityFiscalYear - the fiscal year of balances to search for
Parameters:
  balanceTypeCodes - a list of balance type codes of balances to search for iterator of reported on java.lang.Object arrays with the report data
See Also:   org.kuali.module.gl.dao.BalanceDao.getGlSummary(intjava.util.List)



purgeYearByChart
public void purgeYearByChart(String chartOfAccountsCode, int year)(Code)
Purge the sufficient funds balance table by year/chart
Parameters:
  chart - the chart of balances to purge
Parameters:
  year - the university fiscal year of balances to purge



save
public void save(Balance b)(Code)
Saves a balance
Parameters:
  b - a balance to save
See Also:   org.kuali.module.gl.dao.BalanceDao.save(org.kuali.module.gl.bo.Balance)



setBalanceTypService
public void setBalanceTypService(BalanceTypService balanceTypService)(Code)



setOptionsService
public void setOptionsService(OptionsService optionsService)(Code)



setParameterService
public void setParameterService(ParameterService parameterService)(Code)



Methods inherited from org.kuali.core.dao.ojb.PlatformAwareDaoBaseOjb
public KualiDBPlatform getDbPlatform()(Code)(Java Doc)
public void setDbPlatform(KualiDBPlatform dbPlatform)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.