Package com.blazebit.persistence.spi
Interface FunctionRenderContext
public interface FunctionRenderContext
Interface implemented by the criteria provider.
Abstraction to allow building structured output. This is used for rendering
dbms specific code for a
JpqlFunction
.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(int index) Adds a binding to the argument of the given index to the render context.void
Adds the given chunk to the render context.getArgument
(int index) Returns the string representation of the argument at the given index.int
Returns the size of the arguments given to this function.
-
Method Details
-
getArgumentsSize
int getArgumentsSize()Returns the size of the arguments given to this function.- Returns:
- the size of function arguments
-
getArgument
Returns the string representation of the argument at the given index.- Parameters:
index
- The index of the wanted argument- Returns:
- the string representation of the wanted argument
-
addArgument
void addArgument(int index) Adds a binding to the argument of the given index to the render context.- Parameters:
index
- The index of the wanted argument
-
addChunk
Adds the given chunk to the render context.- Parameters:
chunk
- The chunk to add
-