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 Type
    Method
    Description
    void
    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

      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