Package oracle.kv
Class KVVersion
java.lang.Object
oracle.kv.KVVersion
- All Implemented Interfaces:
Serializable
,Comparable<KVVersion>
Oracle NoSQL DB version information. Versions consist of major, minor and
patch numbers.
There is one KVVersion object per running JVM and it may be accessed
using the static field CURRENT_VERSION
.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getMajor()
Major number of the release version.int
getMinor()
Minor number of the release version.The numeric version string, without the patch tag.int
Oracle Major number of the release version.int
Oracle Minor number of the release version.int
getPatch()
Patch number of the release version.Returns the release date for the release version, or null if not known.Returns the name of the edition of the release version, or null if not known.Returns the internal release ID for the release version, or null if not known.Release version, suitable for display.int
hashCode()
static void
static KVVersion
parseVersion
(String versionString) Returns a KVVersion object representing the specified version string without the release ID, release date,and name parts filled in.void
setReleaseId
(String releaseId) toString()
-
Field Details
-
CURRENT_VERSION
The current software version. -
PREREQUISITE_VERSION
The current prerequisite version. Nodes can only join the cluster if they are running at least this version of the software. NOTE: The prerequisite cannot be moved forward from 20.1 until version 22.1 is no longer supported. Version 22.2 includes a fix for [KVSTORE-1394] that performs an upgrade to data first created in 20.1. Until we can be sure that the upgrade has been applied, we need to retain compatibility for version 20.1. According to current compatibility rules that require compatibility for all of the two previous calendar years, release 25.1 is the first release that does not need to provide support for 22.1, so the prerequisite should be changed to 23.1 for the 25.1 release.
-
-
Constructor Details
-
KVVersion
-
KVVersion
public KVVersion(int oracleMajor, int oracleMinor, int majorNum, int minorNum, int patchNum, String name)
-
-
Method Details
-
main
-
toString
-
getOracleMajor
public int getOracleMajor()Oracle Major number of the release version.- Returns:
- The Oracle major number of the release version.
-
getOracleMinor
public int getOracleMinor()Oracle Minor number of the release version.- Returns:
- The Oracle minor number of the release version.
-
getMajor
public int getMajor()Major number of the release version.- Returns:
- The major number of the release version.
-
getMinor
public int getMinor()Minor number of the release version.- Returns:
- The minor number of the release version.
-
getPatch
public int getPatch()Patch number of the release version.- Returns:
- The patch number of the release version.
-
getReleaseId
Returns the internal release ID for the release version, or null if not known.- Returns:
- the release ID or null
-
getReleaseDate
Returns the release date for the release version, or null if not known.- Returns:
- the release date or null
-
getReleaseEdition
Returns the name of the edition of the release version, or null if not known.- Returns:
- the release edition or null
-
getNumericVersionString
The numeric version string, without the patch tag.- Returns:
- The release version
-
getVersionString
Release version, suitable for display.- Returns:
- The release version, suitable for display.
-
parseVersion
Returns a KVVersion object representing the specified version string without the release ID, release date,and name parts filled in. This method is basically the inverse of getNumericVersionString(). This method will also parse a full version string (returned from toString()) but only the numeric version portion of the string.- Parameters:
versionString
- version string to parse- Returns:
- a KVVersion object
-
setReleaseId
-
compareTo
- Specified by:
compareTo
in interfaceComparable<KVVersion>
-
equals
-
hashCode
public int hashCode()
-