public class AnterosProxyCollectionSerializer extends com.fasterxml.jackson.databind.JsonSerializer<Object> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
| Modifier and Type | Field and Description |
|---|---|
protected int |
_features |
protected com.fasterxml.jackson.databind.JsonSerializer<Object> |
_serializer |
protected br.com.anteros.persistence.session.SQLSessionFactory |
_sessionFactory |
| Constructor and Description |
|---|
AnterosProxyCollectionSerializer(com.fasterxml.jackson.databind.JsonSerializer<?> serializer,
int features,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonSerializer<?> |
createContextual(com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.BeanProperty property) |
protected Object |
findLazyValue(br.com.anteros.persistence.proxy.collection.AnterosPersistentCollection coll) |
protected Object |
findProxied(Object value) |
boolean |
isEmpty(Object value) |
void |
serialize(Object value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(Object value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
protected boolean |
usesLazyLoading(com.fasterxml.jackson.databind.BeanProperty property) |
protected final int _features
protected final com.fasterxml.jackson.databind.JsonSerializer<Object> _serializer
protected final br.com.anteros.persistence.session.SQLSessionFactory _sessionFactory
public AnterosProxyCollectionSerializer(com.fasterxml.jackson.databind.JsonSerializer<?> serializer,
int features,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public boolean isEmpty(Object value)
isEmpty in class com.fasterxml.jackson.databind.JsonSerializer<Object>public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<Object>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic void serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serializeWithType in class com.fasterxml.jackson.databind.JsonSerializer<Object>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected Object findLazyValue(br.com.anteros.persistence.proxy.collection.AnterosPersistentCollection coll)
protected boolean usesLazyLoading(com.fasterxml.jackson.databind.BeanProperty property)
public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.BeanProperty property)
throws com.fasterxml.jackson.databind.JsonMappingException
createContextual in interface com.fasterxml.jackson.databind.ser.ContextualSerializercom.fasterxml.jackson.databind.JsonMappingExceptionCopyright © 2020 Anteros Tecnologia. All rights reserved.