Extensions to terms and conditions

You can use the special purpose entity bean, ExtendedTermConditionAccessBean and the corresponding data bean, ExtendedTermConditionDataBean, to extend the Terms and conditions ("terms") provided with HCL Commerce. Use the entity and data bean to provide access to the TERMCOND table.

The terms that are shipped with HCL Commerce in EJB form remain unchanged, and any customization actions that you performed previously are still valid. However, you can create a TCConfigurationExt.xml file to provide more terms for use with this new mechanism. You do not need to add more entity beans. Any term additions or modifications that you make in this file are available to be included in contracts after you store them in the registry. Changes that you make to this file do not get overwritten by service updates.

Do not modify the TCConfiguration file. This file is for defining IBM internal terms and conditions. Any changes that you make to this file might be overwritten by service updates.

Term types in either the IBM supplied TCConfiguration.xml file or the TCConfigurationExt.xml file that you create, act as a mapping mechanism into the TERMCOND table. That is, they supply a human-readable name for the values that are stored in the TERMCOND table, for instance INTEGERFIELD1 and STRINGFIELD1. You need to add logic to implement the functionality that is intended by the terms.

The TERMCOND table fields that are supported by this new feature do not provide encryption support. Do not store sensitive information (such as a credit card number) as part of extended terms.

 Supported columns

The following TERMCOND table columns are supported for storing extended term and condition type attribute values.

  • STRINGFIELD1
  • STRINGFIELD2
  • STRINGFIELD3
  • INTEGERFIELD1
  • INTEGERFIELD2
  • INTEGERFIELD3
  • BIGINTFIELD1
  • BIGINTFIELD2
  • BIGINTFIELD3
  • FLOATFIELD1
  • FLOATFIELD2
  • FLOATFIELD3
  • TIMEFIELD1
  • TIMEFIELD2
  • TIMEFIELD3
  • DECIMALFIELD1
  • DECIMALFIELD2
  • DECIMALFIELD3