当前位置: 首页>>代码示例>>Java>>正文


Java DeleteProvider类代码示例

本文整理汇总了Java中org.apache.ibatis.annotations.DeleteProvider的典型用法代码示例。如果您正苦于以下问题:Java DeleteProvider类的具体用法?Java DeleteProvider怎么用?Java DeleteProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DeleteProvider类属于org.apache.ibatis.annotations包,在下文中一共展示了DeleteProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getSqlCommandType

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
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));
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:24,代码来源:MybatisMapperAnnotationBuilder.java

示例2: MapperAnnotationBuilder

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
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);
}
 
开发者ID:txazo,项目名称:mybatis,代码行数:17,代码来源:MapperAnnotationBuilder.java

示例3: getSqlCommandType

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
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));
}
 
开发者ID:txazo,项目名称:mybatis,代码行数:24,代码来源:MapperAnnotationBuilder.java

示例4: MybatisMapperAnnotationBuilder

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
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);
}
 
开发者ID:baomidou,项目名称:mybatis-plus,代码行数:20,代码来源:MybatisMapperAnnotationBuilder.java

示例5: MybatisMapperAnnotationBuilder

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
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);
}
 
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:17,代码来源:MybatisMapperAnnotationBuilder.java

示例6: delete

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type =BaseProvider.class,method = "delete")
long delete(Object object);
 
开发者ID:ChenXun1989,项目名称:ace,代码行数:3,代码来源:BaseMapper.java

示例7: delete

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type = SqlProvider.class, method = "delete")
public int delete(Map<String,Object> paramter);
 
开发者ID:wulizhong,项目名称:mybatis-dao,代码行数:3,代码来源:DaoMapper.java

示例8: deleteByExample

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserExample example);
 
开发者ID:shenhuanet,项目名称:ssm-server,代码行数:3,代码来源:UserMapper.java

示例9: deleteByDynamicQuery

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int deleteByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
 
开发者ID:wz2cool,项目名称:mybatis-dynamic-query,代码行数:3,代码来源:DeleteByDynamicQueryMapper.java

示例10: delete

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type= OurSqlBuilder.class, method= "buildDelete")
void delete(Integer id);
 
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:3,代码来源:Mapper.java

示例11: deleteByExample

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserCriteria example);
 
开发者ID:RayeWang,项目名称:SpringbootMybatis,代码行数:3,代码来源:UserMapper.java

示例12: delete

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
 
开发者ID:mybatis,项目名称:mybatis-dynamic-sql,代码行数:3,代码来源:SimpleTableAnnotatedMapper.java

示例13: deleteByExample

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
 * 根据Example条件删除数据
 *
 * @param example
 * @return
 */
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
 
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:9,代码来源:DeleteByExampleMapper.java

示例14: delete

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
 * 根据实体属性作为条件进行删除,查询条件使用等号
 *
 * @param record
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
 
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:9,代码来源:DeleteMapper.java

示例15: deleteByPrimaryKey

import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
 * 根据主键字段进行删除,方法参数必须包含完整的主键属性
 *
 * @param key
 * @return
 */
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);
 
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:9,代码来源:DeleteByPrimaryKeyMapper.java


注:本文中的org.apache.ibatis.annotations.DeleteProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。