public class EntityTypeAdapter extends com.google.gson.TypeAdapter<Object>
IUUIDEntity
s into entity descriptions containing
their uuid and class (with a few exceptions, see implementation details).Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZATION_KEY_DESC_CLASS_NAME |
static String |
SERIALIZATION_KEY_DESC_NAME |
static String |
SERIALIZATION_KEY_DESC_UUID |
static String |
SERIALIZATION_KEY_UUID_ENTITY |
Constructor and Description |
---|
EntityTypeAdapter(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<Object> type,
EExportContext exportContext,
org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
de.xima.cmn.dao.interfaces.IEntity<Long> |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter writer,
Object entity) |
public static final String SERIALIZATION_KEY_UUID_ENTITY
public static final String SERIALIZATION_KEY_DESC_UUID
public static final String SERIALIZATION_KEY_DESC_NAME
public static final String SERIALIZATION_KEY_DESC_CLASS_NAME
public EntityTypeAdapter(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<Object> type, EExportContext exportContext, org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor)
public void write(com.google.gson.stream.JsonWriter writer, Object entity) throws IOException
write
in class com.google.gson.TypeAdapter<Object>
IOException
public de.xima.cmn.dao.interfaces.IEntity<Long> read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<Object>
IOException
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.