Package io.jmix.restds.impl
Record Class RestInvoker.LoadParams
java.lang.Object
java.lang.Record
io.jmix.restds.impl.RestInvoker.LoadParams
- Record Components:
additionalParams- parameters added to the query string of the request. Names that the store sets itself (fetchPlan,limit,offset,sort,filter,returnCount) andnullvalues are not allowed.
- Enclosing class:
RestInvoker
public static record RestInvoker.LoadParams(String entityName, Object id, @Nullable String fetchPlan, Map<String,Object> additionalParams)
extends Record
Parameters of loading one entity by id.
-
Constructor Summary
ConstructorsConstructorDescriptionLoadParams(String entityName, Object id) LoadParams(String entityName, Object id, @Nullable String fetchPlan) LoadParams(String entityName, Object id, @Nullable String fetchPlan, Map<String, Object> additionalParams) Creates an instance of aLoadParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalParamsrecord component.Returns the value of theentityNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of thefetchPlanrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadParams
public LoadParams(String entityName, Object id, @Nullable String fetchPlan, Map<String, Object> additionalParams) Creates an instance of aLoadParamsrecord class.- Parameters:
entityName- the value for theentityNamerecord componentid- the value for theidrecord componentfetchPlan- the value for thefetchPlanrecord componentadditionalParams- the value for theadditionalParamsrecord component
-
LoadParams
-
LoadParams
-
-
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). -
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
fetchPlan
Returns the value of thefetchPlanrecord component.- Returns:
- the value of the
fetchPlanrecord component
-
additionalParams
Returns the value of theadditionalParamsrecord component.- Returns:
- the value of the
additionalParamsrecord component
-