@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return this.dataSource.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return ds.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return ds.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return (iface.isInstance(this) || obtainTargetDataSource().isWrapperFor(iface)); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return (iface.isInstance(this) || determineTargetDataSource().isWrapperFor(iface)); }
@Override public boolean isWrapperFor(final Class<?> iface) throws SQLException { return delegate.isWrapperFor(iface); }
/** {@inheritDoc} */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { if (iface.isInstance(this)) { return true; } HikariPool p = pool; if (p != null) { final DataSource unwrappedDataSource = p.getUnwrappedDataSource(); if (iface.isInstance(unwrappedDataSource)) { return true; } if (unwrappedDataSource != null) { return unwrappedDataSource.isWrapperFor(iface); } } return false; }
@Test public void shouldDelegateIsWrapperForWithoutImplementing() throws Exception { given(delegate.isWrapperFor(ExampleWrapper.class)).willReturn(true); assertThat(dataSource.isWrapperFor(ExampleWrapper.class), is(true)); }
/** * @param iface * @return * @throws SQLException * @see java.sql.Wrapper#isWrapperFor(java.lang.Class) */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return rds.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return dataSource.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return dataSource.isWrapperFor(iface); }
public boolean isWrapperFor(Class<?> iface) throws SQLException { return (iface.isInstance(this) || determineTargetDataSource().isWrapperFor(iface)); }
/** * {@inheritDoc} */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return targetDataSource.isWrapperFor(iface); }
/** * {@inheritDoc} */ @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return dataSource.isWrapperFor(iface); } }
@Override public boolean isWrapperFor(Class<?> arg0) throws SQLException { logger.debug("called - isWrapperFor(Class<?> arg0)"); return originalDataSource.isWrapperFor(arg0); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return iface.isInstance(this) || iface.isInstance(dataSource) || dataSource.isWrapperFor(iface); } }
@Override public boolean isWrapperFor( Class<?> iface ) throws SQLException { if ( dataSource.getClass().equals( iface.getClass() ) ) return true; return dataSource.isWrapperFor( iface ); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return (iface.isInstance(this) || determineDataSource().isWrapperFor(iface)); } }
/** * {@inheritDoc} */ public boolean isWrapperFor(Class<?> iface) throws SQLException { checkValid(); return ds.isWrapperFor(iface); }
@Override public boolean isWrapperFor(Class<?> iface) throws SQLException { return (iface.isInstance(this) || determineDataSource().isWrapperFor(iface)); } }