Class SqlCriterion
java.lang.Object
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.AbstractCriterion
org.sentrysoftware.maven.metricshub.connector.producer.model.criteria.SqlCriterion
Represents a criterion for filtering based on a SQL query.
- See Also:
-
Constructor Summary
ConstructorDescriptionSqlCriterion
(com.fasterxml.jackson.databind.JsonNode criterion) Constructs SqlCriterion with the specified JSON criterion. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ICriterionVisitor visitor) Accepts the given visitor.getQuery()
Gets the query from the current SQL criterion, ornull
if not present.
-
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
Gets the query from the current SQL criterion, ornull
if not present.- Returns:
- The query from the criterion, or
null
if not present.
-
accept
Description copied from class:AbstractCriterion
Accepts the given visitor.- Specified by:
accept
in classAbstractCriterion
- Parameters:
visitor
- The visitor class with its specific business logic.
-