Class CastFunction
java.lang.Object
com.blazebit.persistence.impl.function.cast.CastFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
DB2CastFunction
public class CastFunction extends Object implements JpqlFunction
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>castTypeprotected StringdefaultSqlCastTypeprotected StringfunctionName -
Constructor Summary
Constructors Constructor Description CastFunction(Class<?> castType, DbmsDialect dbmsDialect) -
Method Summary
Modifier and Type Method Description StringgetCastExpression(String argument)Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(FunctionRenderContext context)
-
Field Details
-
Constructor Details
-
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
-
getCastExpression
-