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


org.kuali.core.service.BusinessObjectService

All known Subclasses:   org.kuali.core.service.impl.BusinessObjectServiceImpl,
BusinessObjectService
public interface BusinessObjectService (Code)
This interface defines methods that a BusinessObjectService must provide.




Method Summary
public  intcountMatching(Class clazz, Map fieldValues)
     This method retrieves a count of the business objects populated with data which match the criteria in the given Map.
public  intcountMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues)
     This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.
public  voiddelete(PersistableBusinessObject bo)
     Deletes a business object from the database.
public  voiddelete(List<PersistableBusinessObject> boList)
     Deletes each business object in the given List.
public  voiddeleteMatching(Class clazz, Map fieldValues)
    
public  CollectionfindAll(Class clazz)
     Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
public  PersistableBusinessObjectfindByPrimaryKey(Class clazz, Map primaryKeys)
     Retrieves an object instance identified by its primary keys and values.
public  CollectionfindMatching(Class clazz, Map fieldValues)
     This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
public  CollectionfindMatchingOrderBy(Class clazz, Map fieldValues, String sortField, boolean sortAscending)
     This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.
public  PersistableBusinessObjectgetReferenceIfExists(PersistableBusinessObject bo, String referenceName)
     This method attempts to retrieve the reference from a BO if it exists.
public  voidlinkAndSave(PersistableBusinessObject bo)
     Links up any contained objects, and then Saves the passed in object via the persistence layer.
public  voidlinkAndSave(List<PersistableBusinessObject> businessObjects)
     Links up any contained objects, and Saves the businessObjects on the list via the persistence layer.
public  voidlinkUserFields(PersistableBusinessObject bo)
     Updates all KualiUser or UniversalUser objects contained within this BO, based on the UserID as the authoritative key.
public  voidlinkUserFields(List<PersistableBusinessObject> bos)
     Updates all KualiUser or UniversalUser objects contained within this BO, based on the UserID as the authoritative key.
public  PersistableBusinessObjectretrieve(PersistableBusinessObject object)
     Retrieves an object instance identified by the class of the given object and the object's primary key values.
public  voidsave(PersistableBusinessObject bo)
     Saves the passed in object via the persistence layer.
public  voidsave(List businessObjects)
     Saves the businessObjects on the list via the persistence layer.



Method Detail
countMatching
public int countMatching(Class clazz, Map fieldValues)(Code)
This method retrieves a count of the business objects populated with data which match the criteria in the given Map.
Parameters:
  clazz -
Parameters:
  fieldValues - number of businessObjects of the given class whose fields match the values in the given expected-value Map



countMatching
public int countMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues)(Code)
This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.
Parameters:
  clazz -
Parameters:
  positiveFieldValues -
Parameters:
  negativeFieldValues - number of businessObjects of the given class whose fields match the values in the given expected-value Maps



delete
public void delete(PersistableBusinessObject bo)(Code)
Deletes a business object from the database.
Parameters:
  bo -



delete
public void delete(List<PersistableBusinessObject> boList)(Code)
Deletes each business object in the given List.
Parameters:
  boList -



deleteMatching
public void deleteMatching(Class clazz, Map fieldValues)(Code)
Deletes the object(s) matching the given field values
Parameters:
  clazz -
Parameters:
  fieldValues -



findAll
public Collection findAll(Class clazz)(Code)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will only retrieve business objects by class type.
Parameters:
  clazz -



findByPrimaryKey
public PersistableBusinessObject findByPrimaryKey(Class clazz, Map primaryKeys)(Code)
Retrieves an object instance identified by its primary keys and values. This can be done by constructing a map where the key to the map entry is the primary key attribute and the value of the entry being the primary key value. For composite keys, pass in each primaryKey attribute and its value as a map entry.
Parameters:
  clazz -
Parameters:
  primaryKeys -



findMatching
public Collection findMatching(Class clazz, Map fieldValues)(Code)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name and its expected value.
Parameters:
  clazz -
Parameters:
  fieldValues -



findMatchingOrderBy
public Collection findMatchingOrderBy(Class clazz, Map fieldValues, String sortField, boolean sortAscending)(Code)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs, specifically attribute name and its expected value. Performs an order by on sort field.
Parameters:
  clazz -
Parameters:
  fieldValues -



getReferenceIfExists
public PersistableBusinessObject getReferenceIfExists(PersistableBusinessObject bo, String referenceName)(Code)
This method attempts to retrieve the reference from a BO if it exists.
Parameters:
  bo - - populated BusinessObject instance that includes the referenceName property
Parameters:
  referenceName - - name of the member/property to load A populated object from the DB, if it exists



linkAndSave
public void linkAndSave(PersistableBusinessObject bo)(Code)
Links up any contained objects, and then Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
Parameters:
  bo - A BusinessObject instance or descendent that you wish to be stored.



linkAndSave
public void linkAndSave(List<PersistableBusinessObject> businessObjects)(Code)
Links up any contained objects, and Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
Parameters:
  businessObjects - A List of objects to persist.



linkUserFields
public void linkUserFields(PersistableBusinessObject bo)(Code)
Updates all KualiUser or UniversalUser objects contained within this BO, based on the UserID as the authoritative key. The appropriate foreign-key field in the BO itself is also updated. This allows UserIDs to be entered on forms, and the back-end will link up correctly based on this non-key field.
Parameters:
  bo - The populated BO (or descendent) instance to be linked & updated



linkUserFields
public void linkUserFields(List<PersistableBusinessObject> bos)(Code)
Updates all KualiUser or UniversalUser objects contained within this BO, based on the UserID as the authoritative key. The appropriate foreign-key field in the BO itself is also updated. This allows UserIDs to be entered on forms, and the back-end will link up correctly based on this non-key field.
Parameters:
  bos - A List of populated BusinessObject (or descendent) instances to be linked & updated.



retrieve
public PersistableBusinessObject retrieve(PersistableBusinessObject object)(Code)
Retrieves an object instance identified by the class of the given object and the object's primary key values.
Parameters:
  object -



save
public void save(PersistableBusinessObject bo)(Code)
Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.
Parameters:
  bo - A BusinessObject instance or descendent that you wish to be stored.



save
public void save(List businessObjects)(Code)
Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.
Parameters:
  businessObjects - A List of objects to persist.



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