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 SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected FetchPlanprotected booleanprotected booleanprotected boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanpropertyWritingAllowed(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext) com.google.gson.JsonElementprotected com.google.gson.JsonArrayserializeCollection(Collection value, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected com.google.gson.JsonObjectserializeEntity(Entity entity, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected com.google.gson.JsonArrayserializeSimpleCollection(Collection fieldValue, MetaProperty property) protected voidwriteFields(Entity entity, com.google.gson.JsonObject jsonObject, FetchPlan fetchPlan, Set<Entity> cyclicReferences) protected voidwriteIdField(Entity entity, com.google.gson.JsonObject jsonObject) protected voidwriteSimpleProperty(com.google.gson.JsonObject jsonObject, @NotNull Object fieldValue, MetaProperty property) 
- 
Field Details- 
compactRepeatedEntitiesprotected boolean compactRepeatedEntities
- 
serializeInstanceNameprotected boolean serializeInstanceName
- 
doNotSerializeReadOnlyPropertiesprotected boolean doNotSerializeReadOnlyProperties
- 
doNotSerializeDeniedPropertiesprotected boolean doNotSerializeDeniedProperties
- 
serializeSecretFieldsprotected boolean serializeSecretFields
- 
ignoreEntityNameprotected boolean ignoreEntityName
- 
fetchPlan
 
- 
- 
Constructor Details- 
EntitySerializer
 
- 
- 
Method Details- 
serializepublic com.google.gson.JsonElement serialize(Entity entity, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
- serializein interface- com.google.gson.JsonSerializer<Entity>
 
- 
serializeEntity
- 
writeIdField
- 
propertyWritingAllowedprotected boolean propertyWritingAllowed(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext) 
- 
writeFields
- 
writeSimplePropertyprotected void writeSimpleProperty(com.google.gson.JsonObject jsonObject, @NotNull @NotNull Object fieldValue, MetaProperty property) 
- 
serializeCollectionprotected com.google.gson.JsonArray serializeCollection(Collection value, @Nullable FetchPlan fetchPlan, Set<Entity> cyclicReferences) 
- 
serializeSimpleCollectionprotected com.google.gson.JsonArray serializeSimpleCollection(Collection fieldValue, MetaProperty property) 
 
-