public class RuntimeCodecWrapper<FROM,TO> extends Object implements info.archinnov.achilles.type.codec.Codec<FROM,TO>
| Modifier and Type | Field and Description |
|---|---|
Optional<String> |
codecName |
Class<FROM> |
sourceType |
Class<TO> |
targetType |
| Constructor and Description |
|---|
RuntimeCodecWrapper(Class<FROM> sourceType,
Class<TO> targetType,
Optional<String> codecName) |
| Modifier and Type | Method and Description |
|---|---|
FROM |
decode(TO fromCassandra) |
TO |
encode(FROM fromJava) |
void |
inject(Map<info.archinnov.achilles.type.codec.CodecSignature<?,?>,info.archinnov.achilles.type.codec.Codec<?,?>> runtimeCodecRegistry) |
Class<FROM> |
sourceType() |
Class<TO> |
targetType() |
public TO encode(FROM fromJava) throws info.archinnov.achilles.exception.AchillesTranscodingException
public FROM decode(TO fromCassandra) throws info.archinnov.achilles.exception.AchillesTranscodingException
public void inject(Map<info.archinnov.achilles.type.codec.CodecSignature<?,?>,info.archinnov.achilles.type.codec.Codec<?,?>> runtimeCodecRegistry)
Copyright © 2012-2021. All Rights Reserved.