Java Doc for CRUDMain.java in  » Web-Framework » roma-webwizard » org » romaframework » module » crud » 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 » Web Framework » roma webwizard » org.romaframework.module.crud 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.romaframework.aspect.view.form.SelectableInstance
      org.romaframework.module.crud.CRUDMain

CRUDMain
abstract public class CRUDMain extends SelectableInstance implements CallerHandler,PagingListener,MessageResponseListener,Refreshable,ClassLoaderListener,ViewCallback(Code)
Main class to display CRUD entry point. It allows to make queries using the filter on top of the page. Results are displayed on bottom of the page along with management of multi-pages. You can change CRUD behavior and layout in the subclass or by Xml Annotation.
author:
   Luca Garulli (luca.garulli@assetdata.it)<
Parameters:
  T - >ComposedEntity class used to display the result in the table.


Field Summary
final public static  intDEF_PAGE_ELEMENTS
    
final protected static  StringQUERY_ALL_MESSAGE
    
protected  ObjectbackObject
    
protected  ClasscreateClass
    
protected  ClasslistClass
    
protected static  Loglog
    
protected  intpageElements
    
protected  CRUDPagingpaging
    
protected  org.romaframework.aspect.persistence.QueryqueryRequest
    
protected  ClassreadClass
    
protected  ClassupdateClass
    

Constructor Summary
public  CRUDMain(Class<? extends ComposedEntity<?>> iListClass, Class iCreateClass, Class iReadClass, Class iEditClass)
    

Method Summary
public  Objectcreate()
     Create a new instance.
public  voiddelete()
     Delete the current selection allowing the multi-selection of items.
public  voiddeselectAll()
    
protected  voidexecutePagingQuery()
    
protected  voidexecuteQuery()
    
public  ObjectgetBackObject()
    
abstract public  ComposedEntitygetFilter()
    
protected  ObjectgetOnlyOneSelectedItem(Object[] iSelection)
    
public  intgetPageElements()
    
public  CRUDPaginggetPaging()
    
protected  PersistenceAspectgetPersistenceAspect()
    
abstract public  List<? extends Object>getResult()
    
protected  ObjectloadObjectDetails(Object iObj)
    
public  voidloadPage(int iPage)
    
public  voidonClassLoading(Class iClass)
    
public  voidonDispose()
    
public  voidonShow()
    
public  Objectread()
     Read the selected instance.
public  voidrefresh()
    
public  voidreport()
     Generate a report for the current view using the ReportingAspect.
public  voidresponseMessage(Message iMessage, Object iResponse)
    
public  voidsearch()
     By default search uses the "Search By Example" pattern by invoking the searchByExample() method.
public  voidsearchByExample()
     Search entities using the "Search By Example" pattern.
public  voidsearchByExample(QueryByFilter iAdditionalFilter)
     Search entities using the "Search By Example" pattern.
public  voidsearchByFilter(QueryByFilter iQueryFilter)
     Search entities using the "Search By Example" pattern.
public  voidsearchByQuery(String iText)
     Search entities by passing a query text.
public  voidselectAll()
    
public  voidsetBackObject(Object backObject)
    
public  voidsetPageElements(int pageElements)
    
abstract public  voidsetResult(Object iValue)
    
public  voidsetSelection(Object[] iSelectedObjects)
    
public  Objectupdate()
     Update the selected instance.

Field Detail
DEF_PAGE_ELEMENTS
final public static int DEF_PAGE_ELEMENTS(Code)



QUERY_ALL_MESSAGE
final protected static String QUERY_ALL_MESSAGE(Code)



backObject
protected Object backObject(Code)



createClass
protected Class createClass(Code)



listClass
protected Class listClass(Code)



log
protected static Log log(Code)



pageElements
protected int pageElements(Code)



paging
protected CRUDPaging paging(Code)



queryRequest
protected org.romaframework.aspect.persistence.Query queryRequest(Code)



readClass
protected Class readClass(Code)



updateClass
protected Class updateClass(Code)




Constructor Detail
CRUDMain
public CRUDMain(Class<? extends ComposedEntity<?>> iListClass, Class iCreateClass, Class iReadClass, Class iEditClass)(Code)




Method Detail
create
public Object create() throws SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException(Code)
Create a new instance. It's the "C" of CRUD pattern.
throws:
  SecurityException -
throws:
  NoSuchMethodException -
throws:
  IllegalArgumentException -
throws:
  InstantiationException -
throws:
  IllegalAccessException -
throws:
  InvocationTargetException -



delete
public void delete() throws InstantiationException, IllegalAccessException(Code)
Delete the current selection allowing the multi-selection of items. It's the "D" of CRUD pattern.
throws:
  InstantiationException -
throws:
  IllegalAccessException -



deselectAll
public void deselectAll()(Code)



executePagingQuery
protected void executePagingQuery()(Code)



executeQuery
protected void executeQuery()(Code)



getBackObject
public Object getBackObject()(Code)



getFilter
abstract public ComposedEntity getFilter()(Code)



getOnlyOneSelectedItem
protected Object getOnlyOneSelectedItem(Object[] iSelection)(Code)



getPageElements
public int getPageElements()(Code)



getPaging
public CRUDPaging getPaging()(Code)



getPersistenceAspect
protected PersistenceAspect getPersistenceAspect()(Code)



getResult
abstract public List<? extends Object> getResult()(Code)



loadObjectDetails
protected Object loadObjectDetails(Object iObj)(Code)



loadPage
public void loadPage(int iPage)(Code)



onClassLoading
public void onClassLoading(Class iClass)(Code)



onDispose
public void onDispose()(Code)



onShow
public void onShow()(Code)



read
public Object read() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException(Code)
Read the selected instance. It's the "R" of CRUD pattern.
throws:
  InstantiationException -
throws:
  IllegalAccessException -
throws:
  IllegalArgumentException -
throws:
  InvocationTargetException -



refresh
public void refresh()(Code)



report
public void report()(Code)
Generate a report for the current view using the ReportingAspect.



responseMessage
public void responseMessage(Message iMessage, Object iResponse)(Code)



search
public void search()(Code)
By default search uses the "Search By Example" pattern by invoking the searchByExample() method. Overwrite this to use the searchByQuery() or any other mode.



searchByExample
public void searchByExample()(Code)
Search entities using the "Search By Example" pattern. All filter's properties with value different by null are evaluated in the query predicate.



searchByExample
public void searchByExample(QueryByFilter iAdditionalFilter)(Code)
Search entities using the "Search By Example" pattern. All filter's properties with value different by null are evaluated in the query predicate. iAdditionalFilter allow to specify additional constaints for the autogenerated QBE.



searchByFilter
public void searchByFilter(QueryByFilter iQueryFilter)(Code)
Search entities using the "Search By Example" pattern. This variant uses a QueryFilter instance as filter. This allow a much more powerful control over filtering by simple QBE upon.



searchByQuery
public void searchByQuery(String iText)(Code)
Search entities by passing a query text. The language of query text must be understood by underline Persistence Aspect.
Parameters:
  iText - Query text in the language supported by underline Persistence Aspect



selectAll
public void selectAll()(Code)



setBackObject
public void setBackObject(Object backObject)(Code)



setPageElements
public void setPageElements(int pageElements)(Code)



setResult
abstract public void setResult(Object iValue)(Code)



setSelection
public void setSelection(Object[] iSelectedObjects)(Code)
Enable/Disable actions, based on current user profiling if any



update
public Object update() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException(Code)
Update the selected instance. It's the "U" of CRUD pattern.
throws:
  InstantiationException -
throws:
  IllegalAccessException -
throws:
  IllegalArgumentException -
throws:
  InvocationTargetException -



Methods inherited from org.romaframework.aspect.view.form.SelectableInstance
public Object[] getSelection()(Code)(Java Doc)
public void setSelection(Object[] iSelectedObjects)(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.