Package de.xima.fc.serialize
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 final DeserializedEntity
Deprecated.static final DeserializedEntity
deserialize
(IEntityContext ec, InputStream is, String baseDir, String subDirPath) Deprecated.static final DeserializedEntity
deserialize
(IEntityContext ec, InputStream is, String baseDir, String subDirPath, org.jasypt.encryption.StringEncryptor encryptor) Deprecated.usedeserialize(IEntityDeserializationParams)
insteadstatic final 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 final void
Serializes the given entity to the given filestatic final 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 Details
-
FIELD_SEPARATOR
- See Also:
-
-
Method Details
-
serialize
public static final 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 final 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 final 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 final DeserializedEntity deserialize(IEntityContext ec, InputStream is, String baseDir, String subDirPath) throws Exception Deprecated.usedeserialize(IEntityDeserializationParams)
instead- Throws:
Exception
-
deserialize
@Deprecated public static final 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 final 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
-
deserialize(IEntityDeserializationParams)
instead