Class AbstractGroupConcatFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.groupconcat.AbstractGroupConcatFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
- Direct Known Subclasses:
DB2GroupConcatFunction,H2GroupConcatFunction,MSSQLGroupConcatFunction,MySQLGroupConcatFunction,OracleListaggGroupConcatFunction,PostgreSQLGroupConcatFunction
public abstract class AbstractGroupConcatFunction extends Object implements com.blazebit.persistence.spi.JpqlFunction
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractGroupConcatFunction.GroupConcat
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAMEprotected com.blazebit.persistence.spi.TemplateRendererrenderer
-
Constructor Summary
Constructors Constructor Description AbstractGroupConcatFunction(String template)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidappendEmulatedOrderByElementWithNulls(StringBuilder sb, Order element)protected AbstractGroupConcatFunction.GroupConcatgetGroupConcat(com.blazebit.persistence.spi.FunctionRenderContext context)Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(com.blazebit.persistence.spi.FunctionRenderContext context)abstract voidrender(com.blazebit.persistence.spi.FunctionRenderContext context, AbstractGroupConcatFunction.GroupConcat groupConcat)protected voidrender(StringBuilder sb, Order order)
-
-
-
Field Detail
-
FUNCTION_NAME
public static final String FUNCTION_NAME
- See Also:
- Constant Field Values
-
renderer
protected final com.blazebit.persistence.spi.TemplateRenderer renderer
-
-
Constructor Detail
-
AbstractGroupConcatFunction
public AbstractGroupConcatFunction(String template)
-
-
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
-
render
public abstract void render(com.blazebit.persistence.spi.FunctionRenderContext context, AbstractGroupConcatFunction.GroupConcat groupConcat)
-
getGroupConcat
protected AbstractGroupConcatFunction.GroupConcat getGroupConcat(com.blazebit.persistence.spi.FunctionRenderContext context)
-
render
protected void render(StringBuilder sb, Order order)
-
appendEmulatedOrderByElementWithNulls
protected void appendEmulatedOrderByElementWithNulls(StringBuilder sb, Order element)
-
-