Package java.sql

Examples of java.sql.SQLClientInfoException


   */

  public void setClientInfo(Properties properties)
      throws SQLClientInfoException {
    // TODO Auto-generated method stub
    throw new SQLClientInfoException("Method not supported", null);
  }
View Full Code Here


   */

  public void setClientInfo(String name, String value)
      throws SQLClientInfoException {
    // TODO Auto-generated method stub
    throw new SQLClientInfoException("Method not supported", null);
  }
View Full Code Here

    public void setClientInfo(String name, String value)
    throws SQLClientInfoException{
        Properties p = FailedProperties40.makeProperties(name,value);
  try { checkForClosedConnection(); }
  catch (SqlException se) {
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                 new FailedProperties40(p).getProperties());
        }

        if (name == null && value == null) {
View Full Code Here

    public void setClientInfo(Properties properties)
    throws SQLClientInfoException {
  FailedProperties40 fp = new FailedProperties40(properties);
  try { checkForClosedConnection(); }
  catch (SqlException se) {
      throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
            fp.getProperties());
  }
 
  if (properties == null || properties.isEmpty()) {
            return;
        }

  SqlException se =
      new SqlException(agent_.logWriter_,
           new ClientMessageId
           (SQLState.PROPERTY_UNSUPPORTED_CHANGE),
           fp.getFirstKey(), fp.getFirstValue());
        throw new SQLClientInfoException(se.getMessage(),
                                         se.getSQLState(), fp.getProperties());
    }
View Full Code Here

     * [Not supported] Set a client property.
     */
    //## Java 1.6 ##
    @Override
    public void setClientInfo(String name, String value) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    }
View Full Code Here

     * [Not supported] Set the client properties.
     */
    //## Java 1.6 ##
    @Override
    public void setClientInfo(Properties properties) throws SQLClientInfoException {
        throw new SQLClientInfoException();
    }
View Full Code Here

     * [Not supported] Get the client properties.
     */
    //## Java 1.6 ##
    @Override
    public Properties getClientInfo() throws SQLClientInfoException {
        throw new SQLClientInfoException();
    }
View Full Code Here

        return false;
      }
    }
    else if ((exception1 instanceof SQLClientInfoException) && (exception2 instanceof SQLClientInfoException))
    {
      SQLClientInfoException e1 = (SQLClientInfoException) exception1;
      SQLClientInfoException e2 = (SQLClientInfoException) exception2;
     
      Map<String, ClientInfoStatus> map1 = e1.getFailedProperties();
      Map<String, ClientInfoStatus> map2 = e2.getFailedProperties();
     
      return (map1 != null) && (map2 != null) ? map1.equals(map2) : (map1 != map2);
    }
    else if ((exception1 instanceof DataTruncation) && (exception2 instanceof DataTruncation))
    {
      DataTruncation e1 = (DataTruncation) exception1;
      DataTruncation e2 = (DataTruncation) exception2;
     
      return (e1.getDataSize() == e2.getDataSize()) && (e1.getIndex() == e2.getIndex()) && (e1.getParameter() == e2.getParameter()) && (e1.getRead() == e2.getRead()) && (e1.getTransferSize() == e2.getTransferSize());
    }
   
    SQLException nextException1 = exception1.getNextException();
    SQLException nextException2 = exception2.getNextException();
   
View Full Code Here

    }
    assertFalse(this.dialect.indicatesFailure(new SQLException()));
    assertFalse(this.dialect.indicatesFailure(new BatchUpdateException()));
    assertFalse(this.dialect.indicatesFailure(new RowSetWarning()));
    assertFalse(this.dialect.indicatesFailure(new SerialException()));
    assertFalse(this.dialect.indicatesFailure(new SQLClientInfoException()));
    assertFalse(this.dialect.indicatesFailure(new SQLNonTransientException()));
    assertFalse(this.dialect.indicatesFailure(new SQLDataException()));
    assertFalse(this.dialect.indicatesFailure(new SQLFeatureNotSupportedException()));
    assertFalse(this.dialect.indicatesFailure(new SQLIntegrityConstraintViolationException()));
    assertFalse(this.dialect.indicatesFailure(new SQLInvalidAuthorizationSpecException()));
View Full Code Here

   */

  public void setClientInfo(Properties properties)
      throws SQLClientInfoException {
    // TODO Auto-generated method stub
    throw new SQLClientInfoException("Method not supported", null);
  }
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.