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

项目: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-3    文件: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-3    文件: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));
}
项目:ace    文件:BaseMapper.java   
@DeleteProvider(type =BaseProvider.class,method = "delete")
long delete(Object object);
项目:mybatis-dao    文件:DaoMapper.java   
@DeleteProvider(type = SqlProvider.class, method = "delete")
public int delete(Map<String,Object> paramter);
项目:ssm-server    文件:UserMapper.java   
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserExample example);
项目:mybatis-dynamic-query    文件:DeleteByDynamicQueryMapper.java   
@DeleteProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int deleteByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
项目:MybatisCode    文件:Mapper.java   
@DeleteProvider(type= OurSqlBuilder.class, method= "buildDelete")
void delete(Integer id);
项目:SpringbootMybatis    文件:UserMapper.java   
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserCriteria example);
项目:mybatis-dynamic-sql    文件:SimpleTableAnnotatedMapper.java   
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
项目:mybatis-dynamic-sql    文件:AnimalDataMapper.java   
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
项目:mybatis-3    文件:Mapper.java   
@DeleteProvider(type= OurSqlBuilder.class, method= "buildDelete")
void delete(Integer id);
项目:MybatisGeneatorUtil    文件:DeleteByExampleMapper.java   
/**
 * 根据Example条件删除数据
 *
 * @param example
 * @return
 */
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
项目:MybatisGeneatorUtil    文件:DeleteMapper.java   
/**
 * 根据实体属性作为条件进行删除,查询条件使用等号
 *
 * @param record
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
项目:MybatisGeneatorUtil    文件:DeleteByPrimaryKeyMapper.java   
/**
 * 根据主键字段进行删除,方法参数必须包含完整的主键属性
 *
 * @param key
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);
项目:MybatisGeneatorUtil    文件:DeleteByIdsMapper.java   
/**
 * 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
 *
 * @param ids 如 "1,2,3,4"
 * @return
 */
@DeleteProvider(type = IdsProvider.class, method = "dynamicSQL")
int deleteByIds(String ids);
项目:MybatisGeneatorUtil    文件:DeleteByConditionMapper.java   
/**
 * 根据Condition条件删除数据
 *
 * @param condition
 * @return
 */
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
项目:tk-mybatis    文件:DeleteByExampleMapper.java   
/**
 * 根据Example条件删除数据
 *
 * @param example
 * @return
 */
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
项目:tk-mybatis    文件:DeleteMapper.java   
/**
 * 根据实体属性作为条件进行删除,查询条件使用等号
 *
 * @param record
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
项目:tk-mybatis    文件:DeleteByPrimaryKeyMapper.java   
/**
 * 根据主键字段进行删除,方法参数必须包含完整的主键属性
 *
 * @param key
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);
项目:tk-mybatis    文件:DeleteByIdsMapper.java   
/**
 * 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
 *
 * @param ids 如 "1,2,3,4"
 * @return
 */
@DeleteProvider(type = IdsProvider.class, method = "dynamicSQL")
int deleteByIds(String ids);
项目:tk-mybatis    文件:DeleteByConditionMapper.java   
/**
 * 根据Condition条件删除数据
 *
 * @param condition
 * @return
 */
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
项目:tulingchat    文件:CommentMapper.java   
/**
 * 批量删除
 */
@DeleteProvider(type = CommentSqlProvider.class, method = "batchDelete")
void batchDelete(@Param("params") List<String> params);
项目:uncode-dal-all    文件:CommonMapper.java   
/**
 * 条件删除
 * 条件传入model.QueryCriteria
 * @param model
 * @return
 */
@DeleteProvider(method = "deleteByCriteria", type = SqlTemplate.class)
int deleteByCriteria(Table model);
项目:uncode-dal-all    文件:CommonMapper.java   
/**
 * 主键删除
 * 主键参数传入 model.conditions,不能为空
 * @param model
 * @return
 */
@DeleteProvider(method = "deleteByPrimaryKey", type = SqlTemplate.class)
int deleteByPrimaryKey(Table model);
项目:sqlapp    文件:BizdatetimeMasterMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table BIZDATETIME_MASTER
 *
 * @mbggenerated
 */
@DeleteProvider(type=BizdatetimeMasterSqlProvider.class, method="deleteByExample")
int deleteByExample(BizdatetimeMasterCriteria example);
项目:sqlapp    文件:MailTemplateMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table MAIL_TEMPLATE
 *
 * @mbggenerated
 */
@DeleteProvider(type=MailTemplateSqlProvider.class, method="deleteByExample")
int deleteByExample(MailTemplateCriteria example);
项目:sqlapp    文件:SqltoolMetadataMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table SQLTOOL_METADATA
 *
 * @mbggenerated
 */
@DeleteProvider(type=SqltoolMetadataSqlProvider.class, method="deleteByExample")
int deleteByExample(SqltoolMetadataCriteria example);
项目:sqlapp    文件:MailTemplateRcptMapper.java   
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table MAIL_TEMPLATE_RCPT
 *
 * @mbggenerated
 */
@DeleteProvider(type=MailTemplateRcptSqlProvider.class, method="deleteByExample")
int deleteByExample(MailTemplateRcptCriteria example);