Package io.jmix.core.impl.serialization
Class FetchPlanSerializationImpl
java.lang.Object
io.jmix.core.impl.serialization.FetchPlanSerializationImpl
- All Implemented Interfaces:
FetchPlanSerialization
@Component("core_FetchPlanSerialization")
public class FetchPlanSerializationImpl
extends Object
implements FetchPlanSerialization
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected CoreProperties
protected FetchPlans
protected Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gson.Gson
createGson
(FetchPlanSerializationOption... options) protected FetchPlanBuilder
findFetchPlanBuilder
(Collection<FetchPlanBuilder> loadedBuilders, Class<?> aClass, String fetchPlanName) protected FetchPlan
findProcessedFetchPlan
(Collection<FetchPlan> processedFetchPlans, Class<?> aClass, String fetchPlanName) Deserializes a JSON object to fetch plan.toJson
(FetchPlan fetchPlan, FetchPlanSerializationOption... options) Serializes a fetch plan to JSON object
-
Field Details
-
metadata
-
fetchPlans
-
coreProperties
-
-
Constructor Details
-
FetchPlanSerializationImpl
public FetchPlanSerializationImpl()
-
-
Method Details
-
fromJson
Description copied from interface:FetchPlanSerialization
Deserializes a JSON object to fetch plan. The method automatically identifies whether the fetch plan was serialized with theFetchPlanSerializationOption.COMPACT_FORMAT
option.- Specified by:
fromJson
in interfaceFetchPlanSerialization
- Parameters:
json
- JSON objects that represents the fetch plan- Returns:
- a fetchPlan
-
toJson
Description copied from interface:FetchPlanSerialization
Serializes a fetch plan to JSON object- Specified by:
toJson
in interfaceFetchPlanSerialization
- Parameters:
fetchPlan
- a fetchPlanoptions
- options specifying how a JSON object graph should be serialized- Returns:
- a string that represents a JSON object
-
createGson
-
findFetchPlanBuilder
@Nullable protected FetchPlanBuilder findFetchPlanBuilder(Collection<FetchPlanBuilder> loadedBuilders, Class<?> aClass, String fetchPlanName) -
findProcessedFetchPlan
@Nullable protected FetchPlan findProcessedFetchPlan(Collection<FetchPlan> processedFetchPlans, Class<?> aClass, String fetchPlanName)
-