org.apache.ibatis.annotations.UpdateProvider源码实例Demo

类org.apache.ibatis.annotations.UpdateProvider源码实例Demo

下面列出了org.apache.ibatis.annotations.UpdateProvider 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: mybaties   文件: MapperAnnotationBuilder.java
public MapperAnnotationBuilder(Configuration configuration, Class<?> type) {
  String resource = type.getName().replace('.', '/') + ".java (best guess)";
  this.assistant = new MapperBuilderAssistant(configuration, resource);
  this.configuration = configuration;
  this.type = type;

  sqlAnnotationTypes.add(Select.class);
  sqlAnnotationTypes.add(Insert.class);
  sqlAnnotationTypes.add(Update.class);
  sqlAnnotationTypes.add(Delete.class);

  sqlProviderAnnotationTypes.add(SelectProvider.class);
  sqlProviderAnnotationTypes.add(InsertProvider.class);
  sqlProviderAnnotationTypes.add(UpdateProvider.class);
  sqlProviderAnnotationTypes.add(DeleteProvider.class);
}
 
源代码2 项目: mybaties   文件: MapperAnnotationBuilder.java
private SqlCommandType getSqlCommandType(Method method) {
  Class<? extends Annotation> type = getSqlAnnotationType(method);

  if (type == null) {
    type = getSqlProviderAnnotationType(method);

    if (type == null) {
      return SqlCommandType.UNKNOWN;
    }

    if (type == SelectProvider.class) {
      type = Select.class;
    } else if (type == InsertProvider.class) {
      type = Insert.class;
    } else if (type == UpdateProvider.class) {
      type = Update.class;
    } else if (type == DeleteProvider.class) {
      type = Delete.class;
    }
  }

  return SqlCommandType.valueOf(type.getSimpleName().toUpperCase(Locale.ENGLISH));
}
 
源代码3 项目: mybatis   文件: MapperAnnotationBuilder.java
public MapperAnnotationBuilder(Configuration configuration, Class<?> type) {
  String resource = type.getName().replace('.', '/') + ".java (best guess)";
  this.assistant = new MapperBuilderAssistant(configuration, resource);
  this.configuration = configuration;
  this.type = type;

  sqlAnnotationTypes.add(Select.class);
  sqlAnnotationTypes.add(Insert.class);
  sqlAnnotationTypes.add(Update.class);
  sqlAnnotationTypes.add(Delete.class);

  sqlProviderAnnotationTypes.add(SelectProvider.class);
  sqlProviderAnnotationTypes.add(InsertProvider.class);
  sqlProviderAnnotationTypes.add(UpdateProvider.class);
  sqlProviderAnnotationTypes.add(DeleteProvider.class);
}
 
源代码4 项目: mybatis   文件: MapperAnnotationBuilder.java
private SqlCommandType getSqlCommandType(Method method) {
  Class<? extends Annotation> type = getSqlAnnotationType(method);

  if (type == null) {
    type = getSqlProviderAnnotationType(method);

    if (type == null) {
      return SqlCommandType.UNKNOWN;
    }

    if (type == SelectProvider.class) {
      type = Select.class;
    } else if (type == InsertProvider.class) {
      type = Insert.class;
    } else if (type == UpdateProvider.class) {
      type = Update.class;
    } else if (type == DeleteProvider.class) {
      type = Delete.class;
    }
  }

  return SqlCommandType.valueOf(type.getSimpleName().toUpperCase(Locale.ENGLISH));
}
 
源代码5 项目: ace   文件: BaseMapper.java
@UpdateProvider(type =BaseProvider.class,method = "update")
long update(T t);
 
源代码6 项目: SpringbootMybatis   文件: UserMapper.java
@UpdateProvider(type=UserSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") User record, @Param("example") UserCriteria example);
 
源代码7 项目: SpringbootMybatis   文件: UserMapper.java
@UpdateProvider(type=UserSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") User record, @Param("example") UserCriteria example);
 
源代码8 项目: SpringbootMybatis   文件: UserMapper.java
@UpdateProvider(type=UserSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(User record);
 
源代码9 项目: maintain   文件: PersonalInfoMapper.java
@UpdateProvider(type = PersonalInfoSqlProvide.class, method = "clearErrorCountSql")
Integer clearErrorCount(String uuid);
 
源代码10 项目: maintain   文件: PersonalInfoMapper.java
@UpdateProvider(type = PersonalInfoSqlProvide.class, method = "clearErrorCountAllSql")
Integer clearErrorCountAll();
 
源代码11 项目: maintain   文件: ImpPayHeadMapper.java
@UpdateProvider(type = ImpPayHeadSqlProvide.class, method = "updateImpPayHeadSql")
Integer updateImpPayHead(ImpPayHead impPayHead);
 
源代码12 项目: maintain   文件: InvtHeadMapper.java
@UpdateProvider(type = InvtHeadSqlProvide.class, method = "updateInvtHeadStatusSql")
Integer updateInvtHeadStatus(String headGuid, String status);
 
源代码13 项目: maintain   文件: InvtHeadMapper.java
@UpdateProvider(type = InvtHeadSqlProvide.class, method = "updateInvtStatusAndInvtNoSql")
Integer updateInvtStatusAndInvtNo(InvtHead invtHead);
 
源代码14 项目: maintain   文件: InvtHeadMapper.java
@UpdateProvider(type = InvtHeadSqlProvide.class, method = "syncInvtNoStatusSql")
Integer syncInvtNoStatus(String cusStatus, String status);
 
源代码15 项目: maintain   文件: ServerSystemMapper.java
@UpdateProvider(type = ServerSystemSqlProvide.class, method = "updateServerSystemSql")
int updateServerSystem(ServerSystem serverSystem);
 
源代码16 项目: maintain   文件: VersionMapper.java
@UpdateProvider(type = VersionSqlProvide.class, method = "updateVersionSql")
int updateVersion(Version version);
 
源代码17 项目: maintain   文件: MemberMapper.java
@UpdateProvider(type = MemberSqlProvide.class, method = "updateMemberSql")
int updateMember(Member member);
 
源代码18 项目: maintain   文件: VeHeadMapper.java
@UpdateProvider(type = VeHeadSqlProvide.class, method = "syncVeENoSql")
Integer syncVeENo();
 
源代码19 项目: maintain   文件: VeHeadMapper.java
@UpdateProvider(type = VeHeadSqlProvide.class, method = "clearVeeNoSql")
Integer clearVeeNo(String veId);
 
源代码20 项目: Okra   文件: RoleMapper.java
@UpdateProvider(type = RoleSqlProvider.class, method = "deleteSql")
void delete(long uid);
 
源代码21 项目: Okra   文件: RoleMapper.java
@UpdateProvider(type = RoleSqlProvider.class, method = "updateSql")
MemAccount update(MemAccount memAccount);
 
源代码22 项目: Okra   文件: BusListenerMapper.java
@UpdateProvider(type = BusListenerSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("event") int event);
 
源代码23 项目: Okra   文件: BusProgressMapper.java
@UpdateProvider(type = BusProgressSqlProvider.class, method = "updateSql")
void update(MemBusProgress memBusProgress);
 
源代码24 项目: Okra   文件: BusProgressMapper.java
@UpdateProvider(type = BusProgressSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("event") int busId);
 
源代码25 项目: Okra   文件: BusInfoMapper.java
@UpdateProvider(type = BusInfoSqlProvider.class, method = "updateSql")
void update(MemBusInfo memBusInfo);
 
源代码26 项目: Okra   文件: BusInfoMapper.java
@UpdateProvider(type = BusInfoSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("busId") int busId);
 
源代码27 项目: Okra   文件: BusInfoMapper.java
@UpdateProvider(type = BusInfoSqlProvider.class, method = "deleteByListSql")
void deleteBatch(@Param("uid") long uid, @Param("list") List<Integer> list);
 
源代码28 项目: BlogManagePlatform   文件: InMapper.java
/**
 * 通过in条件更新所有字段,只支持一个in条件,是简单的封装
 * @param paramName 该表中的字段名(和Example不同,只能是表中字段名,不能是实体对应字段名)
 * @param params 该表中的对应字段
 * @param record 更新的数据,为null的字段会更新为null
 * @author Frodez
 * @date 2019-12-25
 */
@UpdateProvider(type = InMapperProvider.class, method = "dynamicSQL")
int updateIn(@Param("paramName") String paramName, @Param("params") List<?> params, T record);
 
源代码29 项目: BlogManagePlatform   文件: InMapper.java
/**
 * 通过in条件更新所有record中不为null字段,只支持一个in条件,是简单的封装
 * @param paramName 该表中的字段名(和Example不同,只能是表中字段名,不能是实体对应字段名)
 * @param params 该表中的对应字段
 * @param record 更新的数据,为null的字段将不更新
 * @author Frodez
 * @date 2019-12-25
 */
@UpdateProvider(type = InMapperProvider.class, method = "dynamicSQL")
int updateInSelective(@Param("paramName") String paramName, @Param("params") List<?> params, T record);
 
源代码30 项目: BlogManagePlatform   文件: EqualMapper.java
/**
 * 通过equal条件更新所有字段,只支持一个equal条件,是简单的封装
 * @param paramName 该表中的字段名(和Example不同,只能是表中字段名,不能是实体对应字段名)
 * @param param 该表中的对应字段
 * @param record 更新的数据,为null的字段会更新为null
 * @author Frodez
 * @date 2019-12-25
 */
@UpdateProvider(type = EqualMapperProvider.class, method = "dynamicSQL")
int updateEqual(@Param("paramName") String paramName, @Param("param") Object param, T record);