Record Class SearchField
java.lang.Object
java.lang.Record
nl.datasteel.crudcraft.codegen.writer.search.SearchField
public record SearchField(FieldDescriptor descriptor, String property, String path, SearchOperator operator)
extends Record
Holds field metadata together with the operator used for generating
predicates. The
property value corresponds to the field name in the
generated search request object while path contains the criteria API
path expression.-
Constructor Summary
ConstructorsConstructorDescriptionSearchField(FieldDescriptor descriptor, String property, String path, SearchOperator operator) Creates an instance of aSearchFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.operator()Returns the value of theoperatorrecord component.path()Returns the value of thepathrecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SearchField
public SearchField(FieldDescriptor descriptor, String property, String path, SearchOperator operator) Creates an instance of aSearchFieldrecord class.- Parameters:
descriptor- the value for thedescriptorrecord componentproperty- the value for thepropertyrecord componentpath- the value for thepathrecord 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). -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-