Package org.eclipse.persistence.logging
Enum LogCategory
- java.lang.Object
-
- java.lang.Enum<LogCategory>
-
- org.eclipse.persistence.logging.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"
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
CACHE
CONNECTION
DDL
DMS
EJB
EVENT
JPA
JPARS
METADATA
METAMODEL
MISC
MONITORING
MOXY
PROCESSOR
PROPAGATION
PROPERTIES
QUERY
SEQUENCING
SERVER
SQL
THREAD
TRANSACTION
WEAVER
-
Field Summary
Fields Modifier and Type Field Description static int
length
Logging categories enumeration length.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getId()
Get logging category ID.java.lang.String
getLogLevelProperty()
Get log level property name for this logging category.java.lang.String
getName()
Get logging category name.java.lang.String
getNameSpace()
Get logger name space for this logging category.static LogCategory
toValue(java.lang.String name)
ReturnsLogCategory
object holding the value of the specifiedString
.static LogCategory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LogCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final LogCategory ALL
-
CACHE
public static final LogCategory CACHE
-
CONNECTION
public static final LogCategory CONNECTION
-
DDL
public static final LogCategory DDL
-
DMS
public static final LogCategory DMS
-
EJB
public static final LogCategory EJB
-
EVENT
public static final LogCategory EVENT
-
JPA
public static final LogCategory JPA
-
JPARS
public static final LogCategory JPARS
-
METADATA
public static final LogCategory METADATA
-
METAMODEL
public static final LogCategory METAMODEL
-
MISC
public static final LogCategory MISC
-
MONITORING
public static final LogCategory MONITORING
-
MOXY
public static final LogCategory MOXY
-
PROCESSOR
public static final LogCategory PROCESSOR
-
PROPAGATION
public static final LogCategory PROPAGATION
-
PROPERTIES
public static final LogCategory PROPERTIES
-
QUERY
public static final LogCategory QUERY
-
SEQUENCING
public static final LogCategory SEQUENCING
-
SERVER
public static final LogCategory SERVER
-
SQL
public static final LogCategory SQL
-
TRANSACTION
public static final LogCategory TRANSACTION
-
WEAVER
public static final LogCategory WEAVER
-
THREAD
public static final LogCategory THREAD
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
toValue
public static final LogCategory toValue(java.lang.String name)
ReturnsLogCategory
object holding the value of the specifiedString
.- Parameters:
name
- TheString
to be parsed.- Returns:
LogCategory
object holding the value represented by the string argument ornull
when there exists no correspondingLogCategory
object to provided argument value.null
value of the string argument is converted toALL
.
-
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.
-
-