Enum LogCategory

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

    public enum LogCategory
    extends java.lang.Enum<LogCategory>
    EclipseLink categories used for logging name space. The EclipseLink categories for the logging name space are:
     ALL  = "all"
     CACHE  = "cache"
     CONNECTION  = "connection"
     DDL  = "ddl"
     DMS  = "dms"
     EJB  = "ejb"
     EJB_OR_METADATA = "ejb_or_metadata"
     EVENT  = "event"
     JPA  = "jpa"
     JPARS  = "jpars"
     METADATA  = "metadata"
     METAMODEL  = "metamodel"
     MONITORING  = "monitoring"
     MOXY  = "moxy"
     PROPAGATION  = "propagation"
     PROPERTIES  = "properties"
     QUERY  = "query"
     SEQUENCING  = "sequencing"
     SERVER  = "server"
     SQL  = "sql"
     THREAD  = "thread"
     TRANSACTION  = "transaction"
     WEAVER  = "weaver"
    • Field Detail

      • length

        public static final int length
        Logging categories enumeration length.
    • Method Detail

      • values

        public static LogCategory[] 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 (LogCategory c : LogCategory.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LogCategory 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
      • toValue

        public static final LogCategory toValue​(java.lang.String name)
        Returns LogCategory object holding the value of the specified String.
        Parameters:
        name - The String to be parsed.
        Returns:
        LogCategory object holding the value represented by the string argument or null when there exists no corresponding LogCategory object to provided argument value. null value of the string argument is converted to ALL.
      • getId

        public byte getId()
        Get logging category ID.
        Returns:
        Logging category ID.
      • getName

        public java.lang.String getName()
        Get logging category name.
        Returns:
        Logging category name.
      • getNameSpace

        public java.lang.String getNameSpace()
        Get logger name space for this logging category.
        Returns:
        Logger name space for this logging category.
      • getLogLevelProperty

        public java.lang.String getLogLevelProperty()
        Get log level property name for this logging category.
        Returns:
        Log level property name for this logging category.