Enum UNITS

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UNITS>

    public enum UNITS
    extends java.lang.Enum<UNITS>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Enum fromdbvalue​(java.lang.String obj)
      Perform the reverse lookup from todbvalue(Object) converting the DB's enums which contain invalid characters to the upper-cased CODE-based enums used elsewhere.
      static java.util.Map<java.lang.String,​java.lang.Integer> listSqlTypes()  
      java.lang.String todbvalue​(java.lang.Object obj)
      Map from the CODE-based enums which are used in Java, Ice, etc.
      static UNITS valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static UNITS[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ELECTRICPOTENTIAL

        public static final UNITS ELECTRICPOTENTIAL
      • FREQUENCY

        public static final UNITS FREQUENCY
      • LENGTH

        public static final UNITS LENGTH
      • PRESSURE

        public static final UNITS PRESSURE
      • POWER

        public static final UNITS POWER
      • TEMPERATURE

        public static final UNITS TEMPERATURE
      • TIME

        public static final UNITS TIME
    • Method Detail

      • values

        public static UNITS[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UNITS c : UNITS.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UNITS valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • listSqlTypes

        public static java.util.Map<java.lang.String,​java.lang.Integer> listSqlTypes()
      • todbvalue

        public java.lang.String todbvalue​(java.lang.Object obj)
        Map from the CODE-based enums which are used in Java, Ice, etc. to the SYMBOL-based enum present in the DB which contain invalid characters for most languages.
        Parameters:
        obj - can't be null
      • fromdbvalue

        public java.lang.Enum fromdbvalue​(java.lang.String obj)
        Perform the reverse lookup from todbvalue(Object) converting the DB's enums which contain invalid characters to the upper-cased CODE-based enums used elsewhere.