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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordContains attributes for child existence check condition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidinternalChildExistenceCheck(List<T> list, String entityMessageIdPart) Offers child existence check with list.<T> voidinternalChildExistenceCheck(List<T> list, String messageId, String entityMessageIdPart) Offers child existence check with list.protected <T> voidinternalChildExistenceCheck(List<T> list, String messageId, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean[] conditions, String referingRecordDataLabel, String recordSpecifyingFieldName) Offers child existence check with list.<T> voidinternalChildExistenceCheck(List<T> list, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean... conditions) Offers child existence check with list.<T> voidinternalChildExistenceCheck(Optional<T> optional, String entityMessageIdPart) Offers child existence check with optional.<T> voidinternalChildExistenceCheck(Optional<T> optional, String messageId, String entityMessageIdPart) Offers child existence check with optional.protected <T> voidinternalChildExistenceCheck(Optional<T> optional, String messageId, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean[] conditions, String referingRecordDataLabel, String recordSpecifyingFieldName) Offers child existence check with optional.<T> voidinternalChildExistenceCheck(Optional<T> optional, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean... conditions) Offers child existence check with optional.protected <T> voidinternalDuplicateCheck(boolean checkFromAllGroups, List<T> entityList, jp.ecuacion.lib.core.item.ItemContainer rec, String itemNameKeyClass, String idItemPropertyPath, String... checkTargetItemPropertyPaths) Offers duplicate check function.protected static voidthrowExceptionWhenDuplicated(boolean isDuplicated, boolean checkFromAllGroups, String[] itemPropertyPaths, String[] itemNameKeys) Throws an exception when duplicated.protected static voidthrowExceptionWhenDuplicated(boolean isDuplicated, boolean checkFromAllGroups, String[] itemPropertyPaths, jp.ecuacion.lib.core.item.ItemContainer container) Throws an exception when duplicated.Methods inherited from class jp.ecuacion.lib.core.util.ReflectionUtil
classExists, getField, getLeafBean, getValue, newInstance, searchAnnotationPlacedAtClass
-
Constructor Details
-
SplibCoreBl
public SplibCoreBl()
-
-
Method Details
-
throwExceptionWhenDuplicated
protected static void throwExceptionWhenDuplicated(boolean isDuplicated, boolean checkFromAllGroups, String[] itemPropertyPaths, jp.ecuacion.lib.core.item.ItemContainer 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.ItemContainer 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
-
internalChildExistenceCheck
-
internalChildExistenceCheck
public <T> void internalChildExistenceCheck(List<T> list, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean... conditions) 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
-
internalChildExistenceCheck
-
internalChildExistenceCheck
public <T> void internalChildExistenceCheck(Optional<T> optional, String entityMessageIdPart, SplibCoreBl.ChildExistenceCheckConditionBean... conditions) 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
-