- All Superinterfaces:
Query
- All Known Implementing Classes:
AbstractSelectQuery,CountQuery,CriteriaQuery,SqlFileSelectQuery,SqlSelectQuery
A query for selecting data from a database.
This interface defines operations specific to SELECT statements.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the fetch size for this query.Returns the fetch type for this query.intReturns the maximum number of rows to be returned.Returns the options for this select query.getSql()Returns the prepared SQL for this select query.Returns the SQL log type for this query.booleanReturns whether the query is expected to return at least one result.booleanReturns whether the result mapping is ensured.booleanReturns whether the result should be processed as a stream.Methods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepare
-
Method Details
-
getSql
PreparedSql getSql()Returns the prepared SQL for this select query. -
getOptions
SelectOptions getOptions()Returns the options for this select query.- Returns:
- the select options
-
isResultEnsured
boolean isResultEnsured()Returns whether the query is expected to return at least one result.- Returns:
trueif the query is expected to return at least one result
-
isResultMappingEnsured
boolean isResultMappingEnsured()Returns whether the result mapping is ensured.- Returns:
trueif the result mapping is ensured
-
getFetchType
FetchType getFetchType()Returns the fetch type for this query.- Returns:
- the fetch type
-
getFetchSize
int getFetchSize()Returns the fetch size for this query.- Returns:
- the fetch size
-
getMaxRows
int getMaxRows()Returns the maximum number of rows to be returned.- Returns:
- the maximum number of rows
-
getSqlLogType
SqlLogType getSqlLogType()Returns the SQL log type for this query.- Returns:
- the SQL log type
-
isResultStream
boolean isResultStream()Returns whether the result should be processed as a stream.- Returns:
trueif the result should be processed as a stream
-