Package de.xima.fc.serialize
Class EntitySerializer
- java.lang.Object
-
- de.xima.fc.serialize.EntitySerializer
-
public class EntitySerializer extends Object
Class for (de-)serializing entities- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_SEPARATOR
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DeserializedEntity
convert(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Deprecated.static DeserializedEntity
deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath)
Deprecated.usedeserialize(IEntityDeserializationParams)
insteadstatic DeserializedEntity
deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath, org.jasypt.encryption.StringEncryptor encryptor)
Deprecated.usedeserialize(IEntityDeserializationParams)
insteadstatic IEntityDeserializationResult<? extends de.xima.cmn.dao.interfaces.IEntity<Long>>
deserialize(IEntityDeserializationParams params)
Deserializes an entity based on the given parametersstatic de.xima.cmn.dao.interfaces.IEntity<Long>
deserialize(String json, Type type, org.jasypt.encryption.StringEncryptor encryptor)
Deprecated.usedeserialize(IEntityDeserializationParams)
insteadstatic void
serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir)
Serializes the given entity to the given filestatic void
serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir, org.jasypt.encryption.StringEncryptor encryptor)
Serializes the given entity to the given file
-
-
-
Field Detail
-
FIELD_SEPARATOR
public static final String FIELD_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
public static void serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir) throws Exception
Serializes the given entity to the given file
-
serialize
public static void serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir, org.jasypt.encryption.StringEncryptor encryptor) throws Exception
Serializes the given entity to the given file
-
deserialize
public static IEntityDeserializationResult<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> deserialize(IEntityDeserializationParams params) throws IOException
Deserializes an entity based on the given parameters- Parameters:
params
-IEntityDeserializationParams
parameter used for deserialization- Returns:
DeserializedEntity
- Throws:
IOException
- on errors during entity deserialization- Since:
- 7.0.0
-
deserialize
@Deprecated public static DeserializedEntity deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath) throws Exception
Deprecated.usedeserialize(IEntityDeserializationParams)
instead- Throws:
Exception
-
deserialize
@Deprecated public static DeserializedEntity deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath, org.jasypt.encryption.StringEncryptor encryptor) throws Exception
Deprecated.usedeserialize(IEntityDeserializationParams)
instead- Throws:
Exception
-
deserialize
@Deprecated public static de.xima.cmn.dao.interfaces.IEntity<Long> deserialize(String json, Type type, org.jasypt.encryption.StringEncryptor encryptor)
Deprecated.usedeserialize(IEntityDeserializationParams)
instead- Since:
- 6.4.0
-
convert
@Deprecated public static DeserializedEntity convert(de.xima.cmn.dao.interfaces.IEntity<Long> entity) throws Exception
Deprecated.Serializes the given entity and return asDeserializedEntity
- Parameters:
entity
-IEntity
to be serialized- Returns:
DeserializedEntity
- Throws:
Exception
- on errors during output
-
-