@Override public void endVisitMapProperty(String propertyName, AutoBean<Map<?, ?>> value, MapPropertyContext ctx) { if (value == null) { return; } for (Map.Entry<?, ?> entry : value.as().entrySet()) { if (isEntityType(ctx.getKeyType()) || isValueType(ctx.getKeyType())) { serialize((BaseProxy) entry.getKey()); } if (isEntityType(ctx.getValueType()) || isValueType(ctx.getValueType())) { serialize((BaseProxy) entry.getValue()); } } } });
@Override public void endVisitCollectionProperty(String propertyName, AutoBean<Collection<?>> value, CollectionPropertyContext ctx) { if (value == null) { return; } if (isEntityType(ctx.getElementType()) || isValueType(ctx.getElementType())) { for (Object o : value.as()) { serialize((BaseProxy) o); } } }
@Override public void endVisit(AutoBean<?> bean, Context ctx) { // Avoid unnecessary method call if (bean == root) { return; } if (isEntityType(bean.getType()) || isValueType(bean.getType())) { serialize((BaseProxy) bean.as()); } }
@Override public void endVisitMapProperty(String propertyName, AutoBean<Map<?, ?>> value, MapPropertyContext ctx) { if (value == null) { return; } for (Map.Entry<?, ?> entry : value.as().entrySet()) { if (isEntityType(ctx.getKeyType()) || isValueType(ctx.getKeyType())) { serialize((BaseProxy) entry.getKey()); } if (isEntityType(ctx.getValueType()) || isValueType(ctx.getValueType())) { serialize((BaseProxy) entry.getValue()); } } } });
@Override public void endVisitMapProperty(String propertyName, AutoBean<Map<?, ?>> value, MapPropertyContext ctx) { if (value == null) { return; } for (Map.Entry<?, ?> entry : value.as().entrySet()) { if (isEntityType(ctx.getKeyType()) || isValueType(ctx.getKeyType())) { serialize((BaseProxy) entry.getKey()); } if (isEntityType(ctx.getValueType()) || isValueType(ctx.getValueType())) { serialize((BaseProxy) entry.getValue()); } } } });
@Override public void endVisitMapProperty(String propertyName, AutoBean<Map<?, ?>> value, MapPropertyContext ctx) { if (value == null) { return; } for (Map.Entry<?, ?> entry : value.as().entrySet()) { if (isEntityType(ctx.getKeyType()) || isValueType(ctx.getKeyType())) { serialize((BaseProxy) entry.getKey()); } if (isEntityType(ctx.getValueType()) || isValueType(ctx.getValueType())) { serialize((BaseProxy) entry.getValue()); } } } });
@Override public void endVisitCollectionProperty(String propertyName, AutoBean<Collection<?>> value, CollectionPropertyContext ctx) { if (value == null) { return; } if (isEntityType(ctx.getElementType()) || isValueType(ctx.getElementType())) { for (Object o : value.as()) { serialize((BaseProxy) o); } } }
@Override public void endVisit(AutoBean<?> bean, Context ctx) { // Avoid unnecessary method call if (bean == root) { return; } if (isEntityType(bean.getType()) || isValueType(bean.getType())) { serialize((BaseProxy) bean.as()); } }
@Override public void endVisit(AutoBean<?> bean, Context ctx) { // Avoid unnecessary method call if (bean == root) { return; } if (isEntityType(bean.getType()) || isValueType(bean.getType())) { serialize((BaseProxy) bean.as()); } }
@Override public void endVisit(AutoBean<?> bean, Context ctx) { // Avoid unnecessary method call if (bean == root) { return; } if (isEntityType(bean.getType()) || isValueType(bean.getType())) { serialize((BaseProxy) bean.as()); } }
@Override public void endVisitCollectionProperty(String propertyName, AutoBean<Collection<?>> value, CollectionPropertyContext ctx) { if (value == null) { return; } if (isEntityType(ctx.getElementType()) || isValueType(ctx.getElementType())) { for (Object o : value.as()) { serialize((BaseProxy) o); } } }
@Override public void endVisitCollectionProperty(String propertyName, AutoBean<Collection<?>> value, CollectionPropertyContext ctx) { if (value == null) { return; } if (isEntityType(ctx.getElementType()) || isValueType(ctx.getElementType())) { for (Object o : value.as()) { serialize((BaseProxy) o); } } }