Examples of FailedProperties40


Examples of org.apache.derby.client.am.FailedProperties40

  try { checkForClosedConnection(); }
  catch (SqlException se) {
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                    se.getErrorCode(),
                    new FailedProperties40(p).getProperties());
        }

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

Examples of org.apache.derby.client.am.FailedProperties40

     * @exception SQLClientInfoException unless the properties
     * parameter is null or empty.
     */
    public void setClientInfo(Properties properties)
    throws SQLClientInfoException {
  FailedProperties40 fp = new FailedProperties40(properties);
  try { checkForClosedConnection(); }
  catch (SqlException se) {
      throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
          se.getErrorCode(),
          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(),
          se.getErrorCode(),
          fp.getProperties());
    }
View Full Code Here

Examples of org.apache.derby.client.am.FailedProperties40

    try { checkForClosedConnection(); }
    catch (SqlException se) {
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                        se.getErrorCode(),
                        new FailedProperties40(p).getProperties());
        }

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

Examples of org.apache.derby.client.am.FailedProperties40

     * @exception SQLClientInfoException unless the properties
     * parameter is null or empty.
     */
    public void setClientInfo(Properties properties)
    throws SQLClientInfoException {
    FailedProperties40 fp = new FailedProperties40(properties);
    try { checkForClosedConnection(); }
    catch (SqlException se) {
        throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
                se.getErrorCode(),
                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(),
                se.getErrorCode(),
                fp.getProperties());
    }
View Full Code Here

Examples of org.apache.derby.client.am.FailedProperties40

  try { checkForClosedConnection(); }
  catch (SqlException se) {
            throw new SQLClientInfoException
                (se.getMessage(), se.getSQLState(),
                    se.getErrorCode(),
                    new FailedProperties40(p).getProperties());
        }

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

Examples of org.apache.derby.client.am.FailedProperties40

     * @exception SQLClientInfoException unless the properties
     * parameter is null or empty.
     */
    public void setClientInfo(Properties properties)
    throws SQLClientInfoException {
  FailedProperties40 fp = new FailedProperties40(properties);
  try { checkForClosedConnection(); }
  catch (SqlException se) {
      throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
          se.getErrorCode(),
          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(),
          se.getErrorCode(),
          fp.getProperties());
    }
View Full Code Here

Examples of org.apache.derby.iapi.jdbc.FailedProperties40

    public void setClientInfo(String name, String value)
    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(),
                                             se.getErrorCode(),
                                             fp.getProperties());
        }
        // Allow null to simplify compliance testing through
        // reflection, (test all methods in an interface with null
        // arguments)
        if (name == null && value == null) {
View Full Code Here

Examples of org.apache.derby.iapi.jdbc.FailedProperties40

     * @exception SQLClientInfoException unless properties parameter
     * is null or empty
     */
    public void setClientInfo(Properties properties)
    throws SQLClientInfoException {
        FailedProperties40 fp = new FailedProperties40(properties);
       
        try { checkIfClosed(); }
        catch (SQLException se) {
            throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
                se.getErrorCode(), 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(),
            se.getErrorCode(),
            fp.getProperties());
    }
View Full Code Here

Examples of org.apache.derby.iapi.jdbc.FailedProperties40

    public void setClientInfo(String name, String value)
    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
        // arguments)
        if (name == null && value == null) {
View Full Code Here

Examples of org.apache.derby.iapi.jdbc.FailedProperties40

     * @exception SQLClientInfoException unless properties parameter
     * is null or empty
     */
    public void setClientInfo(Properties properties)
    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
Copyright © 2018 www.massapi.com. 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.