Class CastFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.cast.CastFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
public class CastFunction extends Object implements com.blazebit.persistence.spi.JpqlFunction
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
-
Constructor Summary
Constructors Constructor Description CastFunction(Class<?> castType, com.blazebit.persistence.spi.DbmsDialect dbmsDialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCastExpression(String argument)Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(com.blazebit.persistence.spi.FunctionRenderContext context)
-
-
-
Constructor Detail
-
CastFunction
public CastFunction(Class<?> castType, com.blazebit.persistence.spi.DbmsDialect dbmsDialect)
-
-
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 context)
- Specified by:
renderin interfacecom.blazebit.persistence.spi.JpqlFunction
-
-