Class DefaultEntityWriter


  • public class DefaultEntityWriter
    extends ATypeAdapter<de.xima.cmn.dao.interfaces.IEntity<Long>>
    Default writer for entities that serializes the entity based on ExportDetails
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • write

        public void write​(com.google.gson.stream.JsonWriter out,
                          de.xima.cmn.dao.interfaces.IEntity<Long> value)
                   throws IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<de.xima.cmn.dao.interfaces.IEntity<Long>>
        Throws:
        IOException
      • read

        public de.xima.cmn.dao.interfaces.IEntity<Long> read​(com.google.gson.stream.JsonReader in)
                                                      throws IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<de.xima.cmn.dao.interfaces.IEntity<Long>>
        Throws:
        IOException