Java Doc for FinderComponent2.java in  » J2EE » Jaffa » org » jaffa » components » finder » 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 » J2EE » Jaffa » org.jaffa.components.finder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jaffa.presentation.portlet.component.Component
      org.jaffa.components.finder.FinderComponent2

All known Subclasses:   org.jaffa.components.lookup.LookupComponent2,
FinderComponent2
abstract public class FinderComponent2 extends Component (Code)
This is the base class for all Finder components created by using the object_finder_2_0 pattern. It has the following properties - 1- displayResultsScreen : If set to true, then the Results screen will be directly brought up, bypassing the Criteria screen. 2- consolidatedCriteriaAndResults : If set to true, then the Criteria and Results screen will be shown together 3- sortDropDown : The sort criteria to use for the inquiry 4- exportType : The export option to use for the inquiry (initialized to regular Web Pages) 5- maxRecords: The maximum number of records to retrieve. All records will be retrieved, if no value is specified. A Finder class will have to provide an implementation for the doInquiry(), getCriteriaFormName(), getResultsFormName() and getConsolidatedCriteriaAndResultsFormName() methods.
author:
   GautamJ


Field Summary
final public static  StringATTRIBUTE_EXPORT_TYPE_XML
     This request stream attribute is set after a query if the exportType is XML. The ResultsJsp will use display the XML stored by this attribute.
final public static  StringEXPORT_TYPE_EXCEL
     A global constant for the Excel export option.
final public static  StringEXPORT_TYPE_WEB_PAGE
     A global constant for the Web Page export option.
final public static  StringEXPORT_TYPE_XML
     A global constant for the XML export option.


Method Summary
protected  voidaddSortCriteria(FinderInDto inputDto)
     Interprets the value of the 'sortDropDown' property adding suitable values to the input Dto.
public  FormKeydisplay()
     If the displayResultsScreen property has not been set or has been set to false, it will return the FormKey for the Criteria screen. If the displayResultsScreen property has been set to true, then a Search will be performed & the FormKey for the Results screen will be returned.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.
public  FormKeydisplayCriteria()
     Invoked the initializeCriteriaScreen() method and then returns the FormKey for the Criteria screen.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.
public  FormKeydisplayResults()
     Invokes the performInquiry() method and then returns the FormKey for the Results screen. If the consolidatedCriteriaAndResults property has been set to true, then the FormKey for consolidatedCriteriaAndResults screen will be returned.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.
abstract protected  FinderOutDtodoInquiry()
     The Component should provide an implementation for this method to perform the actual query to obtain the FinderOutDto.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.
public  BooleangetConsolidatedCriteriaAndResults()
     Getter for property consolidatedCriteriaAndResults.
abstract protected  StringgetConsolidatedCriteriaAndResultsFormName()
     The Component should provide an implementation for this method to return the Struts GlobalForward for the ConsolidatedCriteriaAndResults screen.
public  FormKeygetCriteriaFormKey()
     Getter for the Criteria screen's FormKey.
abstract protected  StringgetCriteriaFormName()
     The Component should provide an implementation for this method to return the Struts GlobalForward for the Criteria screen.
public  BooleangetDisplayResultsScreen()
     Getter for property displayResultsScreen.
abstract protected  StringgetExcelFormName()
     The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results as an Excel spreadsheet.
public  StringgetExportType()
     Getter for property exportType.
public  FinderOutDtogetFinderOutDto()
     Getter for property finderOutDto.
protected  HeaderDtogetHeaderDto()
     Returns the HeaderDto.
public  IntegergetMaxRecords()
     Getter for property maxRecords.
public  FormKeygetResultsFormKey()
     Getter for the Results screen's FormKey.
abstract protected  StringgetResultsFormName()
     The Component should provide an implementation for this method to return the Struts GlobalForward for the Results screen.
public  StringgetSortDropDown()
     Getter for property sortDropDown.
abstract protected  StringgetXmlFormName()
     The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results in XML format.
public  voidincrementMaxRecords()
     This will set the property 'maxRecords' to the value following the current one, in the list of values returned by CriteriaDropDownOptions.getMaxRecordsDropDownOptions().
protected  voidinitializeCriteriaScreen()
     The Component should override this method to retrieve the set of codes for dropdowns in criteria screen, if any are required.
public  voidperformInquiry()
     Invokes the doInquiry() method and then removes the "rows" GridModel object from the cache.
public  voidsetConsolidatedCriteriaAndResults(Boolean consolidatedCriteriaAndResults)
     Setter for property consolidatedCriteriaAndResults.
public  voidsetDisplayResultsScreen(Boolean displayResultsScreen)
     Setter for property displayResultsScreen.
public  voidsetExportType(String exportType)
     Setter for property exportType.
public  voidsetMaxRecords(Integer maxRecords)
     Setter for property maxRecords.
public  voidsetSortDropDown(String sortDropDown)
     Setter for property sortDropDown.
protected  voiduncacheRowsModel()
     Removes the 'rows' GridModel from the WidgetCache.
protected  voidupdateMaxRecordsModel()
     Update the DropDownModel for the MaxRecords field, if one already exists.

Field Detail
ATTRIBUTE_EXPORT_TYPE_XML
final public static String ATTRIBUTE_EXPORT_TYPE_XML(Code)
This request stream attribute is set after a query if the exportType is XML. The ResultsJsp will use display the XML stored by this attribute.



EXPORT_TYPE_EXCEL
final public static String EXPORT_TYPE_EXCEL(Code)
A global constant for the Excel export option.



EXPORT_TYPE_WEB_PAGE
final public static String EXPORT_TYPE_WEB_PAGE(Code)
A global constant for the Web Page export option.



EXPORT_TYPE_XML
final public static String EXPORT_TYPE_XML(Code)
A global constant for the XML export option.





Method Detail
addSortCriteria
protected void addSortCriteria(FinderInDto inputDto)(Code)
Interprets the value of the 'sortDropDown' property adding suitable values to the input Dto.
Parameters:
  inputDto - The Dto to which the orderby fields will be added.



display
public FormKey display() throws ApplicationExceptions, FrameworkException(Code)
If the displayResultsScreen property has not been set or has been set to false, it will return the FormKey for the Criteria screen. If the displayResultsScreen property has been set to true, then a Search will be performed & the FormKey for the Results screen will be returned.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error. The FormKey for the Criteria screen.



displayCriteria
public FormKey displayCriteria() throws ApplicationExceptions, FrameworkException(Code)
Invoked the initializeCriteriaScreen() method and then returns the FormKey for the Criteria screen.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error. The FormKey for the Criteria screen.



displayResults
public FormKey displayResults() throws ApplicationExceptions, FrameworkException(Code)
Invokes the performInquiry() method and then returns the FormKey for the Results screen. If the consolidatedCriteriaAndResults property has been set to true, then the FormKey for consolidatedCriteriaAndResults screen will be returned.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error. The FormKey for the Results screen.



doInquiry
abstract protected FinderOutDto doInquiry() throws ApplicationExceptions, FrameworkException(Code)
The Component should provide an implementation for this method to perform the actual query to obtain the FinderOutDto.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error. the FinderOutDto object.



getConsolidatedCriteriaAndResults
public Boolean getConsolidatedCriteriaAndResults()(Code)
Getter for property consolidatedCriteriaAndResults. Value of property consolidatedCriteriaAndResults.



getConsolidatedCriteriaAndResultsFormName
abstract protected String getConsolidatedCriteriaAndResultsFormName()(Code)
The Component should provide an implementation for this method to return the Struts GlobalForward for the ConsolidatedCriteriaAndResults screen. the Struts GlobalForward for the ConsolidatedCriteriaAndResults screen.



getCriteriaFormKey
public FormKey getCriteriaFormKey()(Code)
Getter for the Criteria screen's FormKey. the FormKey for the Criteria screen.



getCriteriaFormName
abstract protected String getCriteriaFormName()(Code)
The Component should provide an implementation for this method to return the Struts GlobalForward for the Criteria screen. the Struts GlobalForward for the Criteria screen.



getDisplayResultsScreen
public Boolean getDisplayResultsScreen()(Code)
Getter for property displayResultsScreen. Value of property displayResultsScreen.



getExcelFormName
abstract protected String getExcelFormName()(Code)
The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results as an Excel spreadsheet. the Struts GlobalForward for the screen displaying the results as an Excel spreadsheet.



getExportType
public String getExportType()(Code)
Getter for property exportType. Value of property exportType.



getFinderOutDto
public FinderOutDto getFinderOutDto()(Code)
Getter for property finderOutDto. Value of property finderOutDto.



getHeaderDto
protected HeaderDto getHeaderDto()(Code)
Returns the HeaderDto. This can be used for passing the header info to the Tx, where required. the HeaderDto.



getMaxRecords
public Integer getMaxRecords()(Code)
Getter for property maxRecords. Value of property maxRecords.



getResultsFormKey
public FormKey getResultsFormKey()(Code)
Getter for the Results screen's FormKey. the FormKey for the Results screen.



getResultsFormName
abstract protected String getResultsFormName()(Code)
The Component should provide an implementation for this method to return the Struts GlobalForward for the Results screen. the Struts GlobalForward for the Results screen.



getSortDropDown
public String getSortDropDown()(Code)
Getter for property sortDropDown. Value of property sortDropDown.



getXmlFormName
abstract protected String getXmlFormName()(Code)
The Component should provide an implementation for this method to return the Struts GlobalForward for the screen displaying the results in XML format. the Struts GlobalForward for the screen displaying the results in XML format.



incrementMaxRecords
public void incrementMaxRecords()(Code)
This will set the property 'maxRecords' to the value following the current one, in the list of values returned by CriteriaDropDownOptions.getMaxRecordsDropDownOptions().



initializeCriteriaScreen
protected void initializeCriteriaScreen() throws ApplicationExceptions, FrameworkException(Code)
The Component should override this method to retrieve the set of codes for dropdowns in criteria screen, if any are required.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.



performInquiry
public void performInquiry() throws ApplicationExceptions, FrameworkException(Code)
Invokes the doInquiry() method and then removes the "rows" GridModel object from the cache.
throws:
  ApplicationExceptions - This will be thrown in case any invalid data has been set.
throws:
  FrameworkException - Indicates some system error.



setConsolidatedCriteriaAndResults
public void setConsolidatedCriteriaAndResults(Boolean consolidatedCriteriaAndResults)(Code)
Setter for property consolidatedCriteriaAndResults.
Parameters:
  consolidatedCriteriaAndResults - New value of property consolidatedCriteriaAndResults.



setDisplayResultsScreen
public void setDisplayResultsScreen(Boolean displayResultsScreen)(Code)
Setter for property displayResultsScreen.
Parameters:
  displayResultsScreen - New value of property displayResultsScreen.



setExportType
public void setExportType(String exportType)(Code)
Setter for property exportType.
Parameters:
  exportType - New value of property exportType.



setMaxRecords
public void setMaxRecords(Integer maxRecords)(Code)
Setter for property maxRecords.
Parameters:
  maxRecords - New value of property maxRecords.



setSortDropDown
public void setSortDropDown(String sortDropDown)(Code)
Setter for property sortDropDown.
Parameters:
  sortDropDown - New value of property sortDropDown.



uncacheRowsModel
protected void uncacheRowsModel()(Code)
Removes the 'rows' GridModel from the WidgetCache.



updateMaxRecordsModel
protected void updateMaxRecordsModel()(Code)
Update the DropDownModel for the MaxRecords field, if one already exists.



Methods inherited from org.jaffa.presentation.portlet.component.Component
public void addChildComponent(Component component)(Code)(Java Doc)
public void addFormKeyChangeListener(FormKeyChangeListener listener)(Code)(Java Doc)
abstract public FormKey display() throws FrameworkException, ApplicationExceptions(Code)(Java Doc)
public ComponentDefinition getComponentDefinition()(Code)(Java Doc)
public String getComponentId()(Code)(Java Doc)
public FormKey getContainerFormKey()(Code)(Java Doc)
public FormKeyChangeListener[] getFormKeyChangeListeners()(Code)(Java Doc)
public FormKey getReturnToFormKey()(Code)(Java Doc)
public String getToken()(Code)(Java Doc)
public UserSession getUserSession()(Code)(Java Doc)
public boolean isActive()(Code)(Java Doc)
public void quit()(Code)(Java Doc)
public FormKey quitAndReturnToCallingScreen()(Code)(Java Doc)
public void reflectAndSetParms(HttpServletRequest request)(Code)(Java Doc)
public void removeFormKeyChangeListener(FormKeyChangeListener listener)(Code)(Java Doc)
public Collection returnChildComponents()(Code)(Java Doc)
public DateTime returnLastActivityDate()(Code)(Java Doc)
public Component run(String component)(Code)(Java Doc)
public void setContainerFormKey(FormKey containerFormKey)(Code)(Java Doc)
public void setReturnToFormKey(FormKey returnToFormKey)(Code)(Java Doc)
public void setToken(String token)(Code)(Java Doc)
public void updateLastActivityDate()(Code)(Java Doc)

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.