本文整理了Java中org.apache.ibatis.annotations.DeleteProvider
类的一些代码示例,展示了DeleteProvider
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DeleteProvider
类的具体详情如下:
包路径:org.apache.ibatis.annotations.DeleteProvider
类名称:DeleteProvider
暂无
代码示例来源:origin: abel533/Mapper
/**
* 根据实体属性作为条件进行删除,查询条件使用等号
*
* @param record
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
代码示例来源:origin: abel533/Mapper
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
methodSet.add(method.getName());
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
代码示例来源:origin: abel533/Mapper
/**
* 根据实体属性作为条件进行删除,查询条件使用等号
*
* @param record
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
代码示例来源:origin: abel533/Mapper
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
methodSet.add(method.getName());
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
代码示例来源:origin: abel533/Mapper
/**
* 根据Example条件删除数据
*
* @param example
* @return
*/
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
代码示例来源:origin: com.gitee.hengboy/mybatis-enhance-core
/**
* 查找Method对应配置的@SelectProvider/@UpdateProvider等内的type类型全限定名
*
* @param method Method反射实例
* @return 获取XxxProvider的类型
*/
public static Class<?> findProviderClass(Method method) {
Class<?> providerClass = null;
// 查询方法
if (method.isAnnotationPresent(SelectProvider.class)) {
SelectProvider selectProvider = method.getAnnotation(SelectProvider.class);
providerClass = selectProvider.type();
}
// 更新方法
else if (method.isAnnotationPresent(UpdateProvider.class)) {
UpdateProvider updateProvider = method.getAnnotation(UpdateProvider.class);
providerClass = updateProvider.type();
}
// 删除方法
else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider deleteProvider = method.getAnnotation(DeleteProvider.class);
providerClass = deleteProvider.type();
}
// 插入方法
else if (method.isAnnotationPresent(InsertProvider.class)) {
InsertProvider insertProvider = method.getAnnotation(InsertProvider.class);
providerClass = insertProvider.type();
}
return providerClass;
}
代码示例来源:origin: abel533/Mapper
/**
* 根据Condition条件删除数据
*
* @param condition
* @return
*/
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
代码示例来源:origin: com.github.abel533/mapper
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
methodSet.add(method.getName());
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
代码示例来源:origin: abel533/Mapper
/**
* 根据Example条件删除数据
*
* @param example
* @return
*/
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
代码示例来源:origin: com.lodsve/lodsve-mybatis
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
UpdateProvider provider = method.getAnnotation(UpdateProvider.class);
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
*
* @param ids 如 "1,2,3,4"
* @return
*/
@DeleteProvider(type = IdsProvider.class, method = "dynamicSQL")
int deleteByIds(String ids);
代码示例来源:origin: tk.mybatis/mapper-core
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
methodSet.add(method.getName());
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
代码示例来源:origin: abel533/Mapper
/**
* 根据Condition条件删除数据
*
* @param condition
* @return
*/
@DeleteProvider(type = ConditionProvider.class, method = "dynamicSQL")
int deleteByCondition(Object condition);
代码示例来源:origin: com.hand.hap.cloud/hap-mybatis-mapper-starter
} else if (method.isAnnotationPresent(DeleteProvider.class)) {
DeleteProvider provider = method.getAnnotation(DeleteProvider.class);
tempClass = provider.type();
methodSet.add(method.getName());
} else if (method.isAnnotationPresent(UpdateProvider.class)) {
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字段进行删除,方法参数必须包含完整的主键属性
*
* @param key
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字段进行删除,方法参数必须包含完整的主键属性
*
* @param key
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
*
* @param ids 如 "1,2,3,4"
* @return
*/
@DeleteProvider(type = IdsProvider.class, method = "dynamicSQL")
int deleteByIds(String ids);
代码示例来源:origin: codingapi/tx-lcn
@DeleteProvider(type = TxExceptionMapperProvider.class, method = "deleteByIdList")
void deleteByIdList(List<Long> ids);
}
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
*
* @param idList
* @return
*/
@DeleteProvider(type = IdListProvider.class, method = "dynamicSQL")
int deleteByIdList(@Param("idList") List<PK> idList);
代码示例来源:origin: abel533/Mapper
/**
* 根据主键字符串进行删除,类中只有存在一个带有@Id注解的字段
*
* @param idList
* @return
*/
@DeleteProvider(type = IdListProvider.class, method = "dynamicSQL")
int deleteByIdList(@Param("idList") List<PK> idList);
内容来源于网络,如有侵权,请联系作者删除!