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

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

public final class DatabasePlatformInfo
extends Object

Contains database platform information, specifically the name and major version of the database.

The name of the database platform should be considered as case insensitive.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
DatabasePlatformInfo(String name, int majorVersion)
          Creates database platform information.
 
Method Summary
 boolean equals(Object object)
          
 int getMajorVersion()
          Gets the major version of the database.
 String getName()
          Gets the name of the database.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabasePlatformInfo

public DatabasePlatformInfo(String name,
                            int majorVersion)
Creates database platform information.

Parameters:
name - the name of the database.
majorVersion - the major version of the database.
Method Detail

getName

public String getName()
Gets the name of the database.

Returns:
the name of the database.

getMajorVersion

public int getMajorVersion()
Gets the major version of the database.

Returns:
the major version of the database.

equals

public boolean equals(Object object)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


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