public class CriteriaQuery extends java.lang.Object implements SelectQuery, DeleteQuery, InsertQuery, UpdateQuery
| Constructor and Description |
|---|
CriteriaQuery(Config config,
PreparedSql sql,
java.lang.String className,
java.lang.String methodName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
comment(java.lang.String sql) |
void |
complete() |
void |
generateId(java.sql.Statement statement) |
java.lang.String |
getClassName() |
Config |
getConfig() |
int |
getFetchSize() |
FetchType |
getFetchType() |
int |
getMaxRows() |
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getMethodName() |
SelectOptions |
getOptions() |
int |
getQueryTimeout() |
PreparedSql |
getSql() |
SqlExecutionSkipCause |
getSqlExecutionSkipCause() |
SqlLogType |
getSqlLogType() |
void |
incrementVersion() |
boolean |
isAutoGeneratedKeysSupported() |
boolean |
isExecutable() |
boolean |
isOptimisticLockCheckRequired() |
boolean |
isResultEnsured() |
boolean |
isResultMappingEnsured() |
boolean |
isResultStream() |
void |
prepare() |
void |
setFetchSize(int fetchSize) |
void |
setMaxRows(int maxRows) |
void |
setQueryTimeout(int queryTimeout) |
public CriteriaQuery(Config config, PreparedSql sql, java.lang.String className, java.lang.String methodName)
public int getFetchSize()
getFetchSize in interface SelectQuerypublic void setFetchSize(int fetchSize)
public int getMaxRows()
getMaxRows in interface SelectQuerypublic void setMaxRows(int maxRows)
public int getQueryTimeout()
getQueryTimeout in interface Querypublic void setQueryTimeout(int queryTimeout)
public PreparedSql getSql()
getSql in interface ModifyQuerygetSql in interface QuerygetSql in interface SelectQuerypublic java.lang.String getClassName()
getClassName in interface Querypublic java.lang.String getMethodName()
getMethodName in interface Querypublic java.lang.String comment(java.lang.String sql)
public SelectOptions getOptions()
getOptions in interface SelectQuerypublic boolean isResultEnsured()
isResultEnsured in interface SelectQuerypublic boolean isResultMappingEnsured()
isResultMappingEnsured in interface SelectQuerypublic FetchType getFetchType()
getFetchType in interface SelectQuerypublic SqlLogType getSqlLogType()
getSqlLogType in interface ModifyQuerygetSqlLogType in interface SelectQuerypublic boolean isResultStream()
isResultStream in interface SelectQuerypublic void incrementVersion()
incrementVersion in interface UpdateQuerypublic boolean isOptimisticLockCheckRequired()
isOptimisticLockCheckRequired in interface ModifyQuerypublic boolean isAutoGeneratedKeysSupported()
isAutoGeneratedKeysSupported in interface ModifyQuerypublic boolean isExecutable()
isExecutable in interface ModifyQuerypublic SqlExecutionSkipCause getSqlExecutionSkipCause()
getSqlExecutionSkipCause in interface ModifyQuerypublic void generateId(java.sql.Statement statement)
generateId in interface InsertQuery