|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.message.Trace
public class Trace
This class represents a trace module.
Field Summary | |
---|---|
static java.lang.String |
COMMAND
The trace module name for commands. |
static java.lang.String |
CONSTRAINT
The trace module name for constraints. |
static java.lang.String |
DATABASE
The trace module name for databases. |
static java.lang.String |
FILE_LOCK
The trace module name for file locks. |
static java.lang.String |
FUNCTION
The trace module name for functions. |
static java.lang.String |
INDEX
The trace module name for indexes. |
static java.lang.String |
JDBC
The trace module name for the JDBC API. |
static java.lang.String |
LOCK
The trace module name for locks. |
static java.lang.String |
LOG
The trace module name for the transaction log. |
static java.lang.String |
PAGE_STORE
The trace module name for the page store. |
static java.lang.String |
SCHEMA
The trace module name for schemas. |
static java.lang.String |
SEQUENCE
The trace module name for sequences. |
static java.lang.String |
SESSION
The trace module name for sessions. |
static java.lang.String |
SETTING
The trace module name for settings. |
static java.lang.String |
TABLE
The trace module name for tables. |
static java.lang.String |
TRIGGER
The trace module name for triggers. |
static java.lang.String |
USER
The trace module name for users. |
Method Summary | |
---|---|
void |
debug(java.lang.String s)
Write a message with trace level DEBUG to the trace system. |
void |
debug(java.lang.String s,
java.lang.Throwable t)
Write a message with trace level DEBUG to the trace system. |
void |
error(java.lang.String s,
java.lang.Throwable t)
Write a message with trace level ERROR to the trace system. |
void |
info(java.lang.String s)
Write a message with trace level INFO to the trace system. |
void |
infoCode(java.lang.String java)
Write Java source code with trace level INFO to the trace system. |
void |
infoSQL(java.lang.String sql,
java.lang.String params,
int count,
long time)
Write a SQL statement with trace level INFO to the trace system. |
boolean |
isDebugEnabled()
Check if the trace level is equal or higher than DEBUG. |
boolean |
isInfoEnabled()
Check if the trace level is equal or higher than INFO. |
void |
setLevel(int level)
Set the trace level of this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMMAND
public static final java.lang.String CONSTRAINT
public static final java.lang.String DATABASE
public static final java.lang.String FUNCTION
public static final java.lang.String FILE_LOCK
public static final java.lang.String INDEX
public static final java.lang.String JDBC
public static final java.lang.String LOCK
public static final java.lang.String LOG
public static final java.lang.String SCHEMA
public static final java.lang.String SESSION
public static final java.lang.String SEQUENCE
public static final java.lang.String SETTING
public static final java.lang.String TABLE
public static final java.lang.String TRIGGER
public static final java.lang.String USER
public static final java.lang.String PAGE_STORE
Method Detail |
---|
public void setLevel(int level)
level
- the new levelpublic boolean isInfoEnabled()
public boolean isDebugEnabled()
public void error(java.lang.String s, java.lang.Throwable t)
s
- the messaget
- the exceptionpublic void info(java.lang.String s)
s
- the messagepublic void infoSQL(java.lang.String sql, java.lang.String params, int count, long time)
sql
- the SQL statementparams
- the parameters used, in the for {1:...}count
- the update counttime
- the time it took to run the statement in mspublic void debug(java.lang.String s)
s
- the messagepublic void debug(java.lang.String s, java.lang.Throwable t)
s
- the messaget
- the exceptionpublic void infoCode(java.lang.String java)
java
- the source code
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |