public class DatabaseType extends Object implements Comparable<DatabaseType>
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseType.Name |
Modifier and Type | Field and Description |
---|---|
static DatabaseType |
UNKNOWN |
Constructor and Description |
---|
DatabaseType(DatabaseType.Name name,
int majorVersion,
int minorVersion)
Create a new instance which has a name, major and minor version.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DatabaseType other) |
boolean |
equals(Object o) |
int |
hashCode() |
int |
majorVersion()
Get the DB major version
|
int |
minorVersion()
Get the DB minor version
|
DatabaseType.Name |
name()
Get the name of the database
|
String |
nameString()
Get the name of the database as a string
|
String |
toString() |
public static DatabaseType UNKNOWN
public DatabaseType(DatabaseType.Name name, int majorVersion, int minorVersion)
name
- the name of the database; may not be nullmajorVersion
- the major version; must be equal to or greater than 0minorVersion
- the minor version; must be equal to or greater than 0public int minorVersion()
public int majorVersion()
public String nameString()
null
public DatabaseType.Name name()
DatabaseType.Name
, never null
public int compareTo(DatabaseType other)
compareTo
in interface Comparable<DatabaseType>
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.