Refine search
@Override public void setClientInfo(String name, String value) throws SQLClientInfoException { if (holder == null) { throw new SQLClientInfoException(); } conn.setClientInfo(name, value); }
@Override public void setClientInfo(Properties properties) throws SQLClientInfoException { try { checkClosed(); } catch (final SQLException cause) { Map<String, ClientInfoStatus> failures = new HashMap<String, ClientInfoStatus>(); for (Map.Entry<Object, Object> e : properties.entrySet()) { failures.put((String) e.getKey(), ClientInfoStatus.REASON_UNKNOWN); } throw new SQLClientInfoException(GT.tr("This connection has been closed."), failures, cause); } Map<String, ClientInfoStatus> failures = new HashMap<String, ClientInfoStatus>(); for (String name : new String[]{"ApplicationName"}) { try { setClientInfo(name, properties.getProperty(name, null)); } catch (SQLClientInfoException e) { failures.putAll(e.getFailedProperties()); } } if (!failures.isEmpty()) { throw new SQLClientInfoException(GT.tr("One or more ClientInfo failed."), PSQLState.NOT_IMPLEMENTED.getState(), failures); } }
/** {@inheritDoc} */ @Override public void setClientInfo(String name, String val) throws SQLClientInfoException { if (closed) throw new SQLClientInfoException("Connection is closed.", null); }
@Override public void setClientInfo(Properties properties) throws SQLClientInfoException { try { ManagedConnectionHandle<Connection, ConnectionHandle> mc = getManagedConnection(); mc.getPhysicalConnection().setClientInfo(properties); } catch (SQLClientInfoException e) { connectionError(e); throw e; } catch (SQLException e) { connectionError(e); throw (SQLClientInfoException)new SQLClientInfoException().initCause(e); } }
/** * {@inheritDoc} */ @Override public void setClientInfo(String name, String value) throws SQLClientInfoException { try { checkClosed(); delegator.setClientInfo(name, value); } catch (SQLClientInfoException scie) { owner.fireConnectionError(scie); throw scie; } catch (SQLException se) { owner.fireConnectionError(se); SQLClientInfoException scie = new SQLClientInfoException(); scie.initCause(se); throw scie; } }
/** {@inheritDoc} */ @Override public void setClientInfo(Properties props) throws SQLClientInfoException { if (closed) throw new SQLClientInfoException("Connection is closed.", null); }
@Override public void setClientInfo(String s, String s1) throws SQLClientInfoException { try { ManagedConnectionHandle<Connection, ConnectionHandle> mc = getManagedConnection(); mc.getPhysicalConnection().setClientInfo(s, s1); } catch (SQLClientInfoException e) { connectionError(e); throw e; } catch (SQLException e) { connectionError(e); throw (SQLClientInfoException)new SQLClientInfoException().initCause(e); } }
/** * {@inheritDoc} */ @Override public void setClientInfo(String name, String value) throws SQLClientInfoException { try { checkClosed(); delegator.setClientInfo(name, value); } catch (SQLClientInfoException scie) { owner.fireConnectionError(scie); throw scie; } catch (SQLException se) { owner.fireConnectionError(se); SQLClientInfoException scie = new SQLClientInfoException(); scie.initCause(se); throw scie; } }
@Override public void setClientInfo(Properties properties) throws SQLClientInfoException { if (holder == null) { throw new SQLClientInfoException(); } conn.setClientInfo(properties); }
public void setClientInfo(String name, String value) throws SQLClientInfoException { throw new SQLClientInfoException(); }
/** * {@inheritDoc} */ @Override public void setClientInfo(Properties properties) throws SQLClientInfoException { try { checkClosed(); delegator.setClientInfo(properties); } catch (SQLClientInfoException scie) { owner.fireConnectionError(scie); throw scie; } catch (SQLException se) { owner.fireConnectionError(se); SQLClientInfoException scie = new SQLClientInfoException(); scie.initCause(se); throw scie; } }
@Override public void setClientInfo(Properties properties) throws SQLClientInfoException { if (holder == null) { throw new SQLClientInfoException(); } conn.setClientInfo(properties); }
/** * [Not supported] Get the client properties. */ // ## Java 1.6 ## @Override public Properties getClientInfo() throws SQLClientInfoException { throw new SQLClientInfoException(); }
/** * {@inheritDoc} */ @Override public void setClientInfo(Properties properties) throws SQLClientInfoException { try { checkClosed(); delegator.setClientInfo(properties); } catch (SQLClientInfoException scie) { owner.fireConnectionError(scie); throw scie; } catch (SQLException se) { owner.fireConnectionError(se); SQLClientInfoException scie = new SQLClientInfoException(); scie.initCause(se); throw scie; } }
@Override public void setClientInfo(String name, String value) throws SQLClientInfoException { if (holder == null) { throw new SQLClientInfoException(); } conn.setClientInfo(name, value); }
/** * [Not supported] Set a client property. */ // ## Java 1.6 ## @Override public void setClientInfo(String name, String value) throws SQLClientInfoException { throw new SQLClientInfoException(); }
@Override public void setClientInfo(final Properties properties) throws SQLClientInfoException { try { checkOpen(); connection.setClientInfo(properties); } catch (final SQLClientInfoException e) { throw e; } catch (final SQLException e) { throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e); } }
/** * [Not supported] Set the client properties. */ // ## Java 1.6 ## @Override public void setClientInfo(Properties properties) throws SQLClientInfoException { throw new SQLClientInfoException(); }
@Override public void setClientInfo(final String name, final String value) throws SQLClientInfoException { try { checkOpen(); connection.setClientInfo(name, value); } catch (final SQLClientInfoException e) { throw e; } catch (final SQLException e) { throw new SQLClientInfoException("Connection is closed.", EMPTY_FAILED_PROPERTIES, e); } }
public void setClientInfo(Properties prop) throws SQLClientInfoException { throw new SQLClientInfoException(); }