Package java.sql

Examples of java.sql.SQLClientInfoException


    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

    throws SQLClientInfoException{
        Properties p = FailedProperties40.makeProperties(name,value);
        try { checkIfClosed(); }
        catch (SQLException se) {
            FailedProperties40 fp = new FailedProperties40(p);
            throw new SQLClientInfoException(se.getMessage(),
                                             se.getSQLState(),
                                             fp.getProperties());
        }
        // Allow null to simplify compliance testing through
        // reflection, (test all methods in an interface with null
View Full Code Here

    throws SQLClientInfoException {
        FailedProperties40 fp = new FailedProperties40(properties);
       
        try { checkIfClosed(); }
        catch (SQLException se) {
            throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
                                             fp.getProperties());
        }

        // Allow null to simplify compliance testing through
        // reflection, (test all methods in an interface with null
        // arguments)
        // An empty properties object is meaningless, but allowed
        if (properties == null || properties.isEmpty()) {
            return;
        }

        StandardException se =
            StandardException.newException
            (SQLState.PROPERTY_UNSUPPORTED_CHANGE,
             fp.getFirstKey(),
             fp.getFirstValue());
        throw new SQLClientInfoException(se.getMessage(),
                                         se.getSQLState(), fp.getProperties());
    }
View Full Code Here

     */
    public void setClientInfo(Properties properties)
        throws SQLClientInfoException {
  try { checkForNullPhysicalConnection(); }
  catch (SQLException se) {
      throw new SQLClientInfoException
    (se.getMessage(), se.getSQLState(),
     (new FailedProperties40(properties)).getProperties());
  }
  physicalConnection_.setClientInfo(properties);
    }
View Full Code Here

     */
    public void setClientInfo(String name, String value)
        throws SQLClientInfoException {
  try { checkForNullPhysicalConnection(); }
        catch (SQLException se) {
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                 new FailedProperties40
                 (FailedProperties40.makeProperties
                  (name,value)).getProperties());
        }
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

   */

  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

    throws SQLClientInfoException{
        Properties p = FailedProperties40.makeProperties(name,value);
        try { checkIfClosed(); }
        catch (SQLException se) {
            FailedProperties40 fp = new FailedProperties40(p);
            throw new SQLClientInfoException(se.getMessage(),
                                             se.getSQLState(),
                                             fp.getProperties());
        }
        // Allow null to simplify compliance testing through
        // reflection, (test all methods in an interface with null
View Full Code Here

    throws SQLClientInfoException {
        FailedProperties40 fp = new FailedProperties40(properties);
       
        try { checkIfClosed(); }
        catch (SQLException se) {
            throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
                                             fp.getProperties());
        }

        // Allow null to simplify compliance testing through
        // reflection, (test all methods in an interface with null
        // arguments)
        // An empty properties object is meaningless, but allowed
        if (properties == null || properties.isEmpty()) {
            return;
        }

        StandardException se =
            StandardException.newException
            (SQLState.PROPERTY_UNSUPPORTED_CHANGE,
             fp.getFirstKey(),
             fp.getFirstValue());
        throw new SQLClientInfoException(se.getMessage(),
                                         se.getSQLState(), fp.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.