类 MapperContext
java.lang.Object
com.alibaba.nacos.plugin.datasource.model.MapperContext
Unified input parameters of the Mapper class.
- 作者:
- hyx
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanReturns the value to which the key is mapped, it will return the context param.intintgetUpdateParameter(String key) Returns the value to which the key is mapped, it will return the UPDATE parameter in the SQL statement.getWhereParameter(String key) Returns the value to which the key is mapped, it will return the WHERE parameter in the SQL statement.inthashCode()voidputContextParameter(String key, String value) Associates the value with the key in this map, it will contain the context parameter.voidputUpdateParameter(String key, Object value) Associates the value with the key in this map, it will contain the UPDATE parameter in the SQL statement.voidputWhereParameter(String key, Object value) Associates the value with the key in this map, it will contain the WHERE parameter in the SQL statement.voidsetPageSize(int pageSize) voidsetStartRow(int startRow) toString()
-
构造器详细资料
-
MapperContext
public MapperContext() -
MapperContext
public MapperContext(int startRow, int pageSize)
-
-
方法详细资料
-
getWhereParameter
Returns the value to which the key is mapped, it will return the WHERE parameter in the SQL statement.- 参数:
key- The key whose associated value is to be returned- 返回:
- The value to which the key is mapped
-
putWhereParameter
Associates the value with the key in this map, it will contain the WHERE parameter in the SQL statement.- 参数:
key- Key with which the value is to be associatedvalue- Value to be associated with the specified key
-
getContextParameter
Returns the value to which the key is mapped, it will return the context param.- 参数:
key- The key whose associated value is to be returned- 返回:
- The value to which the key is mapped
-
putContextParameter
Associates the value with the key in this map, it will contain the context parameter.- 参数:
key- Key with which the value is to be associatedvalue- Value to be associated with the specified key
-
getUpdateParameter
Returns the value to which the key is mapped, it will return the UPDATE parameter in the SQL statement.- 参数:
key- The key whose associated value is to be returned- 返回:
- The value to which the key is mapped
-
putUpdateParameter
Associates the value with the key in this map, it will contain the UPDATE parameter in the SQL statement.- 参数:
key- Key with which the value is to be associatedvalue- Value to be associated with the specified key
-
equals
-
hashCode
public int hashCode() -
toString
-
getStartRow
public int getStartRow() -
setStartRow
public void setStartRow(int startRow) -
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize)
-