- All Implemented Interfaces:
- DataTypesManager.Coercion, DataTypesManager.CoercionWithLocale
public class CoerceToTimestamp
extends CoerceToTime
Utility class to force instantiation of Timestamp objects.
If a plugin provides a datasource with a timestamp type which
is not java.sql.Timestamp, then the plugin will have
to perform a conversion or coercion between
its Timestamp type and java.sql.Timestamp if it's not automatic.
Postgresql JDBC uses java.sql.Timestamp, so no problem
Oracle uses oracle.sql.TIMESTAMP which is automatically
converted, so this coercion is enough