statement.setObject(i + 1, value, columns[i].getDataType().getSqlType());
DataType dataType = columns[i].getDataType(); statement.setObject(i + 1, dataType.typeCast(value), dataType.getSqlType());
    private boolean rowExist(PreparedStatement statement,            Column[] columns, ITable table, int row)            throws DataSetException, SQLException    {        for (int i = 0; i < columns.length; i++)        {            Object value = table.getValue(row, columns[i].getColumnName());            statement.setObject(i + 1, value,                    columns[i].getDataType().getSqlType());        }        ResultSet resultSet = statement.executeQuery();        try        {            resultSet.next();            return resultSet.getInt(1) > 0;        }        finally        {            resultSet.close();        }    }