/** * <code>getClientInfo</code> always returns an empty * <code>Properties</code> object since Derby doesn't support * ClientInfoProperties. * * @return an empty <code>Properties</code> object. * @exception SQLException if the connection is closed. */ public Properties getClientInfo() throws SQLException{ try { checkForClosedConnection(); return new Properties(); } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * <code>getClientInfo</code> always returns an empty * <code>Properties</code> object since Derby doesn't support * ClientInfoProperties. * * @return an empty <code>Properties</code> object. * @exception SQLException if the connection is closed. */ public Properties getClientInfo() throws SQLException{ try { checkForClosedConnection(); return new Properties(); } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * <code>getClientInfo</code> always returns a * <code>null String</code> since Derby doesn't support * ClientInfoProperties. * * @param name a <code>String</code> value * @return a <code>null String</code> value * @exception SQLException if the connection is closed. */ public String getClientInfo(String name) throws SQLException{ try { checkForClosedConnection(); return null; } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * <code>getClientInfo</code> always returns a * <code>null String</code> since Derby doesn't support * ClientInfoProperties. * * @param name a <code>String</code> value * @return a <code>null String</code> value * @exception SQLException if the connection is closed. */ public String getClientInfo(String name) throws SQLException{ try { checkForClosedConnection(); return null; } catch (SqlException se) { throw se.getSQLException( agent_ /* GemStoneAddition */); } }
/** * Returns false unless <code>interfaces</code> is implemented * * @param interfaces a Class defining an interface. * @return true if this implements the interface or * directly or indirectly wraps an object * that does. * @throws java.sql.SQLException if an error occurs while determining * whether this is a wrapper for an object * with the given interface. */ public boolean isWrapperFor(Class<?> interfaces) throws SQLException { try { checkForClosedConnection(); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } return interfaces.isInstance(this); }
/** * Returns false unless <code>interfaces</code> is implemented * * @param interfaces a Class defining an interface. * @return true if this implements the interface or * directly or indirectly wraps an object * that does. * @throws java.sql.SQLException if an error occurs while determining * whether this is a wrapper for an object * with the given interface. */ public boolean isWrapperFor(Class<?> interfaces) throws SQLException { try { checkForClosedConnection(); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } return interfaces.isInstance(this); }
/** * Returns <code>this</code> if this class implements the interface * * @param interfaces a Class defining an interface * @return an object that implements the interface * @throws java.sql.SQLException if no object if found that implements the * interface */ public <T> T unwrap(java.lang.Class<T> interfaces) throws SQLException { try { checkForClosedConnection(); return interfaces.cast(this); } catch (ClassCastException cce) { throw new SqlException(null, new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), interfaces).getSQLException(agent_ /* GemStoneAddition */); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } }
/** * Returns <code>this</code> if this class implements the interface * * @param interfaces a Class defining an interface * @return an object that implements the interface * @throws java.sql.SQLException if no object if found that implements the * interface */ public <T> T unwrap(java.lang.Class<T> interfaces) throws SQLException { try { checkForClosedConnection(); return interfaces.cast(this); } catch (ClassCastException cce) { throw new SqlException(null, new ClientMessageId(SQLState.UNABLE_TO_UNWRAP), interfaces).getSQLException(agent_ /* GemStoneAddition */); } catch (SqlException se) { throw se.getSQLException(agent_ /* GemStoneAddition */); } }
/** * <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); }
throws SQLClientInfoException { FailedProperties40 fp = new FailedProperties40(properties); try { checkForClosedConnection(); } catch (SqlException se) { throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),
throws SQLClientInfoException { FailedProperties40 fp = new FailedProperties40(properties); try { checkForClosedConnection(); } catch (SqlException se) { throw new SQLClientInfoException(se.getMessage(), se.getSQLState(),