User-Defined Object Id Generators

You can implement your own primary key generator and plug it into the Signsoft intelliBO framework. All required classes and interfaces can be found in package com.signsoft.ibo.core.services.identity (see API documentation).

For implementing a custom id generator you have to decide, if you are using a complete key (application identity) or key fields (datastore identity). Use these two interfaces:

The names of the key generator class for every business class must be declared in the JDO file. The parameters are passed to you during the initialization and when calls are made to the key. The following fragment shows how to register a user-defined key generator:

<extension vendor-name="ssibo" key="objectid-generator">
  <extension vendor-name="ssibo" key="class-name"
    value="com.signsoft.ibo.sample.RandomIdGenerator" />
  <extension vendor-name="ssibo" key="id-column-name" value="FKEY" />
</extension>