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.8.1
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 persistenceContext();

  SpiJsonReader forJson(JsonParser moreJson);

   void persistenceContextPut(Object beanId, T currentBean);

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

  ObjectMapper mapper();

  JsonParser parser();

  JsonToken nextToken() throws IOException;

  void pushPath(String path);

  void popPath();

  void beanVisitor(Object bean, Map unmappedProperties);

  Object readValueUsingObjectMapper(Class propertyType) throws IOException;

  boolean update();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy