Class EntitySerializer
java.lang.Object
de.xima.fc.serialize.EntitySerializer
Class for (de-)serializing entities
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DeserializedEntityDeprecated.static DeserializedEntitydeserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath) Deprecated.static DeserializedEntitydeserialize(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>> 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 voidDeprecated.In the future each domain should provide its own import/export mechanism.static voidserialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir, org.jasypt.encryption.StringEncryptor encryptor) Deprecated.In the future each domain should provide its own import/export mechanism.
-
Field Details
-
FIELD_SEPARATOR
- See Also:
-
-
Method Details
-
serialize
-
serialize
@Deprecated public static void serialize(de.xima.cmn.dao.interfaces.IEntity<Long> entity, File outDir, org.jasypt.encryption.StringEncryptor encryptor) throws Exception Deprecated.In the future each domain should provide its own import/export mechanism.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-IEntityDeserializationParamsparameter 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-IEntityto be serialized- Returns:
DeserializedEntity- Throws:
Exception- on errors during output
-
deserialize(IEntityDeserializationParams)instead