Class TimestampUtils
java.lang.Object
io.debezium.connector.oracle.util.TimestampUtils
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ZoneIdprivate static final DateTimeFormatterprivate static final DateTimeFormatterprivate static final Patternprivate static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstantConvert the supplied timestamp without a timezone.static StringtoSqlCompliantFunctionCall(String value) Converts the supplied string-value into a SQL compliantTO_TIMESTAMPstring.
-
Field Details
-
GMT_ZONE_ID
-
TIMESTAMP_FORMATTER
-
TIMESTAMP_AM_PM_SHORT_FORMATTER
-
TO_TIMESTAMP
-
TO_DATE
-
-
Constructor Details
-
TimestampUtils
private TimestampUtils()
-
-
Method Details
-
convertTimestampNoZoneToInstant
Convert the supplied timestamp without a timezone.- Parameters:
value- the string-value to be converted- Returns:
- the returned converted value or
nullif the value could not be converted
-
toSqlCompliantFunctionCall
Converts the supplied string-value into a SQL compliantTO_TIMESTAMPstring.- Parameters:
value- the string-value to be converted- Returns:
- the
TO_TIMESTAMPfunction call
-