Class ReplaceFunction
java.lang.Object
com.blazebit.persistence.impl.function.replace.ReplaceFunction
- All Implemented Interfaces:
JpqlFunction
public class ReplaceFunction extends Object implements JpqlFunction
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAME -
Constructor Summary
Constructors Constructor Description ReplaceFunction() -
Method Summary
Modifier and Type Method Description StringgetReplaceString(String argument, String search, String replace)Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(FunctionRenderContext context)
-
Field Details
-
FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ReplaceFunction
public ReplaceFunction()
-
-
Method Details
-
hasArguments
public boolean hasArguments()- Specified by:
hasArgumentsin interfaceJpqlFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()- Specified by:
hasParenthesesIfNoArgumentsin interfaceJpqlFunction
-
getReturnType
- Specified by:
getReturnTypein interfaceJpqlFunction
-
render
- Specified by:
renderin interfaceJpqlFunction
-
getReplaceString
-