diff --git a/portal-impl/src/com/liferay/portal/dao/sql/transformer/BaseSQLTransformerLogic.java b/portal-impl/src/com/liferay/portal/dao/sql/transformer/BaseSQLTransformerLogic.java index 3537183cb2f99e..11e13543e1949a 100644 --- a/portal-impl/src/com/liferay/portal/dao/sql/transformer/BaseSQLTransformerLogic.java +++ b/portal-impl/src/com/liferay/portal/dao/sql/transformer/BaseSQLTransformerLogic.java @@ -49,8 +49,8 @@ protected Function getBooleanFunction() { protected Function getCastClobTextFunction() { return _getCastFunction( - getCastClobTextPattern(), "CAST_CLOB_TEXT", - matcher -> replaceCastClobText(matcher)); + matcher -> replaceCastClobText(matcher), "CAST_CLOB_TEXT", + getCastClobTextPattern()); } protected Pattern getCastClobTextPattern() { @@ -60,8 +60,8 @@ protected Pattern getCastClobTextPattern() { protected Function getCastLongFunction() { return _getCastFunction( - getCastLongPattern(), "CAST_LONG", - matcher -> replaceCastLong(matcher)); + matcher -> replaceCastLong(matcher), "CAST_LONG", + getCastLongPattern()); } protected Pattern getCastLongPattern() { @@ -70,8 +70,8 @@ protected Pattern getCastLongPattern() { protected Function getCastTextFunction() { return _getCastFunction( - getCastTextPattern(), "CAST_TEXT", - matcher -> replaceCastText(matcher)); + matcher -> replaceCastText(matcher), "CAST_TEXT", + getCastTextPattern()); } protected Pattern getCastTextPattern() { @@ -233,8 +233,8 @@ protected void setFunctions(Function... functions) { } private Function _getCastFunction( - Pattern castPattern, String castName, - Function castFunction) { + Function castFunction, String castName, + Pattern castPattern) { return new Function() {