Class SplibCoreBl

java.lang.Object
jp.ecuacion.lib.core.util.ReflectionUtil
jp.ecuacion.splib.core.bl.SplibCoreBl

public class SplibCoreBl extends jp.ecuacion.lib.core.util.ReflectionUtil
Supplies utilities.
  • Constructor Details

    • SplibCoreBl

      public SplibCoreBl()
  • Method Details

    • throwExceptionWhenDuplicated

      protected static void throwExceptionWhenDuplicated(boolean isDuplicated, boolean checkFromAllGroups, String[] itemPropertyPaths, jp.ecuacion.lib.core.item.EclibItemContainer container) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Throws an exception when duplicated. It only has a function to throw exception, not one to check the occuring of duplication.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • throwExceptionWhenDuplicated

      protected static void throwExceptionWhenDuplicated(boolean isDuplicated, boolean checkFromAllGroups, String[] itemPropertyPaths, String[] itemNameKeys) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Throws an exception when duplicated. It only has a function to throw exception, not one to check the occuring of duplication.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalDuplicateCheck

      protected <T> void internalDuplicateCheck(boolean checkFromAllGroups, List<T> entityList, jp.ecuacion.lib.core.item.EclibItemContainer rec, String itemNameKeyClass, String idItemPropertyPath, String... checkTargetItemPropertyPaths) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers duplicate check function.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      public <T> void internalChildExistenceCheck(List<T> list, String entityMessageIdPart) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with list.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      public <T> void internalChildExistenceCheck(List<T> list, String messageId, String entityMessageIdPart) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with list.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      protected <T> void internalChildExistenceCheck(List<T> list, String messageId, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean[] conditions, String referingRecordDataLabel, String recordSpecifyingFieldName) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with list.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      public <T> void internalChildExistenceCheck(Optional<T> optional, String entityMessageIdPart) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with optional.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      public <T> void internalChildExistenceCheck(Optional<T> optional, String messageId, String entityMessageIdPart) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with optional.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
    • internalChildExistenceCheck

      protected <T> void internalChildExistenceCheck(Optional<T> optional, String messageId, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean[] conditions, String referingRecordDataLabel, String recordSpecifyingFieldName) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Offers child existence check with optional.
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException