Hibernate ORM UnknownUnwrapTypeException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM UnknownUnwrapTypeException class.

This code example shows how to use the following methods:
		if ( ConnectionProvider.class.equals( unwrapType ) ||
				BoneCPConnectionProvider.class.isAssignableFrom( unwrapType ) ) {
			return (T) this;
		} 
 
		throw new UnknownUnwrapTypeException( unwrapType );
	} 
 
 
	/** 
	 * Legacy conversion. 
	 * @param map 
	 * @return Properties 
	 */ 
	private Properties mapToProperties(Map<String, String> map) {
		   Properties p = new Properties();
		   for (Map.Entry<String,String> entry : map.entrySet()) {
		     p.put(entry.getKey(), entry.getValue());
		   } 
		   return p;
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		} 
		else if ( ConnectionProvider.class.isAssignableFrom( unwrapType ) ) {
			return (T) actualConnectionProvider;
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
   public static ConnectionProvider getActualConnectionProvider() {
      return actualConnectionProvider;
   } 
 
   public void setNodeId(String nodeId) throws HibernateException {
      if (nodeId == null) {
         throw new HibernateException( "nodeId not configured" );
	  } 
	  this.nodeId = nodeId;
   } 
 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		} 
		else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
			return (T) getDataSource(); 
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public void configure(Map configValues) {
		if ( this.dataSource == null ) {
			final Object dataSource = configValues.get( Environment.DATASOURCE );
			if ( DataSource.class.isInstance( dataSource ) ) {
				this.dataSource = (DataSource) dataSource;
			} 
			else { 
				final String dataSourceJndiName = (String) dataSource;
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		else if ( ConnectionProvider.class.isAssignableFrom( unwrapType ) ||
				actualConnectionProvider.getClass().isAssignableFrom( unwrapType ) ) {
			return (T) getActualConnectionProvider(); 
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	public void configure(Properties props) throws HibernateException {
	} 
 
	public Connection getConnection() throws SQLException {
		XaTransactionImpl currentTransaction = XaTransactionManagerImpl.getInstance().getCurrentTransaction();
		if ( currentTransaction == null ) {
			isTransactional = false;
			return actualConnectionProvider.getConnection();
		} 
		else { 
			isTransactional = true;
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
	public <T> T unwrap(Class<T> unwrapType) {
		if ( isUnwrappableAs( unwrapType ) ) {
			return (T) this;
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		} 
		else if ( DataSource.class.isAssignableFrom( unwrapType ) ) {
			return (T) ds;
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	@Override 
    @SuppressWarnings( {"unchecked"}) 
	public void configure(Map props) {
		String jdbcDriverClass = (String) props.get( Environment.DRIVER );
		String jdbcUrl = (String) props.get( Environment.URL );
		Properties connectionProps = ConnectionProviderInitiator.getConnectionProperties( props );
 
        LOG.c3p0UsingDriver(jdbcDriverClass, jdbcUrl);
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		if ( ConnectionProvider.class.equals( unwrapType ) ||
				UserSuppliedConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
			return (T) this;
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Connection getConnection() throws SQLException {
		throw new UnsupportedOperationException( "The application must supply JDBC connections" );
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public void closeConnection(Connection conn) throws SQLException {
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
   { 
      if (isUnwrappableAs(unwrapType)) {
         return (T) this;
      } 
      else { 
         throw new UnknownUnwrapTypeException(unwrapType);
      } 
   } 
 
   // ************************************************************************* 
   // Stoppable 
   // ************************************************************************* 
 
   @Override 
   public void stop() 
   { 
      this.hds.close();
   } 
} 
Full Snippet Info
3
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods:
		return false; 
	} 
 
	@Override 
	public <T> T unwrap(Class<T> unwrapType) { 
		throw new UnknownUnwrapTypeException(unwrapType); 
	} 
} 
Full Snippet Info
3
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE