All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.api.json.SpiJsonReader Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
package io.ebeaninternal.api.json;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.ebean.bean.EntityBean;
import io.ebean.bean.PersistenceContext;
import io.ebeaninternal.server.deploy.BeanDescriptor;

import java.io.IOException;
import java.util.Map;

public interface SpiJsonReader {

  PersistenceContext getPersistenceContext();

  SpiJsonReader forJson(JsonParser moreJson, boolean resetContext);

   void persistenceContextPut(Object beanId, T currentBean);

  Object persistenceContextPutIfAbsent(Object id, EntityBean bean, BeanDescriptor beanDesc);

  ObjectMapper getObjectMapper();

  JsonParser getParser();

  JsonToken nextToken() throws IOException;

  void pushPath(String path);

  void popPath();

  void beanVisitor(Object bean, Map unmappedProperties);

  Object readValueUsingObjectMapper(Class propertyType) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy