Enum LogCategory

java.lang.Object
java.lang.Enum<LogCategory>
org.eclipse.persistence.logging.LogCategory
All Implemented Interfaces:
Serializable, Comparable<LogCategory>

public enum LogCategory extends Enum<LogCategory>
EclipseLink categories used for logging name space. The EclipseLink categories for the logging name space are:
Logging categories
 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"
  • Enum Constant Details

  • Field Details

    • length

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

    • values

      public static LogCategory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LogCategory valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toValue

      public static final LogCategory toValue(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 String getName()
      Get logging category name.
      Returns:
      Logging category name.
    • getNameSpace

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

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