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


Java Delete类代码示例

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


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

示例1: getSqlCommandType

import org.apache.ibatis.annotations.Delete; //导入依赖的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.Delete; //导入依赖的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.Delete; //导入依赖的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.Delete; //导入依赖的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.Delete; //导入依赖的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.Delete; //导入依赖的package包/类
@CacheEvict(value = Constants.Cache.LANGUAGE, allEntries = true)
@Delete("<script>delete from language"
        + "<where>"
        + "<if test='id!=null'> and id=#{id}</if><if test='id==null'> and id is null</if>"
        + "<if test='name!=null'> and name=#{name}</if><if test='name==null'> and name is null</if>"
        + "<if test='sourceExtension!=null'> and source_extension=#{sourceExtension}</if><if test='sourceExtension==null'> and source_extension is null</if>"
        + "<if test='compileCommand!=null'> and compile_command=#{compileCommand}</if><if test='compileCommand==null'> and compile_command is null</if>"
        + "<if test='executeCommand!=null'> and execute_command=#{executeCommand}</if><if test='executeCommand==null'> and execute_command is null</if>"
        + "<if test='executableExtension!=null'> and executable_extension=#{executableExtension}</if><if test='executableExtension==null'> and executable_extension is null</if>"
        + "<if test='timeFactor!=null'> and time_factor=#{timeFactor}</if><if test='timeFactor==null'> and time_factor is null</if>"
        + "<if test='extMemory!=null'> and ext_memory=#{extMemory}</if><if test='extMemory==null'> and ext_memory is null</if>"
        + "<if test='description!=null'> and description=#{description}</if><if test='description==null'> and description is null</if>"
        + "</where>"
        + "</script>")
long delete(Language language);
 
开发者ID:zjnu-acm,项目名称:judge,代码行数:16,代码来源:LanguageMapper.java

示例7: deleteByPrimaryKey

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table DAYOFF_MASTER
 *
 * @mbggenerated
 */
@Delete({
    "delete from DAYOFF_MASTER",
    "where NAME = #{name,jdbcType=VARCHAR}",
      "and DT = #{dt,jdbcType=DATE}"
})
int deleteByPrimaryKey(DayoffMasterKey key);
 
开发者ID:agwlvssainokuni,项目名称:springapp,代码行数:13,代码来源:DayoffMasterMapper.java

示例8: deleteOneArticleTag

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete(deleteOneArticleTag)
void deleteOneArticleTag(@Param("articleTag") ArticleTag articleTag);
 
开发者ID:ziwenxie,项目名称:leafer,代码行数:3,代码来源:ArticleTagMapper.java

示例9: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{sourceId} AND TARGET_ID = #{targetId}")
void delete(@Param("sourceId") String sourceId, @Param("targetId") String targetId);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:DistributionTargetMapper.java

示例10: IN

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("<script>DELETE FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{sourceId} AND TARGET_ID IN (<foreach item='target' collection='targetId' separator=',' > #{target} </foreach>)</script>")
void deleteMultiple(@Param("sourceId") String sourceId, @Param("targetId") List<String> targetId);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:DistributionTargetMapper.java

示例11: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM WORKBASKET_ACCESS_LIST where id = #{id}")
void delete(@Param("id") String id);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:WorkbasketAccessMapper.java

示例12: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM TASK WHERE ID = #{id}")
void delete(String id);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:TaskMapper.java

示例13: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM OBJECT_REFERENCE WHERE ID = #{id}")
void delete(String id);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:ObjectReferenceMapper.java

示例14: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM WORKBASKET where id = #{id}")
void delete(@Param("id") String id);
 
开发者ID:Taskana,项目名称:taskana,代码行数:3,代码来源:WorkbasketMapper.java

示例15: delete

import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM snapshot WHERE id = #{id}")
int delete(@Param("id") long id);
 
开发者ID:XiaoMi,项目名称:shepher,代码行数:3,代码来源:SnapshotMapper.java


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