Class PersistenceEndsWithFunction
java.lang.Object
com.blazebit.expression.persistence.function.PersistenceEndsWithFunction
- All Implemented Interfaces:
PersistenceFunctionRenderer,Serializable
public class PersistenceEndsWithFunction extends Object implements PersistenceFunctionRenderer, Serializable
- Since:
- 1.0.0
- Author:
- Christian Beikov
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description static voidaddFunction(com.blazebit.domain.boot.model.DomainBuilder domainBuilder)Adds the ENDS_WITH function to the domain builder.voidrender(com.blazebit.domain.runtime.model.DomainFunction function, com.blazebit.domain.runtime.model.DomainType returnType, PersistenceDomainFunctionArgumentRenderers argumentRenderers, StringBuilder sb, PersistenceExpressionSerializer serializer)Renders the given domain function with the given return type and arguments to the given StringBuilder.booleanrendersPredicate()Returns whether the renderer renders a predicate or an expression.
-
Method Details
-
addFunction
public static void addFunction(com.blazebit.domain.boot.model.DomainBuilder domainBuilder)Adds the ENDS_WITH function to the domain builder.- Parameters:
domainBuilder- The domain builder
-
render
public void render(com.blazebit.domain.runtime.model.DomainFunction function, com.blazebit.domain.runtime.model.DomainType returnType, PersistenceDomainFunctionArgumentRenderers argumentRenderers, StringBuilder sb, PersistenceExpressionSerializer serializer)Description copied from interface:PersistenceFunctionRendererRenders the given domain function with the given return type and arguments to the given StringBuilder.- Specified by:
renderin interfacePersistenceFunctionRenderer- Parameters:
function- The domain functionreturnType- The function return typeargumentRenderers- The argument renderers for the argumentssb- The StringBuilder to render toserializer- The serializer
-
rendersPredicate
public boolean rendersPredicate()Description copied from interface:PersistenceFunctionRendererReturns whether the renderer renders a predicate or an expression.- Specified by:
rendersPredicatein interfacePersistenceFunctionRenderer- Returns:
- whether a predicate or expresion is rendered
-