Class sysinfo
- java.lang.Object
-
- org.apache.derby.tools.sysinfo
-
public class sysinfo extends java.lang.ObjectThis class displays system information to system out. To run from the command-line, enter the following:java org.apache.derby.tools.sysinfoAlso available on this class are methods which allow you to determine the version of the code for the system without actually booting a database. Please note that this is the Derby version of the .jar files, not of your databases.
The numbering scheme for released Derby products is
m1.m2.m3wherem1is the major release version,m2is the minor release version, andm3is the maintenance level. Versions of the product with the same major and minor version numbers are considered feature compatible.Valid major and minor versions are always greater than zero. Valid maintenance versions are greater than or equal to zero.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIENTThe genus name for the client code.static java.lang.StringDBMSThe genus name for the Apache Derby code.static java.lang.StringNETThe genus name for the network server code.static java.lang.StringOPTIONALTOOLSThe genus name for the optional tools code.static java.lang.StringTOOLSThe genus name for the tools code.
-
Constructor Summary
Constructors Modifier Constructor Description privatesysinfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetBuildNumber()gets the build number for the Apache Derby embedded librarystatic java.lang.StringgetBuildNumber(java.lang.String genus)gets the build number for the specified librarystatic voidgetInfo(java.io.PrintWriter out)static intgetMajorVersion()gets the major version of the Apache Derby embedded code.static intgetMajorVersion(java.lang.String genus)gets the major version of the specified code library.static intgetMinorVersion()gets the minor version of the Apache Derby embedded code.static intgetMinorVersion(java.lang.String genus)gets the minor version of the specified code library.static java.lang.StringgetProductName()gets the product name for the Apache Derby embedded librarystatic java.lang.StringgetProductName(java.lang.String genus)gets the external name for the specified code library.static java.lang.StringgetVersionString()Return the version information string for the specified library including alpha or beta indicators.static java.lang.StringgetVersionString(java.lang.String genus)Return the version information string for the Apache Derby embedded library including alpha or beta indicators.static voidmain(java.lang.String[] args)
-
-
-
Field Detail
-
DBMS
public static final java.lang.String DBMS
The genus name for the Apache Derby code. Use this to determine the version of the Apache Derby embedded code in derby.jar.- See Also:
- Constant Field Values
-
TOOLS
public static final java.lang.String TOOLS
The genus name for the tools code. Use this to determine the version of code in derbytools.jar- See Also:
- Constant Field Values
-
NET
public static final java.lang.String NET
The genus name for the network server code. Use this to determine the version of code in derbynet.jar- See Also:
- Constant Field Values
-
CLIENT
public static final java.lang.String CLIENT
The genus name for the client code. Use this to determine the version of code in derbyclient.jar- See Also:
- Constant Field Values
-
OPTIONALTOOLS
public static final java.lang.String OPTIONALTOOLS
The genus name for the optional tools code. Use this to determine the version of code in derbyoptionaltools.jar- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
getMajorVersion
public static int getMajorVersion()
gets the major version of the Apache Derby embedded code.- Returns:
- the major version. Returns -1 if not found.
-
getMajorVersion
public static int getMajorVersion(java.lang.String genus)
gets the major version of the specified code library.- Parameters:
genus- which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT- Returns:
- the major version. Return -1 if the information is not found.
-
getMinorVersion
public static int getMinorVersion()
gets the minor version of the Apache Derby embedded code.- Returns:
- the minor version. Returns -1 if not found.
-
getMinorVersion
public static int getMinorVersion(java.lang.String genus)
gets the minor version of the specified code library.- Parameters:
genus- which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT.- Returns:
- the minor version. Return -1 if the information is not found.
-
getBuildNumber
public static java.lang.String getBuildNumber()
gets the build number for the Apache Derby embedded library- Returns:
- the build number, or -1 if the information is not found.
-
getBuildNumber
public static java.lang.String getBuildNumber(java.lang.String genus)
gets the build number for the specified library- Parameters:
genus- which library to get the build number for. Valid inputs are DBMS, TOOLS, NET, CLIENT.- Returns:
- the build number, or ???? if the information is not found.
-
getProductName
public static java.lang.String getProductName()
gets the product name for the Apache Derby embedded library- Returns:
- the name
-
getProductName
public static java.lang.String getProductName(java.lang.String genus)
gets the external name for the specified code library.- Parameters:
genus- which library to get the name for- Returns:
- the name.
-
getVersionString
public static java.lang.String getVersionString()
Return the version information string for the specified library including alpha or beta indicators.
-
getVersionString
public static java.lang.String getVersionString(java.lang.String genus)
Return the version information string for the Apache Derby embedded library including alpha or beta indicators.
-
getInfo
public static void getInfo(java.io.PrintWriter out)
-
-