Class SizeOperatorSpec

java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.SizeOperatorSpec
All Implemented Interfaces:
OperatorSpec

public class SizeOperatorSpec extends Object implements OperatorSpec
Handles size operators in search requests, such as greater than, less than, and size equality. This class adds fields for these operators to the generated search request DTO.
  • Constructor Details

    • SizeOperatorSpec

      public SizeOperatorSpec()
  • Method Details

    • addFields

      public void addFields(com.squareup.javapoet.TypeSpec.Builder cls, String prop, com.squareup.javapoet.TypeName type)
      Adds fields for size operators to the given TypeSpec builder. This method creates private fields for the operator and its value, along with corresponding getter and setter methods.
      Specified by:
      addFields in interface OperatorSpec
      Parameters:
      cls - the TypeSpec builder to which fields will be added
      prop - the property name for the operator
      type - the type of the operator value