本文整理了Java中org.apache.ibatis.annotations.UpdateProvider类的一些代码示例,展示了UpdateProvider类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UpdateProvider类的具体详情如下:包路径:org.apache.ibatis.annotations.UpdateProvider类名称:UpdateProvider
UpdateProvider介绍
暂无
代码示例
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新属性不为null的值 * * @param record * @return */@UpdateProvider(type = BaseUpdateProvider.class, method = "dynamicSQL")int updateByPrimaryKeySelective(T record);
代码示例来源:origin: abel533/Mapper
} else if (method.isAnnotationPresent(UpdateProvider.class)) { UpdateProvider provider = method.getAnnotation(UpdateProvider.class); tempClass = provider.type(); methodSet.add(method.getName());
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新实体全部字段,null值会被更新 * * @param record * @return */@UpdateProvider(type = BaseUpdateProvider.class, method = "dynamicSQL")int updateByPrimaryKey(T record);
代码示例来源:origin: abel533/Mapper
} else if (method.isAnnotationPresent(UpdateProvider.class)) { UpdateProvider provider = method.getAnnotation(UpdateProvider.class); tempClass = provider.type(); methodSet.add(method.getName());
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新实体全部字段,null值会被更新 * * @param record * @return */@UpdateProvider(type = BaseUpdateProvider.class, method = "dynamicSQL")int updateByPrimaryKey(T record);
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新属性不为null的值 * * @param record * @return */@UpdateProvider(type = BaseUpdateProvider.class, method = "dynamicSQL")int updateByPrimaryKeySelective(T record);
代码示例来源:origin: abel533/Mapper
/** * 根据Condition条件更新实体`record`包含的全部属性,null值会被更新 * * @param record * @param condition * @return */@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")int updateByCondition(@Param("record") T record, @Param("example") Object condition);
代码示例来源:origin: abel533/Mapper
/** * 根据Condition条件更新实体`record`包含的不是null的属性值 * * @param record * @param condition * @return */@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")int updateByConditionSelective(@Param("record") T record, @Param("example") Object condition);
代码示例来源:origin: abel533/Mapper
/** * 根据Example条件更新实体`record`包含的全部属性,null值会被更新 * * @param record * @param example * @return */@UpdateProvider(type = ExampleProvider.class, method = "dynamicSQL")int updateByExample(@Param("record") T record, @Param("example") Object example);
代码示例来源:origin: abel533/Mapper
/** * 根据 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新 * * @param old * @param newer * @return */ @UpdateProvider(type = UpdateByDifferProvider.class, method = "dynamicSQL") int updateByDiffer(@Param("old") T old, @Param("newer") T newer);}
代码示例来源:origin: abel533/Mapper
/** * 根据Condition条件更新实体`record`包含的不是null的属性值 * * @param record * @param condition * @return */@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")int updateByConditionSelective(@Param("record") T record, @Param("example") Object condition);
代码示例来源:origin: abel533/Mapper
/** * 根据 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新 * * @param old * @param newer * @return */ @UpdateProvider(type = UpdateByDifferProvider.class, method = "dynamicSQL") int updateByDiffer(@Param("old") T old, @Param("newer") T newer);}
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新属性不为null的值, 指定的属性(null值)会被强制更新 * @param record * @param forceUpdateProperties * @return */ @UpdateProvider(type = UpdateByPrimaryKeySelectiveForceProvider.class, method = "dynamicSQL") int updateByPrimaryKeySelectiveForce(@Param("record") T record, @Param("forceUpdateProperties") List forceUpdateProperties);}
代码示例来源:origin: abel533/Mapper
/** * 根据Condition条件更新实体`record`包含的全部属性,null值会被更新 * * @param record * @param condition * @return */@UpdateProvider(type = ConditionProvider.class, method = "dynamicSQL")int updateByCondition(@Param("record") T record, @Param("example") Object condition);
代码示例来源:origin: abel533/Mapper
/** * 根据主键更新属性不为null的值, 指定的属性(null值)会被强制更新 * @param record * @param forceUpdateProperties * @return */ @UpdateProvider(type = UpdateByPrimaryKeySelectiveForceProvider.class, method = "dynamicSQL") int updateByPrimaryKeySelectiveForce(@Param("record") T record, @Param("forceUpdateProperties") List forceUpdateProperties);}
代码示例来源:origin: abel533/Mapper
/** * 根据Example条件更新实体`record`包含的不是null的属性值 * * @param record * @param example * @return */@UpdateProvider(type = ExampleProvider.class, method = "dynamicSQL")int updateByExampleSelective(@Param("record") T record, @Param("example") Object example);
代码示例来源:origin: abel533/Mapper
/** * 根据Example条件更新实体`record`包含的不是null的属性值 * * @param record * @param example * @return */@UpdateProvider(type = ExampleProvider.class, method = "dynamicSQL")int updateByExampleSelective(@Param("record") T record, @Param("example") Object example);
代码示例来源:origin: abel533/Mapper
/** * 根据Example条件更新实体`record`包含的全部属性,null值会被更新 * * @param record * @param example * @return */@UpdateProvider(type = ExampleProvider.class, method = "dynamicSQL")int updateByExample(@Param("record") T record, @Param("example") Object example);
代码示例来源:origin: rhwayfun/spring-boot-learning-examples
@UpdateProvider(type = UserSqlProvider.class, method = "updateSql")int modify(UserEntity user);
代码示例来源:origin: mybatis-book/book
@UpdateProvider(type = PrivilegeProvider.class, method = "updateById")int updateById(SysPrivilege sysPrivilege);【文章转自 武汉网站设计公司 http://www.1234xp.com/wuhan.html 欢迎留下您的宝贵建议】