Package io.jmix.core.repository
Record Class JmixDataRepositoryContext
java.lang.Object
java.lang.Record
io.jmix.core.repository.JmixDataRepositoryContext
- Record Components:
fetchPlan
-FetchPlan
to load entities with. Default value:FetchPlan.BASE
condition
-Condition
to 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
-
Constructor Summary
ConstructorDescriptionJmixDataRepositoryContext
(FetchPlan fetchPlan, Condition condition, Map<String, Serializable> hints) Creates an instance of aJmixDataRepositoryContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thecondition
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefetchPlan
record component.final int
hashCode()
Returns a hash code value for this object.hints()
Returns the value of thehints
record component.hints
(Map<String, Serializable> hints) static JmixDataRepositoryContext
static JmixDataRepositoryContext
static JmixDataRepositoryContext
of
(Map<String, Serializable> hints) final String
toString()
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 aJmixDataRepositoryContext
record class.
-
-
Method Details
-
hints
Returns the value of thehints
record component.- Returns:
- the value of the
hints
record component
-
builder
- Returns:
- a new builder for
JmixDataRepositoryContext
.
-
plan
- Returns:
- a new builder for
JmixDataRepositoryContext
with specifiedfetchPlan
.
-
condition
- Returns:
- a new builder for
JmixDataRepositoryContext
with specifiedcondition
.
-
hints
- Returns:
- a new builder for
JmixDataRepositoryContext
with specifiedhints
.
-
of
- Returns:
- a new
JmixDataRepositoryContext
with specifiedfetchPlan
.
-
of
- Returns:
- a new
JmixDataRepositoryContext
with specifiedcondition
.
-
of
- Returns:
- a new
JmixDataRepositoryContext
with 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 thefetchPlan
record component.- Returns:
- the value of the
fetchPlan
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-