The Theory of Using ZK with Databases"

From Documentation
(Created page with '{{ZKEssentialsPageHeader}} ZK is predominantly a server centric framework thus developers are not required to leverage any special mechanism to transfer data from the server to …')
 
m
Line 1: Line 1:
 
{{ZKEssentialsPageHeader}}
 
{{ZKEssentialsPageHeader}}
  
ZK is predominantly a server centric framework thus developers are not required to leverage any special mechanism to transfer data from the server to the client as this is all taken care of by ZK.
+
ZK is predominantly a server centric framework thus developers are not required to leverage any special mechanism to transfer data from the server to the client.
  
Fundamentally, as discussed in previous sections, data is provided to the view using a model concept, which is a collection type. For detailed information please [[ZK_Essentials/Displaying_Information_Using_Grid/Using_a_ListModel_and_RowRenderer | click here]].
+
Fundamentally, as discussed in previous sections, data is provided to the view using a model which is a collection type, usually a <mp>List</mp>. For detailed information please [[ZK_Essentials/Displaying_Information_Using_Grid/Using_a_ListModel_and_RowRenderer | click here]].
  
 
The sequence of displaying the data in the view is shown below.
 
The sequence of displaying the data in the view is shown below.
Line 10: Line 10:
  
  
With ZK handling the transfer of data to the client the process is substantially easier for us as developers. A ZK developer is able to leverage any application or ORM framework such as Spring and Hibernate respectively without needing to perform any special task.  
+
With ZK handling the transfer of data to the client the process is substantially easier. A ZK developer is able to leverage any application or ORM framework such as Spring and Hibernate respectively without needing to perform any special task.  
  
If you are familiar with Hibernate you do not need to read any further as the Java Collection of object which an ORM framework such as Hibernate will provide you with can be used in a ZK based application using the knowledge we gained from previous sections.
+
If you are familiar with Hibernate you do not need to read any further as a the standard List of objects retrieved from ORM frameworks is compatible with ZK's model concept. Thus using the knowledge we gained in previous sections you can construct your application.  
  
For developers who are not familiar with Hibernate the following sections provide a simple tutorial on refactoring our current application so it uses a database rather than an in memory model provided statically in the DAOs.
+
This chapter introduces those unfamiliar with ORM framworks to Hibernate and ZK. The following sections provide a simple tutorial on refactoring our current application to make use of persistent storage.
  
  
 
{{ZKEssentialsPageFooter}}
 
{{ZKEssentialsPageFooter}}

Revision as of 10:45, 9 November 2010

Stop.png This article is out of date, please refer to http://books.zkoss.org/zkessentials-book/master/ for more up to date information.


ZK is predominantly a server centric framework thus developers are not required to leverage any special mechanism to transfer data from the server to the client.

Fundamentally, as discussed in previous sections, data is provided to the view using a model which is a collection type, usually a List. For detailed information please click here.

The sequence of displaying the data in the view is shown below.

ZKEss view seq.png


With ZK handling the transfer of data to the client the process is substantially easier. A ZK developer is able to leverage any application or ORM framework such as Spring and Hibernate respectively without needing to perform any special task.

If you are familiar with Hibernate you do not need to read any further as a the standard List of objects retrieved from ORM frameworks is compatible with ZK's model concept. Thus using the knowledge we gained in previous sections you can construct your application.

This chapter introduces those unfamiliar with ORM framworks to Hibernate and ZK. The following sections provide a simple tutorial on refactoring our current application to make use of persistent storage.



Last Update : 2010/11/09

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.