public final class CommitTimestamp extends Object
of(Class)should be used to resolve a specific value of a pointed class which is converted then to the
CommitTimestamp.CommitTimestampDecorator. It should be used when a database column has type of Timestamp with an option "allow_commit_timestamp" and the business logic needs to manage in runtime when the PENDING_COMMIT_TIMESTAMP should be stored into this field.
|Modifier and Type||Class and Description|
A specific decorator of the "to timestamp" function that any custom converter should follow to support "CommitTimestamp" feature.
|Modifier and Type||Method and Description|
Creates a value for
public static <T> T of(Class<T> timestampClass) throws IllegalArgumentException
T- type of the class. Supported by-default types are:
timestampClass- a class to be presented as a Timestamp in the database column.
IllegalArgumentException- when the
timestampClasswas not registered with the method
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.