SalesPoint Framework v3.0

Hook: Log DataBasket Operations


Requirement

A log needs to be kept on operations that are performed on a certain DataBasket.

Method of Adaptation
Enable Feature
Level of Support
Multi Option  
HotSpot
Log management
Participants
DataBasket, basket

Changes

  1. instance basket of DataBasket.
  2. choose which operations need to be logged: none, all, only commits, only rollbacks.
  3. if none:
    1. call basket.setLogMode with parameter data.DataBasket.LOG_MODE_NONE .
  4. if all:
    1. call basket.setLogMode with parameter data.DataBasket.LOG_MODE_ALL .
  5. if commits only:
    1. call basket.setLogMode with parameter data.DataBasket.LOG_MODE_COMMITS_ONLY .
  6. if rollbacks only:
    1. call basket.setLogMode with parameter data.DataBasket.LOG_MODE_ROLLBACKS_ONLY .

Comments


SalesPoint Framework v3.0