@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2012 - 2022 the original author or authors .
* Copyright 2012 - 2023 the original author or authors .
*
* Licensed under the Apache License , Version 2 . 0 ( the "License" ) ;
* you may not use this file except in compliance with the License .
@ -98,10 +98,12 @@ public enum DatabaseDriver {
@@ -98,10 +98,12 @@ public enum DatabaseDriver {
* @since 2 . 1 . 0
* /
HANA ( "HDB" , "com.sap.db.jdbc.Driver" , "com.sap.db.jdbcext.XADataSourceSAP" , "SELECT 1 FROM SYS.DUMMY" ) {
@Override
protected Collection < String > getUrlPrefixes ( ) {
return Collections . singleton ( "sap" ) ;
}
} ,
/ * *
@ -240,14 +242,18 @@ public enum DatabaseDriver {
@@ -240,14 +242,18 @@ public enum DatabaseDriver {
return name ( ) . toLowerCase ( Locale . ENGLISH ) ;
}
protected boolean matchProductName ( String productName ) {
return this . productName ! = null & & this . productName . equalsIgnoreCase ( productName ) ;
}
/ * *
* Return the url prefixes of this driver .
* @return the url prefixes
* /
protected Collection < String > getUrlPrefixes ( ) {
return Collections . singleton ( name ( ) . toLowerCase ( Locale . ENGLISH ) ) ;
}
protected boolean matchProductName ( String productName ) {
return this . productName ! = null & & this . productName . equalsIgnoreCase ( productName ) ;
}
/ * *
* Return the driver class name .
* @return the class name or { @code null }