Java 8 SQLClientInfoException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SQLClientInfoException class.

This code example shows how to use the following methods:initCause
This code example shows how to use the following methods:initCause
This code example shows how to use the following methods:initCause
		try { 
			getClientInfoProviderImpl().setClientInfo(this, properties);
		} catch (SQLClientInfoException ciEx) {
			throw ciEx;
		} catch (SQLException sqlEx) {
			SQLClientInfoException clientInfoEx = new SQLClientInfoException();
			clientInfoEx.initCause(sqlEx);
 
			throw clientInfoEx;
		} 
	} 
 
	public void setClientInfo(String name, String value) throws SQLClientInfoException {
		try { 
			getClientInfoProviderImpl().setClientInfo(this, name, value);
		} catch (SQLClientInfoException ciEx) {
			throw ciEx;
		} catch (SQLException sqlEx) {
			SQLClientInfoException clientInfoEx = new SQLClientInfoException();
			clientInfoEx.initCause(sqlEx);
4
CodeRank
This code example shows how to use the following methods:initCause
		try { 
			getClientInfoProviderImpl().setClientInfo(this, properties);
		} catch (SQLClientInfoException ciEx) {
			throw ciEx;
		} catch (SQLException sqlEx) {
			SQLClientInfoException clientInfoEx = new SQLClientInfoException();
			clientInfoEx.initCause(sqlEx);
 
			throw clientInfoEx;
		} 
	} 
 
	public void setClientInfo(String name, String value) throws SQLClientInfoException {
		try { 
			getClientInfoProviderImpl().setClientInfo(this, name, value);
		} catch (SQLClientInfoException ciEx) {
			throw ciEx;
		} catch (SQLException sqlEx) {
			SQLClientInfoException clientInfoEx = new SQLClientInfoException();
			clientInfoEx.initCause(sqlEx);
4
CodeRank
This code example shows how to use the following methods:initCause
This code example shows how to use the following methods:
	} 
	 
	 
	public void setClientInfo(String name, String value)
			throws SQLClientInfoException {
		throw new SQLClientInfoException("Method not supported", null);
	} 
 
	 
	public void setClientInfo(Properties properties)
			throws SQLClientInfoException {
		throw new SQLClientInfoException("Method not supported", null);
	} 
	 
	 
	public Array createArrayOf(String typeName, Object[] elements)
			throws SQLException {
		throw new SQLException("Method not supported");
	} 
 
4
CodeRank
This code example shows how to use the following methods:
                              String value) throws SQLClientInfoException {
 
        try { 
            validate(); 
        } catch (SQLException e) {
            throw new SQLClientInfoException(e.getMessage(), e.getSQLState(),
                    e.getErrorCode(), (Map<String, ClientInfoStatus>) null, e);
        } 
        this.getConnection().setClientInfo(name, value);
    } 
 
//#endif JAVA6 
//#ifdef JAVA6 
    public void setClientInfo( 
            Properties properties) throws SQLClientInfoException {
 
        try { 
            validate(); 
        } catch (SQLException e) {
            throw new SQLClientInfoException(e.getMessage(), e.getSQLState(),
4
CodeRank
This code example shows how to use the following methods:initCause
This code example shows how to use the following methods:
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
        } 
    } 
 
    @Override 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        try { 
            checkOpen(); 
            _conn.setClientInfo(properties);
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
4
CodeRank
This code example shows how to use the following methods:
   */ 
 
  public void setClientInfo(Properties properties)
      throws SQLClientInfoException {
    // TODO Auto-generated method stub 
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
  /* 
   * (non-Javadoc) 
   *  
   * @see java.sql.Connection#setClientInfo(java.lang.String, java.lang.String) 
   */ 
 
  public void setClientInfo(String name, String value)
      throws SQLClientInfoException {
    // TODO Auto-generated method stub 
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
2
CodeRank
This code example shows how to use the following methods:
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
        } 
    } 
 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        try { 
            checkOpen(); 
            _conn.setClientInfo(properties);
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
        } 
    } 
3
CodeRank
This code example shows how to use the following methods:
    throw new SQLFeatureNotSupportedException();
  } 
 
  @Override 
  public void setClientInfo(String s, String s2) throws SQLClientInfoException {
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
  @Override 
  public void setClientInfo(Properties properties) throws SQLClientInfoException {
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
  @Override 
  public String getClientInfo(String s) throws SQLException {
    throw new SQLFeatureNotSupportedException();
  } 
 
  @Override 
  public Properties getClientInfo() throws SQLException {
3
CodeRank
This code example shows how to use the following methods:
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
        } 
    } 
 
    @Override 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        try { 
            checkOpen(); 
            _conn.setClientInfo(properties);
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
2
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
        } 
    } 
 
    @Override 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        try { 
            checkOpen(); 
            _conn.setClientInfo(properties);
        } 
        catch (SQLClientInfoException e) {
            throw e;
        } 
        catch (SQLException e) {
            throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e);
3
CodeRank
This code example shows how to use the following methods:
   */ 
 
  public void setClientInfo(Properties properties)
      throws SQLClientInfoException { 
    // TODO Auto-generated method stub 
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
  /* (non-Javadoc) 
   * @see java.sql.Connection#setClientInfo(java.lang.String, java.lang.String) 
   */ 
 
  public void setClientInfo(String name, String value)
      throws SQLClientInfoException { 
    // TODO Auto-generated method stub 
    throw new SQLClientInfoException("Method not supported", null);
  } 
 
  /* (non-Javadoc) 
   * @see java.sql.Connection#setHoldability(int) 
3
CodeRank
This code example shows how to use the following methods:initCause
      throw scie;
    } 
    catch (SQLException se) {
      owner.fireConnectionError(se);
 
      SQLClientInfoException scie = new SQLClientInfoException();
      scie.initCause(se);
      throw scie;
    } 
  } 
 
  /** 
   * {@inheritDoc} 
   */ 
  @Override 
  public void setClientInfo(String name, String value) throws SQLClientInfoException {
    try { 
      checkClosed(); 
      delegator.setClientInfo(name, value);
    } 
3
CodeRank
This code example shows how to use the following methods:
                              String value) throws SQLClientInfoException {
 
        try { 
            validate(); 
        } catch (SQLException e) {
            throw new SQLClientInfoException(e.getMessage(), e.getSQLState(),
                    e.getErrorCode(), (Map<String, ClientInfoStatus>) null, e);
        } 
        this.getConnection().setClientInfo(name, value);
    } 
 
//#endif JAVA6 
//#ifdef JAVA6 
    public void setClientInfo( 
            Properties properties) throws SQLClientInfoException {
 
        try { 
            validate(); 
        } catch (SQLException e) {
            throw new SQLClientInfoException(e.getMessage(), e.getSQLState(),
3
CodeRank
This code example shows how to use the following methods:
        return _open;
    } 
 
    @Override 
    public void setClientInfo(String name, String value) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    } 
 
    @Override 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    } 
 
    @Override 
    public Properties getClientInfo() throws SQLException {
        throw new SQLException("Not implemented.");
    } 
 
    @Override 
    public String getClientInfo(String name) throws SQLException {
3
CodeRank
This code example shows how to use the following methods:
        throw new SQLException("Not implemented.");
    } 
 
    @Override 
    public void setClientInfo(String name, String value) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    } 
 
    @Override 
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    } 
 
    @Override 
    public Properties getClientInfo() throws SQLException {
        throw new SQLException("Not implemented.");
    } 
 
    @Override 
    public String getClientInfo(String name) throws SQLException {
3
CodeRank
This code example shows how to use the following methods:
    } 
 
    @Override 
    public void setClientInfo(String name, String value)
	throws SQLClientInfoException { 
	throw new SQLClientInfoException();
    } 
 
    @Override 
    public void setClientInfo(Properties prop) throws SQLClientInfoException {
	throw new SQLClientInfoException();
    } 
 
    @Override 
    public String getClientInfo(String name) throws SQLException {
	throw new SQLException("unsupported");
    } 
 
    @Override 
    public Properties getClientInfo() throws SQLException {
3
CodeRank
See Code Examples for Java 8 SQLClientInfoException Methods: