The DataStore collaboration template is used to serialize a Generic Business Object (GBO) into XML and store it in a database table through use of a user-specified key.
The DataStore collaboration template is used to serialize a Generic Business Object (GBO) into XML and store it in a database table through use of a user-specified key. The attributes in the triggering business object used to form the unique database table key are specified in a configuration property value of a DataStore collaboration object. The output of a collaboration object based on the DataStore collaboration template is bound to the runtime portion of an IBM® WebSphere® Business Integration Adapter for JDBC (identified as a JDBCConnector throughout), which actually performs the storage operations. In addition to supporting a user-specified database key, a DataStore collaboration object can also be configured to generate a unique key and return it to the calling collaboration object.
A DataStore collaboration object can also retrieve, update, or delete the GBO. To retrieve or delete the GBO from the database, the calling collaboration object must pass in a GBO containing values in its attributes, which are used to form the user-specified unique key.
For example purposes only, two sample GBOs and one sample application specific business object (ASBO) are shipped with the DataStore collaboration template. The SampleObject business object is the sample triggering business object to be stored. The DataStoreSampleObject is a sample wrapper object used to contain the SampleObject GBO, which is passed to the IBM WebSphere Business Integration Data Handler for XML by the collaboration object. The collaboration object copies the serialized XML data handler output string into the sample SerialObject ASBO, which is actually stored in the database.
As shipped, the DataStore collaboration template is configured to accept a SampleObject GBO, employ a DataStoreSampleObject business object, and produce a SerialObject ASBO.
For production purposes, however, you must edit these business objects.
Editing the business objects
You must edit the business objects for production purposes.Setting up the Datastore collaboration object
This section includes information on port bindings and required steps for setting up collaboration objects based on the Datastore collaboration template.Datastore process logic
The Datastore collaboration template includes several processes.Port bindings
The term connector used throughout refers to the runtime portion of an IBM WebSphere Business Integration Adapter.Configuration properties
The following sections describe configuration properties for this collaboration template:
Parent topic: Collaboration templates