Helper¶
intra-mart Accel Kaiden! Helper provides API that does each process support.Calling helper and its creation method are explained in this chapter.
Items
Helper Call¶
There is no limitation for the location to be called, so it can be used from anywhere.Samples that call currency related helper class of intra-mart Accel Kaiden! are posted as below.Component obtaining by @Resource annotation
@Resource public CurrencyHelper currencyHelper; public void xxxMethod() { String currencyCd = currencyHelper.getCompanyCurrencyCd("company code"); }Component obtaining by specifying class name
public CurrencyHelper currencyHelper; public void xxxMethod() { currencyHelper = SingletonS2Container.getComponent(CurrencyHelper.class); String currencyCd = currencyHelper.getCompanyCurrencyCd("company code"); }
Helper Creation¶
Please create the helper according to the business requirements.When you create, please create new helper class instead of extending the helper class which is already provided by intra-mart Accel Kaiden!.Warning
In intra-mart Accel Kaiden! standard, helper class component is obtained by specifying class name, and it does not assume helper class extension.