public class Settings
extends java.lang.Object
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComment()
Returns the comment for the SQL statement.
|
int |
getQueryTimeout()
Returns the query timeout limit in seconds.
|
SqlLogType |
getSqlLogType()
Returns the SQL log type.
|
void |
setComment(java.lang.String comment)
Sets the comment for the SQL statement.
|
void |
setQueryTimeout(int queryTimeout)
Sets the query timeout limit in seconds.
|
void |
setSqlLogType(SqlLogType sqlLogType)
Sets the SQL log type.
|
public java.lang.String getComment()
public void setComment(java.lang.String comment)
The implementation of Commenter can use this value.
comment - the comment for the SQL statementpublic SqlLogType getSqlLogType()
SqlLogType.FORMATTEDpublic void setSqlLogType(SqlLogType sqlLogType)
Specify SqlLogType.RAW or SqlLogType.NONE for the sensitive SQL statement.
sqlLogType - the SQL log typepublic int getQueryTimeout()
public void setQueryTimeout(int queryTimeout)
queryTimeout - the query timeout limit in seconds. If the value is greater than or equal
to 1, it is passed to Statement.setQueryTimeout(int).Statement.setQueryTimeout(int)