presto-base-jdbc/src/main/java/io/prestosql/plugin/jdbc/StandardColumnMappings.java/StandardColumnMappings/smallintWriteFunction
class StandardColumnMappings:    public static LongWriteFunction smallintWriteFunction()
    {
        return (statement, index, value) -> statement.setShort(index, Shorts.checkedCast(value));
    }