public static XAProperties createXAProperties ( final DatabaseType databaseType ) { switch ( databaseType ) { case H2 : return new H2XAProperties ( ) ; case MySQL : return new MySQLXAProperties ( ) ; case PostgreSQL : return new PostgreSQLXAProperties ( ) ; case Oracle : return new OracleXAProperties ( ) ; case SQLServer : return new SQLServerXAProperties ( ) ; default : throw new UnsupportedOperationException ( String . format ( "Cannot support database type: `%s`" , databaseType ) ) ; } }
Create XA properties .