Class BundlingRuleLoader
java.lang.Object
overit.geocallapp.wfm.bundler.bl.configuration.bundling.rule.task.BundlingRuleLoader
- All Implemented Interfaces:
Serializable
Generic object representing a loader class for the
BundlingRule entity.- Since:
- 11
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BundlingRuleLoaderReturns the bundling rule loader.loadBundlingRule(Long bundlingRuleId, PoolKit poolKit) Loads the wholeBundlingRuleentity starting from a given id.loadBundlingRule(BOBundlingRuleHeader bundlingRuleHeader, PoolKit poolKit) Loads theBundlingRulewhole entity starting from aBOBundlingRuleHeader.protected List<BOBundlingRuleFilter> loadBundlingRuleFilters(Long ruleId, PoolKit poolKit) Loads all theBOBundlingRuleFilters related to the given bundling rule id.protected BOBundlingRuleHeaderloadBundlingRuleHeader(Long ruleId, PoolKit poolKit) Loads theBOBundlingRuleHeader.protected List<BOBundlingRuleOrdering> loadBundlingRuleOrderings(Long ruleId, PoolKit poolKit) Loads all theBOBundlingRuleOrderingrelated to the given bundling rule id.
-
Constructor Details
-
BundlingRuleLoader
public BundlingRuleLoader()
-
-
Method Details
-
getBundlingRuleLoader
Returns the bundling rule loader.- Returns:
- the bundling rule loader
-
loadBundlingRule
public BundlingRule loadBundlingRule(Long bundlingRuleId, PoolKit poolKit) throws DAValidateException, DAException Loads the wholeBundlingRuleentity starting from a given id.- Parameters:
bundlingRuleId- theBundlingRuleidpoolKit- thePoolKit- Returns:
- the
BundlingRuleentity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadBundlingRule
public BundlingRule loadBundlingRule(BOBundlingRuleHeader bundlingRuleHeader, PoolKit poolKit) throws DAValidateException, DAException Loads theBundlingRulewhole entity starting from aBOBundlingRuleHeader.- Parameters:
bundlingRuleHeader- the givenBOBundlingRuleHeaderpoolKit- thePoolKit- Returns:
- the
BundlingRule - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadBundlingRuleHeader
protected BOBundlingRuleHeader loadBundlingRuleHeader(Long ruleId, PoolKit poolKit) throws DAValidateException, DAException Loads theBOBundlingRuleHeader.- Parameters:
ruleId- theBOBundlingRuleHeaderidpoolKit- thePoolKit- Returns:
- the loaded
BOBundlingRuleHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadBundlingRuleFilters
protected List<BOBundlingRuleFilter> loadBundlingRuleFilters(Long ruleId, PoolKit poolKit) throws DAValidateException, DAException Loads all theBOBundlingRuleFilters related to the given bundling rule id.- Parameters:
ruleId- theBOBundlingRuleHeaderidpoolKit- thePoolKit- Returns:
- a list of related
BOBundlingRuleFilters - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
loadBundlingRuleOrderings
protected List<BOBundlingRuleOrdering> loadBundlingRuleOrderings(Long ruleId, PoolKit poolKit) throws DAValidateException, DAException Loads all theBOBundlingRuleOrderingrelated to the given bundling rule id.- Parameters:
ruleId- theBOBundlingRuleHeaderidpoolKit- thePoolKit- Returns:
- a list of related
BOBundlingRuleOrdering - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-