StarData GmbH

TLGen - EJB3 Code-Generator

 

StarData GmbH

 

0. News

November 2008

To eliminate misunderstanding caused by TLGen you will find a forum here soon. Furthermore we set up a developed blog for more information and we have extended the site.

October 2008

The new version 1.004 released and soon will be the new version 2.0 available with many new features, easier handling and better to generate code.

 

1. Introduction

1.1 What for?

What TLGen for? In our years of practical project experience in enterprise backend development, we believed that it is possible to have a solution for complete fast Backend Code generation without the business core. For example one project in our experience with 45 database tables includes about 281 backend java classes (Entity-Beans, Manager-Classes, Interfaces, Session-Beans, Data Objects, some backend classes, e.g. constant classes etc.)

Let's say we have already our database model and we count maximum 2 hours per person for an experienced programmer in creating, programming, testing one class like the Entity-Bean (with the get-, set-, create- etc. methods), his interface, his Manager-Class and his equivalent Data-Object. Then we get (180 * 2 =) 360 hours per person. For the other 101 classes (Session-Beans etc.) we assume more effort and 3 hours per person so (3 * 101 =) 303 hours per person and divide the sum of all hours through 40 working hours per week. So we get (663 / 40 =) 16,6 weeks round about 4 month.

Now we create these classes for one experienced programmer in TLGen and we assume to have an existing database model in the database. In max. 2-3 days the configuration file is created, TLGen generates the 230 classes in 5 min with the test classes for testing and we estimates about 20 hours for testing everything.

TLGen in hours/person                       
1xmax.24h=24h/p(config-file)
1x20h=20h/p(testing)
=44h/p=5,5days
Programmer for creating, programming, testing in hours/person
180x2h=360h/p(Entity-Beans,interfaces, Manager-Classes,Data-Objects)
101x3h=303h/p (Session-Beans, other classes)
=663/40=16,6weeks/p = 4month/p.

Today there is a hype of counting the SLOC (Source Lines of Code) with David A. Wheeler 'SLOCCount'. We know it’s no reference but wanted to see what interesting results we would get. So our generated files for testing were one Entity-Bean (74 get/set/create/add-Methods for 34 columns in the table), one Session-Bean (26 Methods) and one Manager-Class (8 Methods e.g. flush, create, update, remove, findByPrimaryKey, etc.).
The results of 'SLOCCount' were 923 total physical source lines of code (SLOC), the development effort estimate 2 month, 6 days for one person (Basic COCOMO model) and the total estimated cost to develop = $ 24,837 (average salary of $56,286/year)

1.2 TLGen

StarData GmbH

TLGen is a Java code generator which generates on the basis of a database model and of a configuration file all required back-end classes/files [data sets] conform to EJB3 specification.

TLGen generates all Session-, Entity Beans, Manager Classes and Data Objects with the associated interfaces as well as the required EJB3 XML files.

The target set by TLGen is the reduction of costs for software development by the entire generation of back-end classes/files. This is achieved through the full implementation of object-oriented specifications and strictly structured generated Java code. This lowers the cost of maintenance and development.

The use of TLGen for software development reduces the amount of code on the server. The developer can completely concentrate on the programming of the functional logic. Access of the Data Objects will be simplified by the generation of codes.

Today almost every project uses a database (such as a Website) and to use easily such data over objects in the application, usually you must ensure to create object-database-data mappings in the Backend what can be time-consuming.

TLGen resolves this! It generates the complete backend-code (without the business core) only with the configuration file and your database model (directly from the database tables and whatever database you have) and that even for your application server (whatever one you have).

Furthermore the session/manager classes etc. will be generated as required, which will e.g. get your data object out of database with one method like “findByName” or an another one to update the database row with the the corresponding edited data object.

 

2. Download

TLGen is freeware and released under this license. The Copyright owner is StarData GmbH.
For support please mail to support AT logicsys DOT org.

Version 1.x

VersionLinkDokumentation
1.004tlgen3_v1004.zip Doku (.html) (.pdf) (.txt)

 

... for more information please visit also StarData GmbH