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
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CorePropertiesprotected FetchPlansprotected Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.gson.GsoncreateGson(FetchPlanSerializationOption... options) protected FetchPlanBuilderfindFetchPlanBuilder(Collection<FetchPlanBuilder> loadedBuilders, Class<?> aClass, String fetchPlanName) protected FetchPlanfindProcessedFetchPlan(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:FetchPlanSerializationDeserializes a JSON object to fetch plan. The method automatically identifies whether the fetch plan was serialized with theFetchPlanSerializationOption.COMPACT_FORMAToption.- Specified by:
fromJsonin interfaceFetchPlanSerialization- Parameters:
json- JSON objects that represents the fetch plan- Returns:
- a fetchPlan
-
toJson
Description copied from interface:FetchPlanSerializationSerializes a fetch plan to JSON object- Specified by:
toJsonin 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)
-