Package de.calamanari.adl.sql
Record Class DefaultQueryParameter
java.lang.Object
java.lang.Record
de.calamanari.adl.sql.DefaultQueryParameter
- Record Components:
id- identifier of this parameter in the current conversion processadlSqlType- NOT NULLvalue- the value to be set (in-flight transfer type, serializable between creator and applicator)operator- context information, the operator this parameter is used with, NOT NULL (specifyMatchOperator.EQUALSif you don't know)
- All Implemented Interfaces:
QueryParameter,Serializable
public record DefaultQueryParameter(String id, AdlSqlType adlSqlType, Serializable value, de.calamanari.adl.irl.MatchOperator operator)
extends Record
implements QueryParameter
Default implementation of a
QueryParameter to pass a value to be set on a prepared statement- Author:
- Karl Eilebrecht
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultQueryParameter(String id, AdlSqlType adlSqlType, Serializable value, de.calamanari.adl.irl.MatchOperator operator) Creates an instance of aDefaultQueryParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadlSqlTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.de.calamanari.adl.irl.MatchOperatoroperator()Returns the value of theoperatorrecord component.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.calamanari.adl.sql.QueryParameter
apply, applyUnsafe, createReference
-
Constructor Details
-
DefaultQueryParameter
public DefaultQueryParameter(String id, AdlSqlType adlSqlType, Serializable value, de.calamanari.adl.irl.MatchOperator operator) Creates an instance of aDefaultQueryParameterrecord class.- Parameters:
id- the value for theidrecord componentadlSqlType- the value for theadlSqlTyperecord componentvalue- the value for thevaluerecord componentoperator- the value for theoperatorrecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceQueryParameter- Returns:
- the value of the
idrecord component
-
adlSqlType
Returns the value of theadlSqlTyperecord component.- Specified by:
adlSqlTypein interfaceQueryParameter- Returns:
- the value of the
adlSqlTyperecord component
-
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceQueryParameter- Returns:
- the value of the
valuerecord component
-
operator
public de.calamanari.adl.irl.MatchOperator operator()Returns the value of theoperatorrecord component.- Specified by:
operatorin interfaceQueryParameter- Returns:
- the value of the
operatorrecord component
-