本文整理汇总了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));
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
示例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);
示例8: deleteOneArticleTag
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete(deleteOneArticleTag)
void deleteOneArticleTag(@Param("articleTag") ArticleTag articleTag);
示例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);
示例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);
示例11: delete
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM WORKBASKET_ACCESS_LIST where id = #{id}")
void delete(@Param("id") String id);
示例12: delete
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM TASK WHERE ID = #{id}")
void delete(String id);
示例13: delete
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM OBJECT_REFERENCE WHERE ID = #{id}")
void delete(String id);
示例14: delete
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM WORKBASKET where id = #{id}")
void delete(@Param("id") String id);
示例15: delete
import org.apache.ibatis.annotations.Delete; //导入依赖的package包/类
@Delete("DELETE FROM snapshot WHERE id = #{id}")
int delete(@Param("id") long id);