public class TemporalToUUIDCodec<EXTERNAL extends TemporalAccessor> extends ConvertingCodec<EXTERNAL,UUID>
internalCodec, javaType| Constructor and Description |
|---|
TemporalToUUIDCodec(TypeCodec<UUID> targetCodec,
TemporalToTemporalCodec<EXTERNAL,Instant> instantCodec,
TimeUUIDGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
UUID |
externalToInternal(EXTERNAL value)
Converts the external representation of a value (i.e., the value, as produced by a connector)
to its internal representation (i.e., the Java type that matches the target CQL type).
|
EXTERNAL |
internalToExternal(UUID value)
Converts the internal representation of a value (i.e., the Java type that matches the target
CQL type) to its external representation (i.e., the value, as consumed by a connector).
|
decode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parsepublic TemporalToUUIDCodec(TypeCodec<UUID> targetCodec, TemporalToTemporalCodec<EXTERNAL,Instant> instantCodec, TimeUUIDGenerator generator)
public EXTERNAL internalToExternal(UUID value)
ConvertingCodecinternalToExternal in class ConvertingCodec<EXTERNAL extends TemporalAccessor,UUID>value - the value's internal form.public UUID externalToInternal(EXTERNAL value)
ConvertingCodecexternalToInternal in class ConvertingCodec<EXTERNAL extends TemporalAccessor,UUID>value - the value's external form.Copyright © 2017–2021 DataStax. All rights reserved.