public final class DatabasePlatforms extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
MYSQL
The name of the MySQL platform.
|
static String |
ORACLE
The name of the Oracle platform.
|
Modifier and Type | Method and Description |
---|---|
static DatabasePlatformInfo |
detectPlatform(DataSource dataSource)
Gets the platform information from the
DataSource . |
public static final String ORACLE
public static final String MYSQL
public static DatabasePlatformInfo detectPlatform(DataSource dataSource)
DataSource
.dataSource
- the DataSource
to consult.DataSource
.Copyright © 2005–2014 The Kuali Foundation. All rights reserved.