Class CommitTimestamp.CommitTimestampDecorator<S>
java.lang.Object
com.google.cloud.spring.data.spanner.core.convert.CommitTimestamp.CommitTimestampDecorator<S>
- Type Parameters:
S
- a source type of converter.
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<S,
com.google.cloud.Timestamp>
- Enclosing class:
- CommitTimestamp
public abstract static class CommitTimestamp.CommitTimestampDecorator<S>
extends Object
implements org.springframework.core.convert.converter.Converter<S,com.google.cloud.Timestamp>
A specific decorator of the "to timestamp" function that any custom converter should follow to
support "CommitTimestamp" feature.
-
Constructor Summary
ModifierConstructorDescriptionprotected
CommitTimestampDecorator
(S commitTimestamp, Function<S, com.google.cloud.Timestamp> converter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
CommitTimestampDecorator
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<S,
com.google.cloud.Timestamp>
-