java.lang.Object
org.seasar.doma.jdbc.criteria.context.Settings
- Direct Known Subclasses:
DeleteSettings,InsertSettings,SelectSettings,UpdateSettings
Represents the settings for a criteria query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the comment for the SQL statement.intReturns the query timeout limit in seconds.Returns the SQL log type.voidsetComment(String comment) Sets the comment for the SQL statement.voidsetQueryTimeout(int queryTimeout) Sets the query timeout limit in seconds.voidsetSqlLogType(SqlLogType sqlLogType) Sets the SQL log type.
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
getComment
Returns the comment for the SQL statement.- Returns:
- the comment. The default value is null.
-
setComment
Sets the comment for the SQL statement.The implementation of
Commentercan use this value.- Parameters:
comment- the comment for the SQL statement
-
getSqlLogType
Returns the SQL log type.- Returns:
- the SQL log type. The default value is
SqlLogType.FORMATTED
-
setSqlLogType
Sets the SQL log type.Specify
SqlLogType.RAWorSqlLogType.NONEfor the sensitive SQL statement.- Parameters:
sqlLogType- the SQL log type
-
getQueryTimeout
public int getQueryTimeout()Returns the query timeout limit in seconds.- Returns:
- the query timeout limit in seconds. The default value is 0.
-
setQueryTimeout
public void setQueryTimeout(int queryTimeout) Sets the query timeout limit in seconds.- Parameters:
queryTimeout- the query timeout limit in seconds. If the value is greater than or equal to 1, it is passed toStatement.setQueryTimeout(int).- See Also:
-