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 aJpqlFunction
.- Since:
- 1.0.0
- Author:
- Christian Beikov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addArgument(int index)
Adds a binding to the argument of the given index to the render context.void
addChunk(String chunk)
Adds the given chunk to the render context.String
getArgument(int index)
Returns the string representation of the argument at the given index.int
getArgumentsSize()
Returns the size of the arguments given to this function.
-
-
-
Method Detail
-
getArgumentsSize
int getArgumentsSize()
Returns the size of the arguments given to this function.- Returns:
- the size of function arguments
-
getArgument
String getArgument(int index)
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
void addChunk(String chunk)
Adds the given chunk to the render context.- Parameters:
chunk
- The chunk to add
-
-