Package com.axelor.ai.tool.data
Record Class SearchRecordsTool.Input
java.lang.Object
java.lang.Record
com.axelor.ai.tool.data.SearchRecordsTool.Input
- All Implemented Interfaces:
ModelInput
- Enclosing class:
SearchRecordsTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.model()Returns the value of themodelrecord component.offset()Returns the value of theoffsetrecord component.orderBy()Returns the value of theorderByrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(String model, Criterion criteria, List<String> fields, Integer limit, Integer offset, String orderBy) Creates an instance of aInputrecord class.- Parameters:
model- the value for themodelrecord componentcriteria- the value for thecriteriarecord componentfields- the value for thefieldsrecord componentlimit- the value for thelimitrecord componentoffset- the value for theoffsetrecord componentorderBy- the value for theorderByrecord 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). -
model
Returns the value of themodelrecord component.- Specified by:
modelin interfaceModelInput- Returns:
- the value of the
modelrecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-