/** * <code>setClientInfo</code> will always throw a * <code>SQLClientInfoException</code> since Derby does not support * any properties. * * @param name a property key <code>String</code> * @param value a property value <code>String</code> * @exception SQLException always. */ 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(), se.getErrorCode(), new FailedProperties40(p).getProperties()); } if (name == null && value == null) { return; } setClientInfo(p); }
/** * <code>setClientInfo</code> will always throw a * <code>SQLClientInfoException</code> since Derby does not support * any properties. * * @param name a property key <code>String</code> * @param value a property value <code>String</code> * @exception SQLException always. */ 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(), se.getErrorCode(), new FailedProperties40(p).getProperties()); } if (name == null && value == null) { return; } setClientInfo(p); }