类 MapperContext

java.lang.Object
com.alibaba.nacos.plugin.datasource.model.MapperContext

public class MapperContext extends Object
Unified input parameters of the Mapper class.
作者:
hyx
  • 构造器详细资料

    • MapperContext

      public MapperContext()
    • MapperContext

      public MapperContext(int startRow, int pageSize)
  • 方法详细资料

    • getWhereParameter

      public Object getWhereParameter(String key)
      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

      public void putWhereParameter(String key, Object value)
      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 associated
      value - Value to be associated with the specified key
    • getContextParameter

      public String getContextParameter(String key)
      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

      public void putContextParameter(String key, String value)
      Associates the value with the key in this map, it will contain the context parameter.
      参数:
      key - Key with which the value is to be associated
      value - Value to be associated with the specified key
    • getUpdateParameter

      public Object getUpdateParameter(String key)
      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

      public void putUpdateParameter(String key, Object value)
      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 associated
      value - Value to be associated with the specified key
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • getStartRow

      public int getStartRow()
    • setStartRow

      public void setStartRow(int startRow)
    • getPageSize

      public int getPageSize()
    • setPageSize

      public void setPageSize(int pageSize)