Java SQL ResultSet Read getURI(ResultSet resultSet, String columnLabel)

Here you can find the source of getURI(ResultSet resultSet, String columnLabel)

Description

get URI

License

Open Source License

Declaration

public static URI getURI(ResultSet resultSet, String columnLabel) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.URI;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Main {
    public static URI getURI(ResultSet resultSet, String columnLabel) throws SQLException {
        return toURI(resultSet.getString(columnLabel));
    }//from  w  ww.j a va 2s  . c o m

    public static URI toURI(String uri) {
        if (uri == null)
            return null;
        return URI.create(uri);
    }
}

Related

  1. getRows(final ResultSet rs)
  2. getRows(ResultSet table)
  3. getRsCloumns(ResultSet rs)
  4. getRSData(ResultSet rs, String columnName, int jdbcType)
  5. getStatement(ResultSet resultSet)
  6. getURI(ResultSet rs, int col)
  7. getUUIDFromResultSet(ResultSet rset, String name)
  8. getValue(int type, ResultSet resultSet, int columnIndex)
  9. getValue(ResultSet result, String strField)