Draft Document for Review July 28, 2004 7:33 pm

6320ch_DEV_post_migration.fm

and storeent_id=-1

Where <storeId> is the ID of the store, <newMethodId> is the ID of the new entry that was added to the CALMETHOD table and <calusageId> is the calculation usage ID from Table 8-1 on page 133.

Interface changes

This section gives an overview of the most important changes from WebSphere Commerce Suite V5.1 to WebSphere Commerce V5.6 in the signature of the payment commands.

This is to ease the migration of commands that extend or otherwise reference the existing payment commands in WebSphere Commerce Suite V5.1.

WebSphere Commerce V5.6 command interfaces

ApplyCalculationUsageCmd and its subinterface ApplyShippingCmd have the following methods, relevant to developers that wish to extend the built-in implementation classes ApplyCalculationUsageCmdImpl and ApplyShippingCmdImpl:

public void setCurrency(String)

This method replaces the WebSphere Commerce Suite V5.1 setOrderCurrency method. This method is only described here as it replaces a used WebSphere Commerce Suite V5.1 method. Classes extending from the ApplyCalculationUsageCmdImpl and ApplyShippingCmdImpl classes should use the getCurrency method to retrieve the order currency.

public String getCurrency()

This method can be used by classes that extend ApplyCalculationUsageCmdImpl or ApplyShippingCmdImpl to determine the order currency. The introduction of this method to the command interface for the calculation framework means WebSphere Commerce Suite V5.1 code that overrides the setOrderCurrency method can be eliminated, as this was typically done to retrieve the order currency.

public void checkAppliedItems()

This method is called by the framework for commands that are registered in the store calculation usage registry, STENCALUSG, as being required to apply adjustments to all order items. This is done by the check bit flag in the USAGEFLAGS column. Refer to the database documentation in the infoCenter for details:

http://publib.boulder.ibm.com/infocenter/wc56help

Chapter 8. Post-migration steps

139

Page 157
Image 157
IBM SG24-6320-00 manual Interface changes, WebSphere Commerce V5.6 command interfaces