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); }
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)); }
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); }
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); }
@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);
/** * 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);
@Delete(deleteOneArticleTag) void deleteOneArticleTag(@Param("articleTag") ArticleTag articleTag);
@Delete("DELETE FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{sourceId} AND TARGET_ID = #{targetId}") void delete(@Param("sourceId") String sourceId, @Param("targetId") String targetId);
@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);
@Delete("DELETE FROM WORKBASKET_ACCESS_LIST where id = #{id}") void delete(@Param("id") String id);
@Delete("DELETE FROM TASK WHERE ID = #{id}") void delete(String id);
@Delete("DELETE FROM OBJECT_REFERENCE WHERE ID = #{id}") void delete(String id);
@Delete("DELETE FROM WORKBASKET where id = #{id}") void delete(@Param("id") String id);
@Delete("DELETE FROM snapshot WHERE id = #{id}") int delete(@Param("id") long id);
@Delete("DELETE FROM review_request WHERE id = #{id}") int delete(@Param("id") long id);
@Delete("DELETE FROM team WHERE id = #{id}") int delete(@Param("id") long id);
@Delete("DELETE FROM cluster WHERE name = #{name}") int delete(@Param("name") String name);
@Delete({ "delete from user", "where id = #{id,jdbcType=INTEGER}" }) int deleteByPrimaryKey(Integer id);
@Delete("DELETE FROM role_resource WHERE resource_id = #{resourceId}") int deleteByResourceId(@Param("resourceId") Serializable resourceId);
@Delete("DELETE FROM user_role WHERE user_id = #{userId}") int deleteByUserId(@Param("userId") Long userId);
@Delete("DELETE FROM users WHERE id =#{id}") void delete(Long id);
@Delete("delete from proxyips where ip = #{ip}") void deleteByIp(String ip);
/** * 批量删除 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);
@Delete("delete from users where mobile = #{mobile}") public void delBymobile(@Param("mobile") String mobile);
@Delete("delete from alerts where LocateInfo = #{LocateInfo}") public void delete(String LocateInfo);
@Delete({"delete from", TABLE_NAME, "where id=#{id}"}) public void deleteById(String id);
@Delete({ "delete from ${tableName}", "where id = ${r'#'}{${pri.property},jdbcType=${pri.columnTypeName}}" }) int deleteByPrimaryKey(${pri.generateClassName}
@Delete("DELETE FROM mafia_admin WHERE id=#{id}") int delete(int id);