Package overit.geocall.da
Record Class SqlCondition
java.lang.Object
java.lang.Record
overit.geocall.da.SqlCondition
-
Constructor Summary
ConstructorsConstructorDescriptionSqlCondition(String fieldName, String prefix, SqlOperator sqlOperator, String valuePlaceholder, Object value) Creates a newSqlConditionusing the provided arguments. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.prefix()Returns the value of theprefixrecord component.Returns the value of thesqlOperatorrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Returns the value of thevaluePlaceholderrecord component.
-
Constructor Details
-
SqlCondition
public SqlCondition(String fieldName, String prefix, SqlOperator sqlOperator, String valuePlaceholder, Object value) Creates a newSqlConditionusing the provided arguments.- Parameters:
fieldName-Stringabout a field name.prefix-Stringabout a possible prefix to prepend to the field name when constructing the relatedSQLclause.sqlOperator-SqlOperatorabout the operator to use when constructing the relatedSQLclause.valuePlaceholder-Stringabout the value placeholder useful when constructing the relatedSQLclause.value-Objectabout the condition value.
-
-
Method Details
-
getSqlClause
- Returns:
- a
Stringabout the relatedSQLclause created using thisSqlConditioninstance.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
sqlOperator
Returns the value of thesqlOperatorrecord component.- Returns:
- the value of the
sqlOperatorrecord component
-
valuePlaceholder
Returns the value of thevaluePlaceholderrecord component.- Returns:
- the value of the
valuePlaceholderrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-