类 AbstractMapper

java.lang.Object
com.alibaba.nacos.plugin.datasource.mapper.AbstractMapper
所有已实现的接口:
Mapper
直接已知子类:
AbstractMapperByDerby, AbstractMapperByMysql

public abstract class AbstractMapper extends Object implements Mapper
The abstract mapper contains CRUD methods.
作者:
hyx
  • 构造器详细资料

    • AbstractMapper

      public AbstractMapper()
  • 方法详细资料

    • select

      public String select(List<String> columns, List<String> where)
      从接口复制的说明: Mapper
      The select method contains columns and where params.
      指定者:
      select 在接口中 Mapper
      参数:
      columns - The columns
      where - The where params
      返回:
      The sql of select
    • insert

      public String insert(List<String> columns)
      从接口复制的说明: Mapper
      The insert method contains columns.
      指定者:
      insert 在接口中 Mapper
      参数:
      columns - The columns
      返回:
      The sql of insert
    • update

      public String update(List<String> columns, List<String> where)
      从接口复制的说明: Mapper
      The update method contains columns and where params.
      指定者:
      update 在接口中 Mapper
      参数:
      columns - The columns
      where - The where params
      返回:
      The sql of update
    • delete

      public String delete(List<String> params)
      从接口复制的说明: Mapper
      The delete method contains.
      指定者:
      delete 在接口中 Mapper
      参数:
      params - The params
      返回:
      The sql of delete
    • count

      public String count(List<String> where)
      从接口复制的说明: Mapper
      The count method contains where params.
      指定者:
      count 在接口中 Mapper
      参数:
      where - The where params
      返回:
      The sql of count
    • getPrimaryKeyGeneratedKeys

      public String[] getPrimaryKeyGeneratedKeys()
      从接口复制的说明: Mapper
      Get config_info table primary keys name. The old default value: Statement.RETURN_GENERATED_KEYS The new default value: new String[]{"id"}
      指定者:
      getPrimaryKeyGeneratedKeys 在接口中 Mapper
      返回:
      an array of column names indicating the columns