程序包 com.mysql.cj
类 ServerVersion
- java.lang.Object
-
- com.mysql.cj.ServerVersion
-
- 所有已实现的接口:
Comparable<ServerVersion>
public class ServerVersion extends Object implements Comparable<ServerVersion>
A server version.
-
-
构造器概要
构造器 构造器 说明 ServerVersion(int major, int minor, int subminor)ServerVersion(String completeVersion, int major, int minor, int subminor)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intcompareTo(ServerVersion other)booleanequals(Object obj)intgetMajor()intgetMinor()intgetSubminor()inthashCode()booleanmeetsMinimum(ServerVersion min)Does this version meet the minimum specified by `min'?static ServerVersionparseVersion(String versionString)Parse the server version into major/minor/subminor.StringtoString()A string representation of this version.
-
-
-
构造器详细资料
-
ServerVersion
public ServerVersion(String completeVersion, int major, int minor, int subminor)
-
ServerVersion
public ServerVersion(int major, int minor, int subminor)
-
-
方法详细资料
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getSubminor
public int getSubminor()
-
toString
public String toString()
A string representation of this version. If this version was parsed from, or provided with, a "complete" string which may contain more than just the version number, this string is returned verbatim. Otherwise, a string representation of the version numbers is given.
-
compareTo
public int compareTo(ServerVersion other)
- 指定者:
compareTo在接口中Comparable<ServerVersion>
-
meetsMinimum
public boolean meetsMinimum(ServerVersion min)
Does this version meet the minimum specified by `min'?- 参数:
min- The minimum version to compare against.- 返回:
- true if version meets the minimum specified by `min'
-
parseVersion
public static ServerVersion parseVersion(String versionString)
Parse the server version into major/minor/subminor.- 参数:
versionString- string version representation- 返回:
ServerVersion
-
-