Class DatabasePlatformInfo

java.lang.Object
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 Details

    • 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 Details

    • 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