org.apache.derby.iapi.services.info
Class Version

java.lang.Object
  extended by org.apache.derby.iapi.services.info.Version
All Implemented Interfaces:
VersionMBean

public class Version
extends java.lang.Object
implements VersionMBean

This implementation of VersionMBean instruments a ProductVersionHolder object. The MBean interface is implemented with callbacks to the wrapped object which gives detailed version information.

See Also:
ProductVersionHolder

Field Summary
private  java.lang.String permissionName
          Permission target name for the object the version information applies to.
private  ProductVersionHolder versionInfo
           
 
Constructor Summary
Version(ProductVersionHolder pvh, java.lang.String permissionName)
           
 
Method Summary
private  void checkMonitor()
          Ensure caller has permission to monitor Derby.
 java.lang.String getBuildNumber()
           
 int getMaintenanceVersion()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.lang.String getProductName()
           
 java.lang.String getProductTechnologyName()
           
 java.lang.String getProductVendorName()
           
 java.lang.String getVersionString()
          Return the full version string.
 boolean isAlpha()
           
 boolean isBeta()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionInfo

private final ProductVersionHolder versionInfo

permissionName

private final java.lang.String permissionName
Permission target name for the object the version information applies to.

Constructor Detail

Version

public Version(ProductVersionHolder pvh,
               java.lang.String permissionName)
Method Detail

checkMonitor

private void checkMonitor()
Ensure caller has permission to monitor Derby.


getProductName

public java.lang.String getProductName()
Specified by:
getProductName in interface VersionMBean

getProductTechnologyName

public java.lang.String getProductTechnologyName()
Specified by:
getProductTechnologyName in interface VersionMBean

getProductVendorName

public java.lang.String getProductVendorName()
Specified by:
getProductVendorName in interface VersionMBean

getVersionString

public java.lang.String getVersionString()
Description copied from interface: VersionMBean
Return the full version string.

Specified by:
getVersionString in interface VersionMBean
Returns:
Full version string.

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface VersionMBean

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface VersionMBean

getMaintenanceVersion

public int getMaintenanceVersion()
Specified by:
getMaintenanceVersion in interface VersionMBean

getBuildNumber

public java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface VersionMBean

isBeta

public boolean isBeta()
Specified by:
isBeta in interface VersionMBean

isAlpha

public boolean isAlpha()
Specified by:
isAlpha in interface VersionMBean

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.