public static DataSourceMetaData newInstance(final DatabaseType databaseType, final String url) {
        switch (databaseType) {
            case H2:
                return new H2DataSourceMetaData(url);
            case MySQL:
                return new MySQLDataSourceMetaData(url);
            case Oracle:
                return new OracleDataSourceMetaData(url);
            case PostgreSQL:
                return new PostgreSQLDataSourceMetaData(url);
            case SQLServer:
                return new SQLServerDataSourceMetaData(url);
            default:
                throw new UnsupportedOperationException(String.format("Cannot support database [%s].", databaseType));
        }
    }
public static DataSourceMetaData newInstance ( final DatabaseType databaseType , final String url ) { switch ( databaseType ) { case H2 : return new H2DataSourceMetaData ( url ) ; case MySQL : return new MySQLDataSourceMetaData ( url ) ; case Oracle : return new OracleDataSourceMetaData ( url ) ; case PostgreSQL : return new PostgreSQLDataSourceMetaData ( url ) ; case SQLServer : return new SQLServerDataSourceMetaData ( url ) ; default : throw new UnsupportedOperationException ( String . format ( "Cannot support database [%s]." , databaseType ) ) ; } }
Create new instance of data source meta data.

@param databaseType database type
@param url data source URL
@return data source meta data