public static String getDriverClassName ( final String url ) { for ( Entry < String , String > entry : URL_PREFIX_AND_DRIVER_CLASS_NAME_MAPPER . entrySet ( ) ) { if ( url . startsWith ( entry . getKey ( ) ) ) { return entry . getValue ( ) ; } } throw new ShardingException ( "Cannot resolve JDBC url `%s`. Please implements `%s` and add to SPI." , url , JDBCDriverURLRecognizer . class . getName ( ) ) ; }
Get JDBC driver class name .