|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.jdbc.util.SQLStatementLogger
public class SQLStatementLogger
Centralize logging handling for SQL statements.
Constructor Summary | |
---|---|
SQLStatementLogger()
Constructs a new SQLStatementLogger instance. |
|
SQLStatementLogger(boolean logToStdout,
boolean formatSql)
Constructs a new SQLStatementLogger instance. |
Method Summary | |
---|---|
boolean |
isFormatSql()
Getter for property 'formatSql'. |
boolean |
isLogToStdout()
Getter for property 'logToStdout'. |
void |
logStatement(String statement,
FormatStyle style)
Log a SQL statement string. |
void |
setFormatSql(boolean formatSql)
Setter for property 'formatSql'. |
void |
setLogToStdout(boolean logToStdout)
Setter for property 'logToStdout'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLStatementLogger()
public SQLStatementLogger(boolean logToStdout, boolean formatSql)
logToStdout
- Should we log to STDOUT in addition to our internal logger.formatSql
- Should we format SQL ('prettify') prior to logging.Method Detail |
---|
public boolean isLogToStdout()
setLogToStdout(boolean)
public void setLogToStdout(boolean logToStdout)
logToStdout
- Value to set for property 'logToStdout'.public boolean isFormatSql()
setFormatSql(boolean)
public void setFormatSql(boolean formatSql)
formatSql
- Value to set for property 'formatSql'.public void logStatement(String statement, FormatStyle style)
statement
- The SQL statement.style
- The requested formatting style.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |