DataViews

Note that DataViews are not shipped with Cayenne since 3.0. You'll need to build the package yourself. To do that get the code from SVN and follow the README file instructions.

Cayenne takes care of managing persistence layer for all types of applications - web, rich client, command line, etc. With DataViews Cayenne extends into the area of integrating such persistent layer with Swing GUI.

DataViews define various presentation parameters of the DataObjects in an XML format. Just like DataMaps are edited using CayenneModeler, DataViews are edited with DVModeler GUI Tool. Runtime DataView classes are a part of the main Cayenne JAR file.

For manual editing of the DataViews, DataView DTD is included in the distribution. It is pretty small and the names are self-explanatory once you become familiar with the Data View structure described in this chapter.

DataViews use JDOM, so in addition to the jar files required by a regular Cayenne application, DataViews-based application must have access to JDOM jars. JDOM can be downloaded from http://www.jdom.org/.

Sections

  1. Swing Applications
  2. DataView Concepts
  3. DVModeler GUI Tool
  4. DataViews in Action

  • No labels