Source Code Cross Referenced for BudgetAbstractCostShare.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » kra » budget » bo » 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.kra.budget.bo 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2006-2007 The Kuali Foundation.
003:         * 
004:         * Licensed under the Educational Community License, Version 1.0 (the "License");
005:         * you may not use this file except in compliance with the License.
006:         * You may obtain a copy of the License at
007:         * 
008:         * http://www.opensource.org/licenses/ecl1.php
009:         * 
010:         * Unless required by applicable law or agreed to in writing, software
011:         * distributed under the License is distributed on an "AS IS" BASIS,
012:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013:         * See the License for the specific language governing permissions and
014:         * limitations under the License.
015:         */
016:
017:        package org.kuali.module.kra.budget.bo;
018:
019:        import java.util.ArrayList;
020:        import java.util.LinkedHashMap;
021:        import java.util.List;
022:
023:        import org.kuali.core.bo.PersistableBusinessObjectBase;
024:        import org.kuali.kfs.KFSPropertyConstants;
025:
026:        /**
027:         * 
028:         */
029:        public abstract class BudgetAbstractCostShare extends
030:                PersistableBusinessObjectBase {
031:
032:            protected String documentNumber;
033:            protected Integer budgetCostShareSequenceNumber;
034:            protected String budgetCostShareDescription;
035:            protected List budgetPeriodCostShare;
036:
037:            /**
038:             * Default no-arg constructor.
039:             */
040:            public BudgetAbstractCostShare() {
041:                super ();
042:                budgetPeriodCostShare = new ArrayList();
043:            }
044:
045:            /**
046:             * Populates the key fields for BudgetAbstractPeriodCostShare object. This could be done on object creation, unfortunatly at
047:             * that time we don't have budgetCostShareSequenceNumber set yet (object is created on page load, while sequence number is set
048:             * on pressing "add" on the page). Thus we opted for this solution.
049:             * 
050:             * @param documentNumber
051:             * @param periods
052:             * @param budgetAbstractCostShare
053:             */
054:            public void populateKeyFields(String documentNumber,
055:                    List<BudgetPeriod> periods) {
056:                this .setDocumentNumber(documentNumber);
057:
058:                for (int i = 0; i < periods.size(); i++) {
059:                    BudgetPeriod period = periods.get(i);
060:                    BudgetAbstractPeriodCostShare budgetAbstractPeriodCostShare = this 
061:                            .getBudgetPeriodCostShareItem(i);
062:
063:                    budgetAbstractPeriodCostShare
064:                            .setDocumentNumber(documentNumber);
065:                    budgetAbstractPeriodCostShare
066:                            .setBudgetCostShareSequenceNumber(this 
067:                                    .getBudgetCostShareSequenceNumber());
068:                    budgetAbstractPeriodCostShare
069:                            .setBudgetPeriodSequenceNumber(period
070:                                    .getBudgetPeriodSequenceNumber());
071:                }
072:            }
073:
074:            public abstract List getBudgetPeriodCostShare();
075:
076:            public abstract void setBudgetPeriodCostShare(
077:                    List budgetPeriodCostShare);
078:
079:            public abstract BudgetAbstractPeriodCostShare getBudgetPeriodCostShareItem(
080:                    int index);
081:
082:            /**
083:             * Gets the documentNumber attribute.
084:             * 
085:             * @return Returns the documentNumber
086:             */
087:            public String getDocumentNumber() {
088:                return documentNumber;
089:            }
090:
091:            /**
092:             * Sets the documentNumber attribute.
093:             * 
094:             * @param documentNumber The documentNumber to set.
095:             */
096:            public void setDocumentNumber(String documentNumber) {
097:                this .documentNumber = documentNumber;
098:            }
099:
100:            /**
101:             * Gets the budgetThirdPartyCostShareSequenceNumber attribute.
102:             * 
103:             * @return Returns the budgetThirdPartyCostShareSequenceNumber
104:             */
105:            public Integer getBudgetCostShareSequenceNumber() {
106:                return budgetCostShareSequenceNumber;
107:            }
108:
109:            /**
110:             * Sets the budgetThirdPartyCostShareSequenceNumber attribute.
111:             * 
112:             * @param budgetThirdPartyCostShareSequenceNumber The budgetThirdPartyCostShareSequenceNumber to set.
113:             */
114:            public void setBudgetCostShareSequenceNumber(
115:                    Integer budgetThirdPartyCostShareSequenceNumber) {
116:                this .budgetCostShareSequenceNumber = budgetThirdPartyCostShareSequenceNumber;
117:            }
118:
119:            /**
120:             * Gets the budgetThirdPartyCostShareDescription attribute.
121:             * 
122:             * @return Returns the budgetThirdPartyCostShareDescription
123:             */
124:            public String getBudgetCostShareDescription() {
125:                return budgetCostShareDescription;
126:            }
127:
128:            /**
129:             * Sets the budgetThirdPartyCostShareDescription attribute.
130:             * 
131:             * @param budgetThirdPartyCostShareDescription The budgetThirdPartyCostShareDescription to set.
132:             */
133:            public void setBudgetCostShareDescription(
134:                    String budgetThirdPartyCostShareDescription) {
135:                this .budgetCostShareDescription = budgetThirdPartyCostShareDescription;
136:            }
137:
138:            /**
139:             * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
140:             */
141:            protected LinkedHashMap toStringMapper() {
142:                LinkedHashMap m = new LinkedHashMap();
143:
144:                m
145:                        .put(KFSPropertyConstants.DOCUMENT_NUMBER,
146:                                this .documentNumber);
147:                m.put("budgetCostShareSequenceNumber",
148:                        this.budgetCostShareSequenceNumber);
149:
150:                return m;
151:            }
152:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.