Class JVMInfo

java.lang.Object
org.apache.derby.iapi.services.info.JVMInfo

public abstract class JVMInfo extends Object
This class is used to determine which Java specification Derby will run at. For a useful discussion of how this class is used, please see DERBY-3176.
  • Field Details

    • JDK_ID

      public static final int JDK_ID
      The JVM's runtime environment.
      • 1 - not used was JDK 1.1
      • 2 - not used, was for JDK 1.2 and 1.3
      • 4 - not used, was for JDK 1.4.0 or 1.4.1
      • 5 - not used, was for JDK 1.4.2
      • 6 - not used, was for JDK 1.5
      • 7 - not used, was for JDK 1.6
      • 8 - not used, was for JDK 1.7
      • 9 - J2SE_18 - JDK 1.8
    • J2SE_18

      public static final int J2SE_18
      See Also:
  • Constructor Details

    • JVMInfo

      public JVMInfo()
  • Method Details

    • jdbcMajorVersion

      public static int jdbcMajorVersion()
    • jdbcMinorVersion

      public static int jdbcMinorVersion()
    • derbyVMLevel

      public static String derbyVMLevel()
      Return Derby's understanding of the virtual machine's environment.
    • getSystemProperty

      private static String getSystemProperty(String name)
      Get system property.
      Parameters:
      name - name of the property
    • isSunJVM

      public static final boolean isSunJVM()
      Check whether this is sun jvm.
      Returns:
      true if it is sun jvm, false if it is not sun jvm
    • isIBMJVM

      public static final boolean isIBMJVM()
      Check whether this is IBM jvm.
      Returns:
      true if it is IBM jvm, false if it is not IBM jvm
    • javaDump

      public static void javaDump()
      For IBM jvm, this method will dump more diagnostic information to file. JVM specific code for other vender can be added. DERBY-4856
    • hasJNDI

      public static boolean hasJNDI()
      Determine whether we are running in a constrained environment.
      Returns:
      true if JNDI is available