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

项目: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);
}
项目: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));
}
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.java   
public MybatisMapperAnnotationBuilder(Configuration configuration, Class<?> type) {
    // 执行父类
    super(configuration, 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);
}
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.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));
}
项目: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);
}
项目: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));
}
项目:play    文件: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);
}
项目:play    文件: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));
}
项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.java   
public MybatisMapperAnnotationBuilder(Configuration configuration, Class<?> type) {
    // TODO 执行父类
    super(configuration, 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);
}
项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.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));
}
项目:MybatisCode    文件: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);
}
项目:MybatisCode    文件: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));
}
项目:mybatis-dao    文件:DaoMapper.java   
@UpdateProvider(type = SqlProvider.class, method = "update")
public int update(Map<String,Object> paramter);
项目:ssm-server    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
项目:ssm-server    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
项目:ssm-server    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(User record);
项目:backbone    文件:DynamicMapper.java   
@UpdateProvider( type = DynamicQueryBuilder.class, method = "buildUpdate")
int update(@Param(PARAM_ENTITY_NAME) T bean);
项目:backbone    文件:DynamicMapper.java   
@UpdateProvider(type = DynamicQueryBuilder.class, method = "buildSearchUpdate")
int updateBySearch(@Param(PARAM_ENTITY_NAME) SQLParameter<T> sqlParameter);
项目:mybatis-dynamic-query    文件:UpdateSelectiveByDynamicQueryMapper.java   
@UpdateProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int updateSelectiveByDynamicQuery(
        @Param("record") T record,
        @Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
项目:mybatis-dynamic-query    文件:UpdateByDynamicQueryMapper.java   
@UpdateProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int updateByDynamicQuery(
        @Param("record") T record,
        @Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
项目:MybatisCode    文件:BaseMapper.java   
@UpdateProvider(type = StatementProvider.class, method = "provideUpdate")
int update(S param);
项目:MybatisCode    文件:Mapper.java   
@UpdateProvider(type= OurSqlBuilder.class, method= "buildUpdate")
void update(User user);
项目:api-server-seed    文件:BatchLogicDeleteMapper.java   
@UpdateProvider(type = BatchLogicDeleteMapperProvider.class, method = "dynamicSQL")
int batchDelete(List<T> arr);
项目:Okra-Ax    文件:AccountMapper.java   
@UpdateProvider(type = AccountSqlProvider.class, method = "deleteSql")
void deleteByUid(long uid);
项目:Okra-Ax    文件:AccountMapper.java   
@UpdateProvider(type = AccountSqlProvider.class, method = "updateSql")
MemAccount update(MemAccount memAccount);
项目:Okra-Ax    文件:AccountMapper.java   
@UpdateProvider(type = AccountSqlProvider.class, method = "updateSql")
void updateByFields(MemAccount memAccount);
项目:SpringbootMybatis    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") User record, @Param("example") UserCriteria example);
项目:SpringbootMybatis    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") User record, @Param("example") UserCriteria example);
项目:SpringbootMybatis    文件:UserMapper.java   
@UpdateProvider(type=UserSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(User record);
项目:mybatis    文件:BaseMapper.java   
@UpdateProvider(type = StatementProvider.class, method = "provideUpdate")
int update(S param);
项目:mybatis-dynamic-sql    文件:GeneratedAlwaysAnnotatedMapper.java   
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
项目:mybatis-dynamic-sql    文件:SimpleTableAnnotatedMapper.java   
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
项目:mybatis-dynamic-sql    文件:AnimalDataMapper.java   
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
项目:Okra    文件:RoleMapper.java   
@UpdateProvider(type = RoleSqlProvider.class, method = "deleteSql")
void delete(long uid);
项目:Okra    文件:RoleMapper.java   
@UpdateProvider(type = RoleSqlProvider.class, method = "updateSql")
MemAccount update(MemAccount memAccount);
项目:Okra    文件:BusListenerMapper.java   
@UpdateProvider(type = BusListenerSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("event") int event);
项目:Okra    文件:BusProgressMapper.java   
@UpdateProvider(type = BusProgressSqlProvider.class, method = "updateSql")
void update(MemBusProgress memBusProgress);
项目:Okra    文件:BusProgressMapper.java   
@UpdateProvider(type = BusProgressSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("event") int busId);
项目:Okra    文件:BusInfoMapper.java   
@UpdateProvider(type = BusInfoSqlProvider.class, method = "updateSql")
void update(MemBusInfo memBusInfo);
项目:Okra    文件:BusInfoMapper.java   
@UpdateProvider(type = BusInfoSqlProvider.class, method = "deleteSql")
void delete(@Param("uid") long uid, @Param("busId") int busId);