org.kuali.rice.krad.data.platform
Class DatabasePlatforms

java.lang.Object
  extended by org.kuali.rice.krad.data.platform.DatabasePlatforms

public final class DatabasePlatforms
extends Object

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
static String MYSQL
          The name of the MySQL platform.
static String ORACLE
          The name of the Oracle platform.
 
Method Summary
static DatabasePlatformInfo detectPlatform(DataSource dataSource)
          Gets the platform information from the DataSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORACLE

public static final String ORACLE
The name of the Oracle platform.

See Also:
Constant Field Values

MYSQL

public static final String MYSQL
The name of the MySQL platform.

See Also:
Constant Field Values
Method Detail

detectPlatform

public static DatabasePlatformInfo detectPlatform(DataSource dataSource)
Gets the platform information from the DataSource.

Parameters:
dataSource - the DataSource to consult.
Returns:
the platform information from the DataSource.


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.