Package org.hibernate.service

Examples of org.hibernate.service.UnknownUnwrapTypeException


  public <T> T unwrap(Class<T> unwrapType) {
    if ( isUnwrappableAs( unwrapType ) ) {
      return (T) this;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here


    if ( ConnectionProvider.class.equals( unwrapType ) ||
        DriverManagerConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
      return (T) this;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

    }
    else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
      return (T) getDataSource();
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

    if ( ConnectionProvider.class.equals( unwrapType ) ||
        UserSuppliedConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
      return (T) this;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

    }
    else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
      return (T) ds;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

    }
    else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
      return (T) ds;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

  public <T> T unwrap(Class<T> unwrapType) {
    if ( isUnwrappableAs( unwrapType ) ) {
      return (T) this;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

  @SuppressWarnings({ "unchecked" })
  public <T> T unwrap(Class<T> unwrapType) {
    if (ConnectionProvider.class.equals(unwrapType) || DriverManagerConnectionProviderImpl.class.isAssignableFrom(unwrapType)) {
      return (T) this;
    } else {
      throw new UnknownUnwrapTypeException(unwrapType);
    }
  }
View Full Code Here

    return false;
  }

  @Override
  public <T> T unwrap(Class<T> unwrapType) {
    throw new UnknownUnwrapTypeException(unwrapType);
  }
View Full Code Here

    if ( ConnectionProvider.class.equals( unwrapType ) ||
        DriverManagerConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
      return (T) this;
    }
    else {
      throw new UnknownUnwrapTypeException( unwrapType );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.service.UnknownUnwrapTypeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.