public abstract class AbstractSelectQuery extends AbstractQuery implements SelectQuery
| Modifier and Type | Field and Description |
|---|---|
protected EntityType<?> |
entityType |
protected int |
fetchSize |
protected FetchType |
fetchType |
protected int |
maxRows |
protected SelectOptions |
options |
protected java.util.Map<java.lang.String,org.seasar.doma.internal.expr.Value> |
parameters |
protected boolean |
resultEnsured |
protected boolean |
resultMappingEnsured |
protected boolean |
resultStream |
protected PreparedSql |
sql |
protected SqlLogType |
sqlLogType |
callerClassName, callerMethodName, config, message, method, queryTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value) |
void |
addParameters(java.util.Map<java.lang.String,org.seasar.doma.internal.expr.Value> parameters) |
protected void |
buildSql(java.util.function.BiFunction<org.seasar.doma.internal.expr.ExpressionEvaluator,java.util.function.Function<org.seasar.doma.internal.jdbc.sql.node.ExpandNode,java.util.List<java.lang.String>>,PreparedSql> sqlBuilder) |
void |
clearParameters() |
protected void |
executeCount(SqlNode sqlNode) |
protected java.util.List<java.lang.String> |
expandColumns(org.seasar.doma.internal.jdbc.sql.node.ExpandNode node) |
int |
getFetchSize() |
FetchType |
getFetchType() |
int |
getMaxRows() |
SelectOptions |
getOptions() |
PreparedSql |
getSql() |
SqlLogType |
getSqlLogType() |
boolean |
isResultEnsured() |
boolean |
isResultMappingEnsured() |
boolean |
isResultStream() |
void |
prepare() |
protected void |
prepareOptions() |
protected abstract void |
prepareSql() |
void |
setEntityType(EntityType<?> entityType) |
void |
setFetchSize(int fetchSize) |
void |
setFetchType(FetchType fetchType) |
void |
setMaxRows(int maxRows) |
void |
setOptions(SelectOptions options) |
void |
setResultEnsured(boolean resultEnsured) |
void |
setResultMappingEnsured(boolean resultMappingEnsured) |
void |
setResultStream(boolean resultStream) |
void |
setSqlLogType(SqlLogType sqlLogType) |
java.lang.String |
toString() |
comment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeoutprotected final java.util.Map<java.lang.String,org.seasar.doma.internal.expr.Value> parameters
protected SelectOptions options
protected boolean resultEnsured
protected boolean resultMappingEnsured
protected FetchType fetchType
protected int fetchSize
protected int maxRows
protected EntityType<?> entityType
protected PreparedSql sql
protected SqlLogType sqlLogType
protected boolean resultStream
public void prepare()
prepare in interface Queryprepare in class AbstractQueryprotected void prepareOptions()
protected abstract void prepareSql()
protected void buildSql(java.util.function.BiFunction<org.seasar.doma.internal.expr.ExpressionEvaluator,java.util.function.Function<org.seasar.doma.internal.jdbc.sql.node.ExpandNode,java.util.List<java.lang.String>>,PreparedSql> sqlBuilder)
protected java.util.List<java.lang.String> expandColumns(org.seasar.doma.internal.jdbc.sql.node.ExpandNode node)
protected void executeCount(SqlNode sqlNode)
public SelectOptions getOptions()
getOptions in interface SelectQuerypublic void setOptions(SelectOptions options)
public void addParameter(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value)
public void addParameters(java.util.Map<java.lang.String,org.seasar.doma.internal.expr.Value> parameters)
public void clearParameters()
public boolean isResultEnsured()
isResultEnsured in interface SelectQuerypublic void setResultEnsured(boolean resultEnsured)
public boolean isResultMappingEnsured()
isResultMappingEnsured in interface SelectQuerypublic void setResultMappingEnsured(boolean resultMappingEnsured)
public FetchType getFetchType()
getFetchType in interface SelectQuerypublic void setFetchType(FetchType fetchType)
public int getFetchSize()
getFetchSize in interface SelectQuerypublic void setFetchSize(int fetchSize)
public int getMaxRows()
getMaxRows in interface SelectQuerypublic void setMaxRows(int maxRows)
public SqlLogType getSqlLogType()
getSqlLogType in interface SelectQuerypublic void setSqlLogType(SqlLogType sqlLogType)
public boolean isResultStream()
isResultStream in interface SelectQuerypublic void setResultStream(boolean resultStream)
public void setEntityType(EntityType<?> entityType)
public PreparedSql getSql()
getSql in interface QuerygetSql in interface SelectQuerypublic java.lang.String toString()
toString in class java.lang.Object