Package org.apache.ibatis.mapping
Class VendorDatabaseIdProvider
- java.lang.Object
-
- org.apache.ibatis.mapping.VendorDatabaseIdProvider
-
- All Implemented Interfaces:
DatabaseIdProvider
- Direct Known Subclasses:
DefaultDatabaseIdProvider
public class VendorDatabaseIdProvider extends Object implements DatabaseIdProvider
Vendor DatabaseId provider. It returns database product name as a databaseId. If the user provides a properties it uses it to translate database product name key="Microsoft SQL Server", value="ms" will return "ms". It can return null, if no database product name or a properties was specified and no translation was found.- Author:
- Eduardo Macarron
-
-
Constructor Summary
Constructors Constructor Description VendorDatabaseIdProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatabaseId(DataSource dataSource)
void
setProperties(Properties p)
-
-
-
Method Detail
-
getDatabaseId
public String getDatabaseId(DataSource dataSource)
- Specified by:
getDatabaseId
in interfaceDatabaseIdProvider
-
setProperties
public void setProperties(Properties p)
- Specified by:
setProperties
in interfaceDatabaseIdProvider
-
-