Package io.jmix.core.repository
Record Class JmixDataRepositoryContext
java.lang.Object
java.lang.Record
io.jmix.core.repository.JmixDataRepositoryContext
- Record Components:
 fetchPlan-FetchPlanto load entities with. Default value:FetchPlan.BASEcondition-Conditionto filter entitieshints- query hints, e.g. fromio.jmix.data.PersistenceHints
- All Implemented Interfaces:
 Serializable
public record JmixDataRepositoryContext(FetchPlan fetchPlan, Condition condition, Map<String,Serializable> hints)
extends Record
implements Serializable 
Accumulates jmix-specific parameters. Supported by standard 
JmixDataRepository methods and as query parameter.- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionJmixDataRepositoryContext(FetchPlan fetchPlan, Condition condition, Map<String, Serializable> hints) Creates an instance of aJmixDataRepositoryContextrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefetchPlanrecord component.final inthashCode()Returns a hash code value for this object.hints()Returns the value of thehintsrecord component.hints(Map<String, Serializable> hints) static JmixDataRepositoryContextstatic JmixDataRepositoryContextstatic JmixDataRepositoryContextof(Map<String, Serializable> hints) final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
JmixDataRepositoryContext
public JmixDataRepositoryContext(@Nullable FetchPlan fetchPlan, @Nullable Condition condition, @Nullable Map<String, Serializable> hints) Creates an instance of aJmixDataRepositoryContextrecord class. 
 - 
 - 
Method Details
- 
hints
Returns the value of thehintsrecord component.- Returns:
 - the value of the 
hintsrecord component 
 - 
builder
- Returns:
 - a new builder for 
JmixDataRepositoryContext. 
 - 
plan
- Returns:
 - a new builder for 
JmixDataRepositoryContextwith specifiedfetchPlan. 
 - 
condition
- Returns:
 - a new builder for 
JmixDataRepositoryContextwith specifiedcondition. 
 - 
hints
- Returns:
 - a new builder for 
JmixDataRepositoryContextwith specifiedhints. 
 - 
of
- Returns:
 - a new 
JmixDataRepositoryContextwith specifiedfetchPlan. 
 - 
of
- Returns:
 - a new 
JmixDataRepositoryContextwith specifiedcondition. 
 - 
of
- Returns:
 - a new 
JmixDataRepositoryContextwith specifiedhints. 
 - 
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). - 
fetchPlan
Returns the value of thefetchPlanrecord component.- Returns:
 - the value of the 
fetchPlanrecord component 
 - 
condition
Returns the value of theconditionrecord component.- Returns:
 - the value of the 
conditionrecord component 
 
 -