Java Doc for OriginEntryServiceImpl.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » gl » service » impl » 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.service.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.module.gl.service.impl.OriginEntryServiceImpl

OriginEntryServiceImpl
public class OriginEntryServiceImpl implements OriginEntryService(Code)
The base implementation of OriginEntryService



Constructor Summary
public  OriginEntryServiceImpl()
    

Method Summary
public static  LedgerEntrybuildLedgerEntry(Object[] entrySummary)
    
public  OriginEntryGroupcopyEntries(Date date, String sourceCode, boolean valid, boolean process, boolean scrub, Collection<OriginEntryFull> entries)
     Creates a new origin entry group with the given parameters and saves copies all of the entries in the given Collection of entries into that new group.
public  OriginEntryGroupcopyEntries(Date date, String sourceCode, boolean valid, boolean process, boolean scrub, Iterator<OriginEntryFull> entries)
    
public  voidcreateEntry(Transaction transaction, OriginEntryGroup originEntryGroup)
    
public  voiddelete(OriginEntryFull oe)
    
public  voidexportFlatFile(String filename, Integer groupId)
    
public  voidflatFile(Integer groupId, BufferedOutputStream bw)
    
public  voidflatFile(Iterator<OriginEntryFull> entries, BufferedOutputStream bw)
     This method writes origin entries into a file format.
public  Iterator<OriginEntryFull>getBadBalanceEntries(Collection groups)
     Return all entries for the groups where the balance type is empty.
public  Collection<OriginEntryFull>getDocumentsByGroup(OriginEntryGroup oeg)
     This returns all of distinct primary key sets of documents that created origin entries that exist in the given origin entry group.
public  Iterator<OriginEntryFull>getEntriesByDocument(OriginEntryGroup originEntryGroup, String documentNumber, String documentTypeCode, String originCode)
     Return all the entries for a specific document in a specific group.
public  Iterator<OriginEntryFull>getEntriesByGroup(OriginEntryGroup originEntryGroup)
     Returns an iterator of all the origin entries in a given group.
public  Iterator<OriginEntryFull>getEntriesByGroupAccountOrder(OriginEntryGroup oeg)
     Return all entries for a group sorted by account number.
public  List<OriginEntryFull>getEntriesByGroupId(Integer groupId)
     Given the id of an origin entry group, returns a list of all the origin entries in that group (actually uses getMatchingEntriesByCollection() to accomplish this).
public  Iterator<OriginEntryFull>getEntriesByGroupListingReportOrder(OriginEntryGroup oeg)
     Return all entries for a group sorted across the columns in report from left to right.
public  Iterator<OriginEntryFull>getEntriesByGroupReportOrder(OriginEntryGroup oeg)
     Return all entries for a group sorted for display on the pending entry report.
public  OriginEntryFullgetExactMatchingEntry(Integer entryId)
     Returns the origin entry with the given id.
public  IntegergetGroupCount(Integer groupId)
     Returns the number of origin entries in a group.
public  Collection<OriginEntryFull>getMatchingEntriesByCollection(Map searchCriteria)
    
public  Map<String, PosterOutputSummaryEntry>getPosterOutputSummaryByGroupId(Collection groupIdList)
    
public  OriginEntryStatisticsgetStatistics(Integer groupId)
     Retrieves teh credit total, debit total, and row count for a given origin entry group.
public  LedgerEntryHoldergetSummaryByGroupId(Collection groupIdList)
     Given a collection of group ids, summarize the entries in each group.
public  voidloadFlatFile(String filename, String groupSourceCode, boolean isValid, boolean isProcessed, boolean isScrub)
    
public  voidsave(OriginEntryFull entry)
    
public  voidsetDateTimeService(DateTimeService dateTimeService)
    
public  voidsetOriginEntryDao(OriginEntryDao originEntryDao)
    
public  voidsetOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)
    


Constructor Detail
OriginEntryServiceImpl
public OriginEntryServiceImpl()(Code)
Constructs a new instance of OriginEntryServiceImpl




Method Detail
buildLedgerEntry
public static LedgerEntry buildLedgerEntry(Object[] entrySummary)(Code)
Creates or updates a ledger entry with the array of information from the given entry summary object
Parameters:
  entrySummary - a collection of java.lang.Objects, which is what OJB report queries return a LedgerEntry holding the given report summarization data



copyEntries
public OriginEntryGroup copyEntries(Date date, String sourceCode, boolean valid, boolean process, boolean scrub, Collection<OriginEntryFull> entries)(Code)
Creates a new origin entry group with the given parameters and saves copies all of the entries in the given Collection of entries into that new group.
Parameters:
  date - the date that the copied entries should list as their post date
Parameters:
  sourceCode - the source code of the origin entry group to create
Parameters:
  valid - whether the new group should be considered valid
Parameters:
  process - whether the new group should be ready to be processed
Parameters:
  scrub - whether the new group should be processed by the scrubber
Parameters:
  entries - a Collection of entries to copy a new origin entry full of copied entries
See Also:   org.kuali.module.gl.service.OriginEntryService.copyEntries(java.util.Datejava.lang.Stringbooleanbooleanbooleanjava.util.Collection)



copyEntries
public OriginEntryGroup copyEntries(Date date, String sourceCode, boolean valid, boolean process, boolean scrub, Iterator<OriginEntryFull> entries)(Code)
Creates a new origin entry group with the given parameters and creates copies of all the origin entries in the iterator, saving the copies in the new group
Parameters:
  date - the date that the copied entries should list as their post date
Parameters:
  sourceCode - the source code of the origin entry group to create
Parameters:
  valid - whether the new group should be considered valid
Parameters:
  process - whether the new group should be ready to be processed
Parameters:
  scrub - whether the new group should be processed by the scrubber
Parameters:
  entries - a Iterator of entries to copy
See Also:   org.kuali.module.gl.service.OriginEntryService.copyEntries(java.sql.Datejava.lang.Stringbooleanbooleanbooleanjava.util.Iterator)



createEntry
public void createEntry(Transaction transaction, OriginEntryGroup originEntryGroup)(Code)
Given a transaction, creates an origin entry out of the transaction and saves it in the given origin entry group
Parameters:
  transaction - the transaction to turn into an origin entry
Parameters:
  originEntryGroup - the group to save the new origin entry in
See Also:   org.kuali.module.gl.service.OriginEntryService.createEntry(org.kuali.module.gl.bo.Transactionorg.kuali.module.gl.bo.OriginEntryGroup)



delete
public void delete(OriginEntryFull oe)(Code)
Deletes an origin entry (full) from the database
Parameters:
  oe - the origin entry (full) to delete
See Also:   org.kuali.module.gl.service.OriginEntryService.delete(org.kuali.module.gl.bo.OriginEntryFull)



exportFlatFile
public void exportFlatFile(String filename, Integer groupId)(Code)
Export all origin entries in a group to a flat text file
Parameters:
  filename - Filename to save the text
Parameters:
  groupId - Group to save
See Also:   org.kuali.module.gl.service.OriginEntryService.exportFlatFile(java.lang.Stringjava.lang.Integer)



flatFile
public void flatFile(Integer groupId, BufferedOutputStream bw)(Code)
Write all of the origin entries in a group to an output stream
Parameters:
  groupId - the id of the origin entry group to get entries from
Parameters:
  bw - the output stream to dump the entries as text to
See Also:   org.kuali.module.gl.service.OriginEntryService.flatFile(java.lang.Integerjava.io.BufferedOutputStream)



flatFile
public void flatFile(Iterator<OriginEntryFull> entries, BufferedOutputStream bw)(Code)
This method writes origin entries into a file format. This particular implementation will use the OriginEntryFull.getLine method to generate the text for this file.
Parameters:
  entries - An iterator of OriginEntries
Parameters:
  bw - an opened, ready-for-output bufferedOutputStream.
See Also:   org.kuali.module.gl.service.OriginEntryService.flatFile(java.util.Iteratorjava.io.BufferedOutputStream)



getBadBalanceEntries
public Iterator<OriginEntryFull> getBadBalanceEntries(Collection groups)(Code)
Return all entries for the groups where the balance type is empty. Defers to the DAO.
Parameters:
  groups - a Collection of groups to look through all the entries of an Iterator of entries without balance types
See Also:   org.kuali.module.gl.service.OriginEntryService.getBadBalanceEntries(java.util.Collection)



getDocumentsByGroup
public Collection<OriginEntryFull> getDocumentsByGroup(OriginEntryGroup oeg)(Code)
This returns all of distinct primary key sets of documents that created origin entries that exist in the given origin entry group. It returns this information in OriginEntryFull objects that just don't have any other information besides the document keys (doc number, doc type code, and origination code) filled in.
Parameters:
  oeg - the group with the origin entries to get the documents of Collection to qualifying documents
See Also:   org.kuali.module.gl.service.OriginEntryService.getDocumentsByGroup(org.kuali.module.gl.bo.OriginEntryGroup)



getEntriesByDocument
public Iterator<OriginEntryFull> getEntriesByDocument(OriginEntryGroup originEntryGroup, String documentNumber, String documentTypeCode, String originCode)(Code)
Return all the entries for a specific document in a specific group. Defers to the DAO.
Parameters:
  oeg - an origin entry group to find entries in
Parameters:
  documentNumber - the document number of entries to select
Parameters:
  documentTypeCode - the document type of entries to select
Parameters:
  originCode - the origination code of entries to select iterator to all the qualifying entries
See Also:   org.kuali.module.gl.service.OriginEntryService.getEntriesByDocument(org.kuali.module.gl.bo.OriginEntryGroupjava.lang.Stringjava.lang.Stringjava.lang.String)



getEntriesByGroup
public Iterator<OriginEntryFull> getEntriesByGroup(OriginEntryGroup originEntryGroup)(Code)
Returns an iterator of all the origin entries in a given group. Defers to the DAO.
Parameters:
  originEntryGroup - an origin entry group an iterator of OriginEntryFull objects in that group
See Also:   org.kuali.module.gl.service.OriginEntryService.getEntriesByGroup(org.kuali.module.gl.bo.OriginEntryGroup)



getEntriesByGroupAccountOrder
public Iterator<OriginEntryFull> getEntriesByGroupAccountOrder(OriginEntryGroup oeg)(Code)
Return all entries for a group sorted by account number. Defers to the DAO.
Parameters:
  oeg - an origin entry group to get entries from an Iterator of origin entries sorted by account number
See Also:   org.kuali.module.gl.service.OriginEntryService.getEntriesByGroupAccountOrder(org.kuali.module.gl.bo.OriginEntryGroup)



getEntriesByGroupId
public List<OriginEntryFull> getEntriesByGroupId(Integer groupId)(Code)
Given the id of an origin entry group, returns a list of all the origin entries in that group (actually uses getMatchingEntriesByCollection() to accomplish this).
Parameters:
  groupId - the id of the group to get all entries from a List of Origin Entries
See Also:   org.kuali.module.gl.service.OriginEntryService.getMatchingEntriesByList(java.util.Map)



getEntriesByGroupListingReportOrder
public Iterator<OriginEntryFull> getEntriesByGroupListingReportOrder(OriginEntryGroup oeg)(Code)
Return all entries for a group sorted across the columns in report from left to right. Defers to the DAO.
Parameters:
  oeg - an origin entry group to get entries from an Iterator of origin entries sorted in the proper order
See Also:   org.kuali.module.gl.service.OriginEntryService.getEntriesByGroupListingReportOrder(org.kuali.module.gl.bo.OriginEntryGroup)



getEntriesByGroupReportOrder
public Iterator<OriginEntryFull> getEntriesByGroupReportOrder(OriginEntryGroup oeg)(Code)
Return all entries for a group sorted for display on the pending entry report. Defers to the DAO.
Parameters:
  oeg - a origin entry group to get entries from an Iterator of origin entries sorted in the order needed for an origin entry report
See Also:   org.kuali.module.gl.service.OriginEntryService.getEntriesByGroupReportOrder(org.kuali.module.gl.bo.OriginEntryGroup)



getExactMatchingEntry
public OriginEntryFull getExactMatchingEntry(Integer entryId)(Code)
Returns the origin entry with the given id. Defers to the DAO.
Parameters:
  entryId - the unique id of an origin entry the origin entry if found, or null otherwise
See Also:   org.kuali.module.gl.service.OriginEntryService.getExactMatchingEntry(java.lang.Integer)



getGroupCount
public Integer getGroupCount(Integer groupId)(Code)
Returns the number of origin entries in a group. Defers to the DAO. Get count of transactions in a group
Parameters:
  groupId - the group to get the count of entries from a count of entries
See Also:   org.kuali.module.gl.service.OriginEntryService.getGroupCount(java.lang.Integer)



getMatchingEntriesByCollection
public Collection<OriginEntryFull> getMatchingEntriesByCollection(Map searchCriteria)(Code)
Finds all origin entries matching certain criteria
Parameters:
  searchCriteria - the criteria to be used in forming a query a Collection of qualifying origin entries
See Also:   org.kuali.module.gl.service.OriginEntryService.getMatchingEntriesByCollection(java.util.Map)



getPosterOutputSummaryByGroupId
public Map<String, PosterOutputSummaryEntry> getPosterOutputSummaryByGroupId(Collection groupIdList)(Code)
get the summarized information of poster input entries that belong to the entry groups with the given group id list
Parameters:
  groupIdList - the origin entry groups a map of summarized information of poster input entries within the specified groups
See Also:   org.kuali.module.gl.service.OriginEntryService.getPosterOutputSummaryByGroupId(java.util.Collection)



getStatistics
public OriginEntryStatistics getStatistics(Integer groupId)(Code)
Retrieves teh credit total, debit total, and row count for a given origin entry group.
Parameters:
  groupId - the id of the group to find statistics for an OriginEntryStatistics object with the statistics for the group
See Also:   org.kuali.module.gl.service.OriginEntryService.getStatistics(java.lang.Integer)



getSummaryByGroupId
public LedgerEntryHolder getSummaryByGroupId(Collection groupIdList)(Code)
Given a collection of group ids, summarize the entries in each group.
Parameters:
  groupIdList - a Collection of the ids of origin entry groups to summarize a LedgerEntryHolder with all of the summarized information
See Also:   org.kuali.module.gl.service.OriginEntryService.getSummaryByGroupId(Collection)



loadFlatFile
public void loadFlatFile(String filename, String groupSourceCode, boolean isValid, boolean isProcessed, boolean isScrub)(Code)
Creates a new origin entry group, reads all of the origin entries in the file and saves all of them in the group
Parameters:
  filename - Filename with the text
Parameters:
  groupSourceCode - Source of the new group
Parameters:
  valid - Valid flag for new group
Parameters:
  processed - Process flag for new group
Parameters:
  scrub - Scrub flag for new group
See Also:   org.kuali.module.gl.service.OriginEntryService.loadFlatFile(java.lang.Stringjava.lang.Stringbooleanbooleanboolean)



save
public void save(OriginEntryFull entry)(Code)
Saves the given origin entry full record
Parameters:
  entry - the origin entry to save
See Also:   org.kuali.module.gl.service.OriginEntryService.save(org.kuali.module.gl.bo.OriginEntryFull)



setDateTimeService
public void setDateTimeService(DateTimeService dateTimeService)(Code)



setOriginEntryDao
public void setOriginEntryDao(OriginEntryDao originEntryDao)(Code)
Sets the originEntryDao attribute
Parameters:
  originEntryDao - the implementation of OriginEntryDao to set



setOriginEntryGroupService
public void setOriginEntryGroupService(OriginEntryGroupService originEntryGroupService)(Code)
Sets the originEntryGroupService attribute
Parameters:
  originEntryGroupService - the implementation of OriginEntryGroupService to set



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.