Class UpdateByPrimaryKeySelectiveForceProvider

java.lang.Object
org.miaixz.bus.mapper.builder.MapperTemplate
org.miaixz.bus.mapper.additional.update.force.UpdateByPrimaryKeySelectiveForceProvider

public class UpdateByPrimaryKeySelectiveForceProvider extends MapperTemplate
通用Mapper接口, 更新, 强制,实现
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • UpdateByPrimaryKeySelectiveForceProvider

      public UpdateByPrimaryKeySelectiveForceProvider(Class<?> mapperClass, MapperBuilder mapperBuilder)
  • Method Details

    • updateByPrimaryKeySelectiveForce

      public String updateByPrimaryKeySelectiveForce(org.apache.ibatis.mapping.MappedStatement ms)
    • updateSetColumnsForce

      public String updateSetColumnsForce(Class<?> entityClass, String entityName, boolean notNull, boolean notEmpty)
      update set列
      Parameters:
      entityClass - 实体Class对象
      entityName - 实体映射名
      notNull - 是否判断!=null
      notEmpty - 是否判断String类型!=''
      Returns:
      the string
    • getIfNotNull

      public String getIfNotNull(String entityName, EntityColumn column, String contents, boolean empty)
      判断自动!=null的条件结构
      Parameters:
      entityName - 实体映射名
      column - 列明
      contents - 内容
      empty - 是否为空
      Returns:
      the string