java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.SqlCriterion

public class SqlCriterion extends AbstractCriterion
Represents a criterion for filtering based on a SQL query.
See Also:
  • Constructor Details

    • SqlCriterion

      public SqlCriterion(com.fasterxml.jackson.databind.JsonNode criterion)
      Constructs SqlCriterion with the specified JSON criterion.
      Parameters:
      criterion - The JSON criterion for SQL check.
  • Method Details

    • getQuery

      public String getQuery()
      Gets the query from the current SQL criterion, or null if not present.
      Returns:
      The query from the criterion, or null if not present.
    • accept

      public void accept(ICriterionVisitor visitor)
      Description copied from class: AbstractCriterion
      Accepts the given visitor.
      Specified by:
      accept in class AbstractCriterion
      Parameters:
      visitor - The visitor class with its specific business logic.