类 FilterableStatement<STMT_T,RES_T>
- java.lang.Object
-
- com.mysql.cj.xdevapi.PreparableStatement<RES_T>
-
- com.mysql.cj.xdevapi.FilterableStatement<STMT_T,RES_T>
-
- 类型参数:
STMT_T- statement interfaceRES_T- result interface
- 所有已实现的接口:
Statement<STMT_T,RES_T>
- 直接已知子类:
DeleteStatementImpl,FindStatementImpl,ModifyStatementImpl,RemoveStatementImpl,SelectStatementImpl,UpdateStatementImpl
public abstract class FilterableStatement<STMT_T,RES_T> extends PreparableStatement<RES_T> implements Statement<STMT_T,RES_T>
Abstract class, common to several X DevAPI statement classes.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
字段概要
字段 修饰符和类型 字段 说明 protected FilterParamsfilterParams-
从类继承的字段 com.mysql.cj.xdevapi.PreparableStatement
mysqlxSession, preparedState, preparedStatementId
-
-
构造器概要
构造器 构造器 说明 FilterableStatement(FilterParams filterParams)Constructor.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 STMT_Tbind(String argName, Object value)Bind the named argument to the given value.STMT_TclearBindings()Clear all bindings for this statement.booleanisRelational()Are relational columns identifiers allowed in this statement?STMT_Tlimit(long numberOfRows)Add row limit to this statement.STMT_Toffset(long limitOffset)Add maximum number of rows to skip before find others.STMT_TorderBy(String... sortFields)Add sort expressions to this statement.STMT_Tsort(String... sortFields)Add sort expressions to this statement.STMT_Twhere(String searchCondition)Add search condition to this statement.-
从类继承的方法 com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, executePreparedStatement, executeStatement, getMessageBuilder, getPrepareStatementXMessage, resetPrepareState, setReprepareState
-
-
-
-
字段详细资料
-
filterParams
protected FilterParams filterParams
-
-
构造器详细资料
-
FilterableStatement
public FilterableStatement(FilterParams filterParams)
Constructor.- 参数:
filterParams-FilterParamsobject.
-
-
方法详细资料
-
where
public STMT_T where(String searchCondition)
Add search condition to this statement.table.delete().where("age == 13").execute();- 参数:
searchCondition- expression- 返回:
- this statement
-
sort
public STMT_T sort(String... sortFields)
Add sort expressions to this statement. Synonym toorderBy(String...).DocResult docs = this.collection.find().orderBy("$._id").execute(); docs = this.collection.find().sort("$.x", "$.y").execute();- 参数:
sortFields- sort expressions- 返回:
- this statement
-
orderBy
public STMT_T orderBy(String... sortFields)
Add sort expressions to this statement.DocResult docs = this.collection.find().orderBy("$._id").execute(); docs = this.collection.find().sort("$.x", "$.y").execute();- 参数:
sortFields- sort expressions- 返回:
- this statement
-
limit
public STMT_T limit(long numberOfRows)
Add row limit to this statement.For example, to find only 3 rows:
docs = this.collection.find().orderBy("$._id").limit(3).execute();- 参数:
numberOfRows- maximum rows to process- 返回:
- this statement
-
offset
public STMT_T offset(long limitOffset)
Add maximum number of rows to skip before find others.For example, to skip 2 rows:
docs = this.collection.find().orderBy("$._id").offset(2).execute();- 参数:
limitOffset- number of rows to skip- 返回:
- this statement
-
isRelational
public boolean isRelational()
Are relational columns identifiers allowed in this statement?- 返回:
- true if allowed
-
clearBindings
public STMT_T clearBindings()
从接口复制的说明:StatementClear all bindings for this statement.- 指定者:
clearBindings在接口中Statement<STMT_T,RES_T>- 返回:
- this statement
-
-