Record Class BackendVersionInfo
java.lang.Object
java.lang.Record
org.tentackle.sql.BackendVersionInfo
- Record Components:
majorVersion- the database major versionminorVersion- the database minor version
The version of a backend's database, as reported by its JDBC driver metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionBackendVersionInfo(int majorVersion, int minorVersion) Creates an instance of aBackendVersionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themajorVersionrecord component.intReturns the value of theminorVersionrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
BackendVersionInfo
public BackendVersionInfo(int majorVersion, int minorVersion) Creates an instance of aBackendVersionInforecord class.- Parameters:
majorVersion- the value for themajorVersionrecord componentminorVersion- the value for theminorVersionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
majorVersion
public int majorVersion()Returns the value of themajorVersionrecord component.- Returns:
- the value of the
majorVersionrecord component
-
minorVersion
public int minorVersion()Returns the value of theminorVersionrecord component.- Returns:
- the value of the
minorVersionrecord component
-