Package com.axelor.workflow
Record Class NullableMatch
java.lang.Object
java.lang.Record
com.axelor.workflow.NullableMatch
A JPQL equality that also matches null, since
= :param never matches a null column.-
Constructor Summary
ConstructorsConstructorDescriptionNullableMatch(String path, String param, Object value) Creates an instance of aNullableMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionBinds the parameter whenclause()names one.clause()path IS NULLwhen the value is null, otherwisepath = :param.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.param()Returns the value of theparamrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
NullableMatch
Creates an instance of aNullableMatchrecord class.- Parameters:
path- the value for thepathrecord componentparam- the value for theparamrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
clause
path IS NULLwhen the value is null, otherwisepath = :param. -
bind
Binds the parameter whenclause()names one. -
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
param
Returns the value of theparamrecord component.- Returns:
- the value of the
paramrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-