Package java.sql

Examples of java.sql.SQLClientInfoException


        } catch (SQLClientInfoException cie) {
            notifyException(cie);
            throw cie;
      } catch (SQLException sqle) {
        notifyException(sqle);
            throw new SQLClientInfoException
            (sqle.getMessage(), sqle.getSQLState(),
                sqle.getErrorCode(),
             new FailedProperties40
             (FailedProperties40.makeProperties
              (name,value)).getProperties());
View Full Code Here


     */
//#ifdef JAVA6
    public void setClientInfo(String name,
                              String value) throws SQLClientInfoException {

        SQLClientInfoException ex = new SQLClientInfoException();

        ex.initCause(Util.notSupported());

        throw ex;
    }
View Full Code Here

        if (!this.isClosed && (properties == null || properties.isEmpty())) {
            return;
        }

        SQLClientInfoException ex = new SQLClientInfoException();

        if (this.isClosed) {
            ex.initCause(Util.connectionClosedException());
        } else {
            ex.initCause(Util.notSupported());
        }

        throw ex;
    }
View Full Code Here

        String value = properties.getProperty(name);

        setClientInfo(conn, name, value);
      }
    } catch (SQLException sqlEx) {
      SQLClientInfoException clientInfoEx = new SQLClientInfoException();
      clientInfoEx.initCause(sqlEx);

      throw clientInfoEx;
    }
  }
View Full Code Here

    try {
      this.setClientInfoSp.setString(1, name);
      this.setClientInfoSp.setString(2, value);
      this.setClientInfoSp.execute();
    } catch (SQLException sqlEx) {
      SQLClientInfoException clientInfoEx = new SQLClientInfoException();
      clientInfoEx.initCause(sqlEx);

      throw clientInfoEx;
    }
  }
View Full Code Here

    try {
      getClientInfoProviderImpl().setClientInfo(this, properties);
    } catch (SQLClientInfoException ciEx) {
      throw ciEx;
    } catch (SQLException sqlEx) {
      SQLClientInfoException clientInfoEx = new SQLClientInfoException();
      clientInfoEx.initCause(sqlEx);

      throw clientInfoEx;
    }
  }
View Full Code Here

    try {
      getClientInfoProviderImpl().setClientInfo(this, name, value);
    } catch (SQLClientInfoException ciEx) {
      throw ciEx;
    } catch (SQLException sqlEx) {
      SQLClientInfoException clientInfoEx = new SQLClientInfoException();
      clientInfoEx.initCause(sqlEx);

      throw clientInfoEx;
    }
  }
View Full Code Here

      ((java.sql.Connection) this.mc).setClientInfo(properties);
    } catch (SQLException sqlException) {
      try {
        checkAndFireConnectionError(sqlException);
      } catch (SQLException sqlEx2) {
        SQLClientInfoException clientEx = new SQLClientInfoException();
        clientEx.initCause(sqlEx2);

        throw clientEx;
      }
    }
  }
View Full Code Here

      ((java.sql.Connection) this.mc).setClientInfo(name, value);
    } catch (SQLException sqlException) {
      try {
        checkAndFireConnectionError(sqlException);
      } catch (SQLException sqlEx2) {
        SQLClientInfoException clientEx = new SQLClientInfoException();
        clientEx.initCause(sqlEx2);

        throw clientEx;
      }
    }
  }
View Full Code Here

            notifyException(se);
            throw se;
        }
        catch (SQLException se) {
            notifyException(se);
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                    se.getErrorCode(),
       (new FailedProperties40
      (FailedProperties40.makeProperties(name,value))).
     getProperties());
View Full Code Here

TOP

Related Classes of java.sql.SQLClientInfoException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.