Changes in process logic occur when the indicated configuration
properties of a collaboration object are set to true
Changes in process logic
- When the standard configuration property CONVERT_CREATE is set to true,
the Create verb is changed to Update if an object with the same ObjectKey
as the triggering business object already exists in the database. The object
currently in the database is overwritten with the new triggering business
object. The DataStore collaboration object prints out a trace message indicating
that this verb change has occurred. With the exception of this change, all
other parts of the flow remain the same.
- When the standard configuration property CONVERT_UPDATE is set to true,
the Update verb is changed to Create if no object with the ObjectKey exists
in the database. A new record is added to the database for the new triggering
business object. The DataStore collaboration object prints out a trace message
indicating that this verb change has occurred. With the exception of this
change, all other parts of the flow remain the same.
- When the configuration property GENERATE_KEY is set to true, the DataStore
collaboration object allows the JDBCConnector to generate a unique key, use
that key to store the serial data, and then return the key to the collaboration
object. The DataStore collaboration object then puts the connector-generated
key into the key field of the triggering business object, as specified in
the OBJECT_KEY property. The OBJECT_KEY property must specify a single attribute
when GENERATE_KEY is true. The JDBCConnector provides three different ways
to generate a unique key, using the UID parameter in the application specific
information for a business object attribute. Any of these three methods for
generating UIDs is acceptable, so the choice might depend on the database
being used. See the Adapter for JDBC User Guide for more information. The
CONVERT_CREATE property must not be set to true when GENERATE_KEY is true
because no key is specified with the Create verb. When the CONVERT_UPDATE
property is set to true and GENERATE_KEY is true, a new row is created in
the database. Use caution when enabling CONVERT_UPDATE when GENERATE_KEY is
true, because the conversion can occur only when the triggering business object
(with the verb Update) contains a previously generated key and the record
with that key is not in the database. For many implementations, this might
be considered an error condition.