Class JsonbSupport

java.lang.Object
io.github.perplexhub.rsql.jsonb.JsonbSupport

public class JsonbSupport extends Object
Support for jsonb expression.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static jakarta.persistence.criteria.Predicate
    jsonbPathExists(jakarta.persistence.criteria.CriteriaBuilder builder, cz.jirutka.rsql.parser.ast.ComparisonNode node, jakarta.persistence.criteria.Path<?> attrPath)
    Builds a jsonb expression for a given keyPath and operator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DATE_TIME_SUPPORT

      public static boolean DATE_TIME_SUPPORT
  • Constructor Details

    • JsonbSupport

      public JsonbSupport()
  • Method Details

    • jsonbPathExists

      public static jakarta.persistence.criteria.Predicate jsonbPathExists(jakarta.persistence.criteria.CriteriaBuilder builder, cz.jirutka.rsql.parser.ast.ComparisonNode node, jakarta.persistence.criteria.Path<?> attrPath)
      Builds a jsonb expression for a given keyPath and operator.
      Parameters:
      builder - the criteria builder
      node - the comparison node
      attrPath - the attribute jsonbPath
      Returns:
      the jsonb expression