public class EntitySerializer extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
FIELD_SEPARATOR  | 
| Modifier and Type | Method and Description | 
|---|---|
static DeserializedEntity | 
convert(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Serializes the given entity and return as  
DeserializedEntity | 
static DeserializedEntity | 
deserialize(IEntityContext ec,
           InputStream is,
           String baseDir,
           String subDirPath)
Deserializes the given  
InputStream to an DeserializedEntity | 
static DeserializedEntity | 
deserialize(IEntityContext ec,
           InputStream is,
           String baseDir,
           String subDirPath,
           org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor)
Deserializes the given  
InputStream to an DeserializedEntity | 
static de.xima.cmn.dao.interfaces.IEntity<Long> | 
deserialize(String json,
           Type type,
           org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor)
Deserializes JSON string to a FORMCYCLE entity 
 | 
static void | 
serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
         File outDir)
Serializes the given entity to the given file 
 | 
static void | 
serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
         File outDir,
         org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor)
Serializes the given entity to the given file 
 | 
public static final String FIELD_SEPARATOR
public static final DeserializedEntity convert(de.xima.cmn.dao.interfaces.IEntity<Long> entity) throws Exception
DeserializedEntityentity - IEntity to be serializedDeserializedEntityException - on errors during outputpublic static final void serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir) throws Exception
public static final void serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir, org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor) throws Exception
public static final DeserializedEntity deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath) throws Exception
InputStream to an DeserializedEntityec - IEntityContext to be used for creating the import configis - InputStream providing the databaseDir - String base directory of the import extracted filesubDirPath - String determines the type of entity to deserializeDeserializedEntityException - on errors during deserializepublic static final DeserializedEntity deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath, org.jasypt.encryption.pbe.StandardPBEStringEncryptor encryptor) throws Exception
InputStream to an DeserializedEntityec - IEntityContext to be used for creating the import configis - InputStream providing the databaseDir - String base directory of the import extracted filesubDirPath - String determines the type of entity to deserializeencryptor - StandardPBEStringEncryptor encryptor for String values. Fields that are encrypted
 will be decrypted using this encryptorDeserializedEntityException - on errors during deserializeCopyright © 2021 XIMA MEDIA GmbH. All rights reserved.