Easy and comfortable Java API

The generic code generator is already pre-configured for the persistency domain - thus it creates ready-made and deployable code for various persistency solutions.

In order to interact with any of these persistency layers, there's a standardised, easy and comfortable Java API available.

// initialise an in-memory database and obtain a session to it
EOContainerSession eocSession = MemoryEOC.createEOC(100).getSession();

// create an attribute object
Address address = Address( "Munich", 80809, "Germany" );

// create an entity object
Person person = eocSession.insert( Person() );
person.setFirstname( "Christian" );
person.setLastname( "Merenda" );
person.setBirthPlace( address );

// commit the transaction
eocSession.commit();

// delete the previously created entity object and commit
eocSession.delete( person );
eocSession.commit();

Certainly - the API possesses more sophisticated features like nested transactions and an event notification mechanism. Anyhow, the basic interaction is very simple, isn't it?

>> Show next feature
>> Back to the feature list