Package io.jmix.core.impl.serialization
Class EntitySerializationImpl.EntitySerializer
java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationImpl.EntitySerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<Entity>
- Enclosing class:
- EntitySerializationImpl
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected FetchPlan
protected boolean
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
propertyWritingAllowed
(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext) com.google.gson.JsonElement
protected com.google.gson.JsonArray
serializeCollection
(Collection value, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected com.google.gson.JsonObject
serializeEntity
(Entity entity, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected com.google.gson.JsonArray
serializeSimpleCollection
(Collection fieldValue, MetaProperty property) protected void
writeFields
(Entity entity, com.google.gson.JsonObject jsonObject, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected void
writeIdField
(Entity entity, com.google.gson.JsonObject jsonObject) protected void
writeSimpleProperty
(com.google.gson.JsonObject jsonObject, @NotNull Object fieldValue, MetaProperty property)
-
Field Details
-
compactRepeatedEntities
protected boolean compactRepeatedEntities -
serializeInstanceName
protected boolean serializeInstanceName -
doNotSerializeReadOnlyProperties
protected boolean doNotSerializeReadOnlyProperties -
doNotSerializeDeniedProperties
protected boolean doNotSerializeDeniedProperties -
serializeSecretFields
protected boolean serializeSecretFields -
ignoreEntityName
protected boolean ignoreEntityName -
fetchPlan
-
-
Constructor Details
-
EntitySerializer
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(Entity entity, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Entity>
-
serializeEntity
-
writeIdField
-
propertyWritingAllowed
protected boolean propertyWritingAllowed(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext) -
writeFields
-
writeSimpleProperty
protected void writeSimpleProperty(com.google.gson.JsonObject jsonObject, @NotNull @NotNull Object fieldValue, MetaProperty property) -
serializeCollection
protected com.google.gson.JsonArray serializeCollection(Collection value, @Nullable FetchPlan fetchPlan, Set<Entity> cyclicReferences) -
serializeSimpleCollection
protected com.google.gson.JsonArray serializeSimpleCollection(Collection fieldValue, MetaProperty property)
-