Class EntityFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.entity.EntityFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
public class EntityFunction extends Object implements com.blazebit.persistence.spi.JpqlFunction
- Since:
- 1.3.0
- Author:
- Christian Beikov
-
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAMEstatic StringMARKER_PREDICATE
-
Constructor Summary
Constructors Constructor Description EntityFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidappendSubqueryPart(StringBuilder sb, String sqlQuery)Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()static voidremoveSyntheticPredicate(StringBuilder sb, String sqlQuery, int end)voidrender(com.blazebit.persistence.spi.FunctionRenderContext functionRenderContext)
-
-
-
Field Detail
-
FUNCTION_NAME
public static final String FUNCTION_NAME
- See Also:
- Constant Field Values
-
MARKER_PREDICATE
public static final String MARKER_PREDICATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasArguments
public boolean hasArguments()
- Specified by:
hasArgumentsin interfacecom.blazebit.persistence.spi.JpqlFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Specified by:
hasParenthesesIfNoArgumentsin interfacecom.blazebit.persistence.spi.JpqlFunction
-
getReturnType
public Class<?> getReturnType(Class<?> firstArgumentType)
- Specified by:
getReturnTypein interfacecom.blazebit.persistence.spi.JpqlFunction
-
render
public void render(com.blazebit.persistence.spi.FunctionRenderContext functionRenderContext)
- Specified by:
renderin interfacecom.blazebit.persistence.spi.JpqlFunction
-
appendSubqueryPart
public static void appendSubqueryPart(StringBuilder sb, String sqlQuery)
-
removeSyntheticPredicate
public static void removeSyntheticPredicate(StringBuilder sb, String sqlQuery, int end)
-
-