109110111112113114115116
} else if ( DataSource.class.isAssignableFrom( unwrapType ) ) { return (T) ds; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
105106107108109110111112
8687888990919293
if ( ConnectionProvider.class.equals( unwrapType ) || DriverManagerConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
8990919293949596
8788899091929394
} else if ( DataSource.class.isAssignableFrom( unwrapType ) ) { return (T) getDataSource(); } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
4950515253545556
if ( ConnectionProvider.class.equals( unwrapType ) || UserSuppliedConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
101102103104105106107108
if ( ConnectionProvider.class.equals( unwrapType ) || ProxoolConnectionProvider.class.isAssignableFrom( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }
114115116117118119120121
public <T> T unwrap(Class<T> unwrapType) { if ( isUnwrappableAs( unwrapType ) ) { return (T) this; } else { throw new UnknownUnwrapTypeException( unwrapType ); } }