private static void putValues(PreparedStatement statement, Object... values) throws SQLException {
        int i = 1;
        for (Object parameter : values) {
            if (parameter instanceof String) {
                statement.setString(i, (String) parameter);
            } else if (parameter instanceof Integer) {
                statement.setInt(i, (Integer) parameter);
            } else if (parameter instanceof Long) {
                statement.setLong(i, (Long) parameter);
            } else if (parameter instanceof Float) {
                statement.setFloat(i, (Float) parameter);
            } else if (parameter instanceof Double) {
                statement.setDouble(i, (Double) parameter);
            } else if (parameter instanceof Date) {
                statement.setDate(i, (Date) parameter);
            } else if (parameter instanceof Blob) {
                statement.setBlob(i, (Blob) parameter);
            } else if (parameter instanceof Timestamp) {
                statement.setTimestamp(i, (Timestamp) parameter);
            }
            i++;
        }
    }