java.lang.Object
jp.ecuacion.util.jpa.dao.sqlmacro.AbstractSqlMacro
jp.ecuacion.util.jpa.dao.sqlmacro.SqlMacroLikeEmpty
{+like_empty[PATTERN=PARTIAL] col like ? and}
の中に記載されたものは、?がnullまたは""(空文字)でない場合に、?部分が'%searchStr%'のように展開される。 {+empty ...
}では、パラメータがemptyの場合に、emptyではわたってこず、'%%'のように渡されempty判断ができないため別途作成。 PATTERN指定は、以下の3種類から指定。
・PARTIAL:前後に%がつく ・POSTFIX:前に%がつく ・PREFIX:後ろに%がつく
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OutputOfSqlMacroadaptSqlMacro(InputOfSqlMacro input) 各マクロでの個別処理を実施。マクロに必要なパラメータ情報を設定。Methods inherited from class jp.ecuacion.util.jpa.dao.sqlmacro.AbstractSqlMacro
doesSqlParamHaveListWithEffectiveValues, doesSqlParamhaveObjectArrayWithEffectiveValuesInsideList, execute, hasEffectiveVal, removeOutsideMacroStrFromMacroPartSql
-
Constructor Details
-
SqlMacroLikeEmpty
public SqlMacroLikeEmpty()
-
-
Method Details
-
adaptSqlMacro
protected OutputOfSqlMacro adaptSqlMacro(InputOfSqlMacro input) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException Description copied from class:AbstractSqlMacro各マクロでの個別処理を実施。- Specified by:
adaptSqlMacroin classAbstractSqlMacro- Throws:
jp.ecuacion.lib.core.exception.checked.BizLogicAppException
-
getDefinedMacroParamMap
Description copied from class:AbstractSqlMacroマクロに必要なパラメータ情報を設定。 Stringにはパラメータ名を、booleanは、必須→true, 任意→false。- Specified by:
getDefinedMacroParamMapin classAbstractSqlMacro
-