Top Description Fields Constructors Methods
org.apache.derby.tools

public Class sysinfo

extends Object
Class Inheritance
Imports
org.apache.derby.shared.common.info.ProductVersionHolder, .JVMInfo, org.apache.derby.impl.tools.sysinfo.Main

This class displays system information to system out. To run from the command-line, enter the following:

java org.apache.derby.tools.sysinfo

Also 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.m3 where m1 is the major release version, m2 is the minor release version, and m3 is 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

Modifier and TypeField and Description
public static final String
CLIENT

The genus name for the client code.

public static final String
DBMS

The genus name for the Apache Derby code.

public static final String
NET

The genus name for the network server code.

public static final String
OPTIONALTOOLS

The genus name for the optional tools code.

public static final String
TOOLS

The genus name for the tools code.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the build number, or -1 if the information is not found.
getBuildNumber
()

gets the build number for the Apache Derby embedded library

public static String

Returns:

the build number, or ???? if the information is not found.
getBuildNumber
(String
which library to get the build number for. Valid inputs are DBMS, TOOLS, NET, CLIENT.
genus
)

gets the build number for the specified library

public static void
public static int

Returns:

the major version. Returns -1 if not found.
getMajorVersion
()

gets the major version of the Apache Derby embedded code.

public static int

Returns:

the major version. Return -1 if the information is not found.
getMajorVersion
(String
which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT
genus
)

gets the major version of the specified code library.

public static int

Returns:

the minor version. Returns -1 if not found.
getMinorVersion
()

gets the minor version of the Apache Derby embedded code.

public static int

Returns:

the minor version. Return -1 if the information is not found.
getMinorVersion
(String
which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT.
genus
)

gets the minor version of the specified code library.

public static String

Returns:

the name
getProductName
()

gets the product name for the Apache Derby embedded library

public static String

Returns:

the name.
getProductName
(String
which library to get the name for
genus
)

gets the external name for the specified code library.

public static String
getVersionString()

Return the version information string for the specified library including alpha or beta indicators.

public static String
getVersionString(String genus)

Return the version information string for the Apache Derby embedded library including alpha or beta indicators.

public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLIENTback to summary
public static final String CLIENT

The genus name for the client code. Use this to determine the version of code in derbyclient.jar

DBMSback to summary
public static final 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.

NETback to summary
public static final String NET

The genus name for the network server code. Use this to determine the version of code in derbynet.jar

OPTIONALTOOLSback to summary
public static final String OPTIONALTOOLS

The genus name for the optional tools code. Use this to determine the version of code in derbyoptionaltools.jar

TOOLSback to summary
public static final String TOOLS

The genus name for the tools code. Use this to determine the version of code in derbytools.jar

Constructor Detail

sysinfoback to summary
private sysinfo()

Method Detail

getBuildNumberback to summary
public static String getBuildNumber()

gets the build number for the Apache Derby embedded library

Returns:String

the build number, or -1 if the information is not found.

getBuildNumberback to summary
public static String getBuildNumber(String genus)

gets the build number for the specified library

Parameters
genus:String

which library to get the build number for. Valid inputs are DBMS, TOOLS, NET, CLIENT.

Returns:String

the build number, or ???? if the information is not found.

getInfoback to summary
public static void getInfo(PrintWriter out)
getMajorVersionback to summary
public static int getMajorVersion()

gets the major version of the Apache Derby embedded code.

Returns:int

the major version. Returns -1 if not found.

getMajorVersionback to summary
public static int getMajorVersion(String genus)

gets the major version of the specified code library.

Parameters
genus:String

which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT

Returns:int

the major version. Return -1 if the information is not found.

getMinorVersionback to summary
public static int getMinorVersion()

gets the minor version of the Apache Derby embedded code.

Returns:int

the minor version. Returns -1 if not found.

getMinorVersionback to summary
public static int getMinorVersion(String genus)

gets the minor version of the specified code library.

Parameters
genus:String

which library to get the version of. Valid inputs include DBMS, TOOLS, NET, CLIENT.

Returns:int

the minor version. Return -1 if the information is not found.

getProductNameback to summary
public static String getProductName()

gets the product name for the Apache Derby embedded library

Returns:String

the name

getProductNameback to summary
public static String getProductName(String genus)

gets the external name for the specified code library.

Parameters
genus:String

which library to get the name for

Returns:String

the name.

getVersionStringback to summary
public static String getVersionString()

Return the version information string for the specified library including alpha or beta indicators.

getVersionStringback to summary
public static String getVersionString(String genus)

Return the version information string for the Apache Derby embedded library including alpha or beta indicators.

mainback to summary
public static void main(String[] args)