35363738394041
return false; } @Override public <T> T unwrap(Class<T> unwrapType) { throw new UnknownUnwrapTypeException(unwrapType); }
7374757677787980
public <T> T unwrap(Class<T> unwrapType) { if ( isUnwrappableAs( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
7576777879808182
263264265266267268269270
if ( ConnectionProvider.class.equals( unwrapType ) || DriverManagerConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
8889909192939495
} else if ( DataSource.class.isAssignableFrom( unwrapType ) ) { return (T) getDataSource(); } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
5051525354555657
if ( ConnectionProvider.class.equals( unwrapType ) || UserSuppliedConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
8081828384858687
117118119120121122123124
} else if ( DataSource.class.isAssignableFrom( unwrapType ) ) { return (T) ds; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
9899100101102103104105
if ( ConnectionProvider.class.equals( unwrapType ) || ProxoolConnectionProvider.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }