com.sybase.persistence
Class LogLevel

java.lang.Object
  extended by com.sybase.persistence.LogLevel

public abstract class LogLevel
extends java.lang.Object


Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static int OFF
           
static int TRACE
           
static int WARN
           
 
Constructor Summary
LogLevel()
           
 
Method Summary
static int compareLevels(int level1, int level2)
          Compare two LogLevel objects.
static java.lang.String toString(int level)
          translate int type log level to string type.
static int valueOf(java.lang.String level)
          parse string type level to int type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE

public static final int TRACE
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

FATAL

public static final int FATAL
See Also:
Constant Field Values

OFF

public static final int OFF
See Also:
Constant Field Values
Constructor Detail

LogLevel

public LogLevel()
Method Detail

compareLevels

public static int compareLevels(int level1,
                                int level2)
Compare two LogLevel objects.

Parameters:
level1 - the first LogLevel object to compare
level2 - the second LogLevel object to compare
Returns:
0 if equals, 1 if first level is higher, 2 if second level is higher.

toString

public static java.lang.String toString(int level)
translate int type log level to string type.

Parameters:
level - int type log level
Returns:
corresponding string type log level.

valueOf

public static int valueOf(java.lang.String level)
parse string type level to int type.

Parameters:
level - string type log level
Returns:
corresponding int type log level.