Best code examples for Hibernate ORM UnknownUnwrapTypeException class (org.hibernate.service.UnknownUnwrapTypeException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM UnknownUnwrapTypeException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM UnknownUnwrapTypeException examples from Open Source projects
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
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
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
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
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