本文整理了Java中javax.sql.DataSource.isWrapperFor()
方法的一些代码示例,展示了DataSource.isWrapperFor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataSource.isWrapperFor()
方法的具体详情如下:
包路径:javax.sql.DataSource
类名称:DataSource
方法名:isWrapperFor
暂无
代码示例来源:origin: spring-projects/spring-framework
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return this.dataSource.isWrapperFor(iface);
}
代码示例来源:origin: looly/hutool
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return ds.isWrapperFor(iface);
}
代码示例来源:origin: looly/hutool
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return ds.isWrapperFor(iface);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return (iface.isInstance(this) || obtainTargetDataSource().isWrapperFor(iface));
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return (iface.isInstance(this) || determineTargetDataSource().isWrapperFor(iface));
}
代码示例来源:origin: killbill/killbill
@Override
public boolean isWrapperFor(final Class<?> iface) throws SQLException {
return delegate.isWrapperFor(iface);
}
代码示例来源:origin: com.zaxxer/HikariCP
/** {@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;
}
代码示例来源:origin: spring-projects/spring-framework
@Test
public void shouldDelegateIsWrapperForWithoutImplementing() throws Exception {
given(delegate.isWrapperFor(ExampleWrapper.class)).willReturn(true);
assertThat(dataSource.isWrapperFor(ExampleWrapper.class), is(true));
}
代码示例来源:origin: p6spy/p6spy
/**
* @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);
}
代码示例来源:origin: ebean-orm/ebean
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return dataSource.isWrapperFor(iface);
}
代码示例来源:origin: ebean-orm/ebean
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return dataSource.isWrapperFor(iface);
}
代码示例来源:origin: Meituan-Dianping/Zebra
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return (iface.isInstance(this) || determineTargetDataSource().isWrapperFor(iface));
}
代码示例来源:origin: com.vladmihalcea.flexy-pool/flexy-pool-core
/**
* {@inheritDoc}
*/
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return targetDataSource.isWrapperFor(iface);
}
代码示例来源:origin: org.assertj/assertj-db
/**
* {@inheritDoc}
*/
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return dataSource.isWrapperFor(iface);
}
}
代码示例来源:origin: org.eclipse.dirigible/dirigible-database-api
@Override
public boolean isWrapperFor(Class<?> arg0) throws SQLException {
logger.debug("called - isWrapperFor(Class<?> arg0)");
return originalDataSource.isWrapperFor(arg0);
}
代码示例来源:origin: org.orbisgis/h2gis-utilities
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return iface.isInstance(this) || iface.isInstance(dataSource) || dataSource.isWrapperFor(iface);
}
}
代码示例来源:origin: com.pastdev/jsch-extension
@Override
public boolean isWrapperFor( Class<?> iface ) throws SQLException {
if ( dataSource.getClass().equals( iface.getClass() ) ) return true;
return dataSource.isWrapperFor( iface );
}
代码示例来源:origin: com.baomidou/dynamic-datasource-spring-boot-starter
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return (iface.isInstance(this) || determineDataSource().isWrapperFor(iface));
}
}
代码示例来源:origin: org.exoplatform.kernel/exo.kernel.component.common
/**
* {@inheritDoc}
*/
public boolean isWrapperFor(Class<?> iface) throws SQLException
{
checkValid();
return ds.isWrapperFor(iface);
}
代码示例来源:origin: baomidou/dynamic-datasource-spring-boot-starter
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
return (iface.isInstance(this) || determineDataSource().isWrapperFor(iface));
}
}
内容来源于网络,如有侵权,请联系作者删除!