Friday, May 29, 2009

UJO Framework release 0.85

The UJO Framework was essentially extended to version 0.85. This release can be used in a Maven structure project by the dependency tag:

  <dependency>
<groupid>org.ujoframework</groupid>
<artifactid>ujo-core</artifactid>
<version>0.85.00</version>
</dependency>

The most importat changes are:

  • the first Map & Ujo implementation called MapImplUjo is published
  • new annotation @XmlElementBody supports a XML body value now
  • List serialization of the plain objects is supported, e.g. List<Integer>
  • text serialization of the type java.sql.Date is supported
  • interface UjoProperty has new methods for a direction of sorting: isAscending(), descending()
  • new method UjoPropertyList.isItemTypeOf(Class) tests that property type is a type (or subtype) of the parameter
  • new interface UjoMiddle extends the Ujo interface in four methods (set, get, setText, getText)

Monday, October 27, 2008

jWorkSheet 0.81 is released

The last changes:
  • the better security of your personal data: if the data.xml file is missing or is empty, the application tries to restore a backup and show an info dialog
  • the first application parameter can specify a data directory (for a portable launching e.g.)
  • sorting the project description is allowed by a click on the table header
  • UJO Framework release 0.81 is used

Sunday, September 7, 2008

UJO Framework release 0.80

The UJO Framework was essentially extended to version 0.80. Some news are:

  • the new interface UjoExt is available for a better comfort to developers. The interface supports for example a chaining of properties or setters
  • optimized deserialization of UJO objects, which is now faster as JAXB 2.1.
  • simplification of some methods by a new interface UjoAction

UJO Framework provides objects with a different architecture from JavaBeans. The original idea was a toy with generic data types of Java 5.0 however over time it appears, that the architecture has some exciting features:
  • an easy object introspection without a heavy PropertyDescriptor implementation
  • a transfer of the UJO properties (not values) by a collection to a method
  • the core of the building has two interfaces for an easy implementation

These properties open up new possibilities for the use in the J2EE mainly in a production of generic operations over objects. Framework contains some tools for managing the UJO object in addition. See a short motivational presentation for more information.
Slide show

You can find a link to a reference application called jWorkSheet on the project home page.
The jWorkSheet is a project time tracker desktop application which uses the architecture UJO objects consistently for all persistent objects.

I welcome all feedback and comments.

Thursday, May 22, 2008

jWorkSheet 0.78.1 is released

The jWorkSheet is a personal desktop application intended for a tracking time of your projects, data are presented in a spreadsheet like format. It is a a referential application of UJO Framework.


The changes:
  • new report "Detail report in a table format" is done
  • complementary user CSS definition is supported in application parameters
  • there is possible to modify a header date format of the new report by new parameter "DateReportFormat2"
  • report design was improved by CSS style
  • better performance of data saving

Monday, May 12, 2008

Do you need a quick XML persistence?

I have done a performance test of XML serialization on the latest version UJO Framework 0.74. The results are very positive especially in comparison with the speed of XML serialization (XMLEncoder, XMLDecoder) implemented in JRE 6.0.

Table of results:
ImplementationTime of
serialization
[sec]
Time of
deserialization
[sec]
Total
ratio

[%]
ArrayUjo0.3430.50018.5
MapUjo0.3440.53119.2
PojoUjo0.3830.51619.7
JavaBean3.8321.726100.0
JAXB 2.10,2030,48415,1

Environment: Windows XP, procesor Intel DuoCore 1.66 MHz, JRE 1.6.0_04.
Test description:
  • All business objects are the same type (in one test) and they have got a recursively hierarchy up to the fourth level
  • Each business object contains 11 attributes, including one relational type of ArrayList
  • The total number of business objects was 6000
  • Test was performed by class XmlSpeedTest2 (a second pass) of a group of JUnit tests included to the project
  • Published the results are an arithmetic mean of the values from four tests

Conclusion: The XML serialization implemented in UJO Framework is approximately five times faster in comparison with the XML persistence implemented in JRE 6.0. The UJO speed of serialization is slightly smaller than the speed of the great JAXB framwork. Any comments are welcome.

Monday, November 26, 2007

UJO Framework 0.71

There is published a stable version of new project UJO Framework under Apache License, version 2.0. The framework is interesting for its different object architecture in compare to JavaBeans. The original idea was caused by a vagary with a generic data types of Java 5.0, over time it appears, that the architecture have got number of a interesting features.

The current version offers:
  • XML persistence of object tree, each object can control an access to its attributes
  • easy collaboration with a Swing tables
  • short learning curve, the solution is built on two interfaces only
  • interest architecture with an unconventional data access.
There is possible to study all features of the framework by an referential project called jWorkSheet. More information are available on a home page of the project include a short tutorial.

Thank you for some response.

Saturday, November 17, 2007

UJO Framework 0.70

New release contains an English documentation and can be downloaded from SourceForge.