Class SizeOperatorSpec
java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.SizeOperatorSpec
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
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:
addFieldsin interfaceOperatorSpec- Parameters:
cls- the TypeSpec builder to which fields will be addedprop- the property name for the operatortype- the type of the operator value
-