Class DatabasePlatforms
java.lang.Object
org.kuali.rice.krad.data.platform.DatabasePlatforms
Contains constants and utilities related to the supported database platforms.
We use a String to represent the platform name as opposed to an Enum because this allows for the potential to configure and use custom platforms at runtime without requiring internal code modification to support a new platform.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DatabasePlatformInfodetectPlatform(DataSource dataSource) Gets the platform information from theDataSource.
-
Field Details
-
ORACLE
The name of the Oracle platform.- See Also:
-
MYSQL
The name of the MySQL platform.- See Also:
-
MARIADB
The name of the MariaDB platform.- See Also:
-
-
Method Details
-
detectPlatform
Gets the platform information from theDataSource.- Parameters:
dataSource- theDataSourceto consult.- Returns:
- the platform information from the
DataSource.
-