@Override public int getLoginTimeout() throws SQLException { return this.dataSource.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return ds.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return ds.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return delegate.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return dataSource.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return obtainTargetDataSource().getLoginTimeout(); }
long getLoginTimeout() { try { return (dataSource != null) ? dataSource.getLoginTimeout() : SECONDS.toSeconds(5); } catch (SQLException e) { return SECONDS.toSeconds(5); } }
@Override public int getLoginTimeout() throws SQLException { return delegate.getLoginTimeout(); }
/** {@inheritDoc} */ @Override public int getLoginTimeout() throws SQLException { HikariPool p = pool; return (p != null ? p.getUnwrappedDataSource().getLoginTimeout() : 0); }
@Test public void shouldDelegateGetLoginTimeout() throws Exception { int timeout = 123; given(delegate.getLoginTimeout()).willReturn(timeout); assertThat(dataSource.getLoginTimeout(), is(timeout)); }
@Override public int getLoginTimeout() throws SQLException { return dataSource.getLoginTimeout(); }
@Override public int getLoginTimeout() throws SQLException { return dataSource.getLoginTimeout(); }
public int getLoginTimeout() throws SQLException { return wrapped.getLoginTimeout(); }
public int getLoginTimeout() throws SQLException { return dataSource.getLoginTimeout(); }
/** * {@inheritDoc} * */ @Override public int getLoginTimeout() throws SQLException { return this.datasource.getLoginTimeout(); }
/** * {@inheritDoc} */ public int getLoginTimeout() throws SQLException { return dataSource.getLoginTimeout(); }
/** {@inheritDoc} */ @Override public int getLoginTimeout() throws SQLException { HikariPool hikariPool = multiPool.values().iterator().next(); if (hikariPool != null) { return hikariPool.getDataSource().getLoginTimeout(); } return 0; }
public int getLoginTimeout() throws SQLException { if (targetDS instanceof DataSource) return ((DataSource) targetDS).getLoginTimeout(); if (targetDS instanceof XADataSource) return ((XADataSource) targetDS).getLoginTimeout(); if (targetDS instanceof ConnectionPoolDataSource) return ((ConnectionPoolDataSource) targetDS).getLoginTimeout(); throw new SQLException("targetDS doesn't have getLogTimeout() method"); }
public int getLoginTimeout() throws SQLException { if (getTargetDataSource() == null) { return -1; } return getTargetDataSource().getLoginTimeout(); }
public int getLoginTimeout() throws SQLException { if (getTargetDataSource() == null) { return -1; } return getTargetDataSource().getLoginTimeout(); }