Class MaterialHelper
java.lang.Object
overit.geocallapp.wfm.core.bl.material.MaterialHelper
Helper for material classes.
Contains a set of shortcut for typical container actions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMandatoryFields(BOMaterial material, PoolKit pk) Checks the mandatory fields for the given material.voidcheckMaterialTypeConsistency(BOMaterial material, PoolKit pk) Checks the material type consistency.voidcheckUniqueCode(BOMaterial currentMaterial, PoolKit pk) Check whether the given code is unique.
-
Constructor Details
-
MaterialHelper
public MaterialHelper()
-
-
Method Details
-
checkUniqueCode
public void checkUniqueCode(BOMaterial currentMaterial, PoolKit pk) throws DAValidateException, DAException Check whether the given code is unique.- Parameters:
currentMaterial- the current materialpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkMaterialTypeConsistency
public void checkMaterialTypeConsistency(BOMaterial material, PoolKit pk) throws DAValidateException Checks the material type consistency.- Parameters:
material- the materialpk- thePoolKit- Throws:
DAValidateException- the DA validate exception
-
checkMandatoryFields
Checks the mandatory fields for the given material.- Parameters:
material- the materialpk- thePoolKit- Throws:
DAValidateException- the DA validate exception
-