类 UpdateByPrimaryKeySelectiveForceProvider


  • public class UpdateByPrimaryKeySelectiveForceProvider
    extends tk.mybatis.mapper.mapperhelper.MapperTemplate
    作者:
    qrqhuangcy
    • 字段详细资料

      • FORCE_UPDATE_PROPERTIES

        public static final String FORCE_UPDATE_PROPERTIES
        另请参阅:
        常量字段值
    • 构造器详细资料

      • UpdateByPrimaryKeySelectiveForceProvider

        public UpdateByPrimaryKeySelectiveForceProvider​(Class<?> mapperClass,
                                                        tk.mybatis.mapper.mapperhelper.MapperHelper mapperHelper)
    • 方法详细资料

      • updateByPrimaryKeySelectiveForce

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

        public String updateSetColumnsForce​(Class<?> entityClass,
                                            String entityName,
                                            boolean notNull,
                                            boolean notEmpty)
        update set列
        参数:
        entityClass -
        entityName - 实体映射名
        notNull - 是否判断!=null
        notEmpty - 是否判断String类型!=''
        返回:
      • getIfNotNull

        public String getIfNotNull​(String entityName,
                                   tk.mybatis.mapper.entity.EntityColumn column,
                                   String contents,
                                   boolean empty)
        判断自动!=null的条件结构
        参数:
        entityName -
        column -
        contents -
        empty -
        返回: