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

项目: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));
}
项目:judge    文件:LanguageMapper.java   
@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);
项目:springapp    文件:DayoffMasterMapper.java   
/**
 * 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);
项目:leafer    文件:ArticleTagMapper.java   
@Delete(deleteOneArticleTag)
void deleteOneArticleTag(@Param("articleTag") ArticleTag articleTag);
项目:taskana    文件:DistributionTargetMapper.java   
@Delete("DELETE FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{sourceId} AND TARGET_ID = #{targetId}")
void delete(@Param("sourceId") String sourceId, @Param("targetId") String targetId);
项目:taskana    文件:DistributionTargetMapper.java   
@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);
项目:taskana    文件:WorkbasketAccessMapper.java   
@Delete("DELETE FROM WORKBASKET_ACCESS_LIST where id = #{id}")
void delete(@Param("id") String id);
项目:taskana    文件:TaskMapper.java   
@Delete("DELETE FROM TASK WHERE ID = #{id}")
void delete(String id);
项目:taskana    文件:ObjectReferenceMapper.java   
@Delete("DELETE FROM OBJECT_REFERENCE WHERE ID = #{id}")
void delete(String id);
项目:taskana    文件:WorkbasketMapper.java   
@Delete("DELETE FROM WORKBASKET where id = #{id}")
void delete(@Param("id") String id);
项目:shepher    文件:SnapshotMapper.java   
@Delete("DELETE FROM snapshot WHERE id = #{id}")
int delete(@Param("id") long id);
项目:shepher    文件:ReviewMapper.java   
@Delete("DELETE FROM review_request WHERE id = #{id}")
int delete(@Param("id") long id);
项目:shepher    文件:TeamMapper.java   
@Delete("DELETE FROM team WHERE id = #{id}")
int delete(@Param("id") long id);
项目:shepher    文件:ClusterAdminMapper.java   
@Delete("DELETE FROM cluster WHERE name = #{name}")
int delete(@Param("name") String name);
项目:ssm-server    文件:UserMapper.java   
@Delete({
    "delete from user",
    "where id = #{id,jdbcType=INTEGER}"
})
int deleteByPrimaryKey(Integer id);
项目:xmanager    文件:RoleResourceMapper.java   
@Delete("DELETE FROM role_resource WHERE resource_id = #{resourceId}")
int deleteByResourceId(@Param("resourceId") Serializable resourceId);
项目:xmanager    文件:UserRoleMapper.java   
@Delete("DELETE FROM user_role WHERE user_id = #{userId}")
int deleteByUserId(@Param("userId") Long userId);
项目:tulingchat    文件:UserMapper.java   
@Delete("DELETE FROM users WHERE id =#{id}")
void delete(Long id);
项目:tulingchat    文件:ProxyIpMapper.java   
@Delete("delete from proxyips where ip = #{ip}")
void deleteByIp(String ip);
项目:tulingchat    文件:ProxyIpMapper.java   
/**
 * 批量删除 LIKE CONCAT(CONCAT('%', #{created}), '%')
 */
//@Delete("delete from proxyips where created LIKE CONCAT('%', #{created}, '%')")
@Delete("DELETE from proxyips where created < DATE_SUB(NOW(),INTERVAL #{created} MINUTE)")
void batchDelete(String created);
项目:azeroth    文件:UserEntityMapper.java   
@Delete("delete from users where mobile = #{mobile}")
public void delBymobile(@Param("mobile") String mobile);
项目:alerts-forwarder    文件:WWWAlertMapper.java   
@Delete("delete from alerts where LocateInfo = #{LocateInfo}")
public void delete(String LocateInfo);
项目:JSiter    文件:CategoryDao.java   
@Delete({"delete from", TABLE_NAME, "where id=#{id}"})
public void deleteById(String id);
项目:JSiter    文件:TagMappingDao.java   
@Delete({"delete from", TABLE_NAME, "where id=#{id}"})
public void deleteById(String id);
项目:JSiter    文件:CommentDao.java   
@Delete({"delete from", TABLE_NAME, "where id=#{id}"})
public void deleteById(String id);
项目:mylion-mvn    文件:mapping.java   
@Delete({
    "delete from ${tableName}",
    "where id = ${r'#'}{${pri.property},jdbcType=${pri.columnTypeName}}"
})
int deleteByPrimaryKey(${pri.generateClassName}
项目:mafia    文件:MafiaAdminMasterMapper.java   
@Delete("DELETE FROM mafia_admin WHERE id=#{id}")
int delete(int id);