Record Class ColumnCondition
java.lang.Object
java.lang.Record
de.calamanari.adl.sql.cnv.ColumnCondition
- Record Components:
type- tells how this condition should be translatedoperator- the operator to compare the column against the valuecolumn- to be comparedparameters- one or multiple prepared parameters, seeColumnConditionType
public record ColumnCondition(ColumnConditionType type, de.calamanari.adl.irl.MatchOperator operator, AdlSqlColumn column, List<QueryParameter> parameters)
extends Record
A
ColumnCondition carries the meta data and the prepared parameters related to a single column, which can either be a DataColumn (means a
column related to an argName) or a FilterColumn to be tested against a value.
Column conditions apply to value matches and also to reference matches if the related column or referenced column has filters.
Additional column conditions can occur in the main WHERE-clause if the table the query is starting with has table filter columns.
- Author:
- Karl Eilebrecht
-
Constructor Summary
ConstructorsConstructorDescriptionColumnCondition(ColumnConditionType type, de.calamanari.adl.irl.MatchOperator operator, AdlSqlColumn column, List<QueryParameter> parameters) Creates an instance of aColumnConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.de.calamanari.adl.irl.MatchOperatoroperator()Returns the value of theoperatorrecord component.Returns the value of theparametersrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ColumnCondition
public ColumnCondition(ColumnConditionType type, de.calamanari.adl.irl.MatchOperator operator, AdlSqlColumn column, List<QueryParameter> parameters) Creates an instance of aColumnConditionrecord class.- Parameters:
type- the value for thetyperecord componentoperator- the value for theoperatorrecord componentcolumn- the value for thecolumnrecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
-
operator
-
column
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-