org.apache.log4j.jdbcplus
Class JDBCLogType

java.lang.Object
  |
  +--org.apache.log4j.jdbcplus.JDBCLogType

public class JDBCLogType
extends Object

This class contains all constants which are necessary to define a columns log-type.

Since:
1.0
Version:
see jdbcappender.jar/META-INF/MANIFEST.MF for version information
Author:
Thomas Fenner, Danko Mannhaupt, many contributions by the community

Field Summary
static int CAT
          The column gets the categorys name.
static String CAT_VAR
           
static int DYNAMIC
          The value must be a JDBCColumnHandler, which returns the columns value.
static String DYNAMIC_VAR
           
static int EMPTY
          The column will be ignored.
static String EMPTY_VAR
           
static int ID
          The value must be a JDBCIDHandler, which returns the columns value.
static String ID_VAR
           
static int INC
          The column gets a number, which begins with 1 and will be incremented with every log-message.
static String INC_VAR
           
static int IPRIO
          The column gets the integer value of the priority of the log-message.
static String IPRIO_VAR
           
static int LAYOUT
          The column with LAYOUT:x will get the xth part of the layout
static String LAYOUT_VAR
           
static int MDC
          The column will get the MDC (mapped diagnostic context) for the given key
static String MDC_VAR
           
static int MSG
          The column will get the non-layouted log-message.
static String MSG_VAR
           
static int NDC
          The column will get the NDC (nested diagnostic context).
static String NDC_VAR
           
static int ORACLE_SEQUENCE
          The column gets the result of an Oracle sequence call..
static String ORACLE_SEQUENCE_VAR
           
static int PRIO
          The column gets the priority of the log-message.
static String PRIO_VAR
           
static int STATIC
          The column always gets this value.
static String STATIC_VAR
           
static int THREAD
          The column gets the threads name.
static String THREAD_VAR
           
static int THROWABLE
          The column gets the throwable information, if available.
static String THROWABLE_VAR
           
static int TIMESTAMP
          The column gets an actual timestamp.
static String TIMESTAMP_VAR
           
 
Constructor Summary
JDBCLogType()
           
 
Method Summary
static boolean isLogType(int _lt)
          Check the LogType attribute
static boolean isLogType(String _lt)
          Checks the LogType attribute
static int parseLogType(String _lt)
          Transforms the String-constant in the Number-constant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG

public static final int MSG
The column will get the non-layouted log-message. No explicit value necessary.

See Also:
Constant Field Values

MSG_VAR

public static final String MSG_VAR
See Also:
Constant Field Values

PRIO

public static final int PRIO
The column gets the priority of the log-message.

See Also:
Constant Field Values

PRIO_VAR

public static final String PRIO_VAR
See Also:
Constant Field Values

CAT

public static final int CAT
The column gets the categorys name.

See Also:
Constant Field Values

CAT_VAR

public static final String CAT_VAR
See Also:
Constant Field Values

THREAD

public static final int THREAD
The column gets the threads name.

See Also:
Constant Field Values

THREAD_VAR

public static final String THREAD_VAR
See Also:
Constant Field Values

ID

public static final int ID
The value must be a JDBCIDHandler, which returns the columns value.

See Also:
Constant Field Values

ID_VAR

public static final String ID_VAR
See Also:
Constant Field Values

STATIC

public static final int STATIC
The column always gets this value.

See Also:
Constant Field Values

STATIC_VAR

public static final String STATIC_VAR
See Also:
Constant Field Values

TIMESTAMP

public static final int TIMESTAMP
The column gets an actual timestamp.

See Also:
Constant Field Values

TIMESTAMP_VAR

public static final String TIMESTAMP_VAR
See Also:
Constant Field Values

EMPTY

public static final int EMPTY
The column will be ignored.

See Also:
Constant Field Values

EMPTY_VAR

public static final String EMPTY_VAR
See Also:
Constant Field Values

INC

public static final int INC
The column gets a number, which begins with 1 and will be incremented with every log-message.

See Also:
Constant Field Values

INC_VAR

public static final String INC_VAR
See Also:
Constant Field Values

DYNAMIC

public static final int DYNAMIC
The value must be a JDBCColumnHandler, which returns the columns value.

See Also:
Constant Field Values

DYNAMIC_VAR

public static final String DYNAMIC_VAR
See Also:
Constant Field Values

THROWABLE

public static final int THROWABLE
The column gets the throwable information, if available.

See Also:
Constant Field Values

THROWABLE_VAR

public static final String THROWABLE_VAR
See Also:
Constant Field Values

LAYOUT

public static final int LAYOUT
The column with LAYOUT:x will get the xth part of the layout

See Also:
Constant Field Values

LAYOUT_VAR

public static final String LAYOUT_VAR
See Also:
Constant Field Values

NDC

public static final int NDC
The column will get the NDC (nested diagnostic context).

See Also:
Constant Field Values

NDC_VAR

public static final String NDC_VAR
See Also:
Constant Field Values

MDC

public static final int MDC
The column will get the MDC (mapped diagnostic context) for the given key

See Also:
Constant Field Values

MDC_VAR

public static final String MDC_VAR
See Also:
Constant Field Values

IPRIO

public static final int IPRIO
The column gets the integer value of the priority of the log-message.

See Also:
Constant Field Values

IPRIO_VAR

public static final String IPRIO_VAR
See Also:
Constant Field Values

ORACLE_SEQUENCE

public static final int ORACLE_SEQUENCE
The column gets the result of an Oracle sequence call..

See Also:
Constant Field Values

ORACLE_SEQUENCE_VAR

public static final String ORACLE_SEQUENCE_VAR
See Also:
Constant Field Values
Constructor Detail

JDBCLogType

public JDBCLogType()
Method Detail

isLogType

public static boolean isLogType(int _lt)
Check the LogType attribute

Parameters:
_lt - Description of Parameter
Returns:
The LogType value

isLogType

public static boolean isLogType(String _lt)
Checks the LogType attribute

Parameters:
_lt - Description of Parameter
Returns:
The LogType value

parseLogType

public static int parseLogType(String _lt)
Transforms the String-constant in the Number-constant

Parameters:
_lt - Description of Parameter
Returns:
Description of the Returned Value


Copyright 2000-2004 Apache Software Foundation.