本文整理汇总了Java中org.apache.ibatis.annotations.DeleteProvider类的典型用法代码示例。如果您正苦于以下问题:Java DeleteProvider类的具体用法?Java DeleteProvider怎么用?Java DeleteProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeleteProvider类属于org.apache.ibatis.annotations包,在下文中一共展示了DeleteProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSqlCommandType
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的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.DeleteProvider; //导入依赖的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.DeleteProvider; //导入依赖的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.DeleteProvider; //导入依赖的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.DeleteProvider; //导入依赖的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.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type =BaseProvider.class,method = "delete")
long delete(Object object);
示例7: delete
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type = SqlProvider.class, method = "delete")
public int delete(Map<String,Object> paramter);
示例8: deleteByExample
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserExample example);
示例9: deleteByDynamicQuery
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type = DynamicQueryProvider.class, method = "dynamicSQL")
int deleteByDynamicQuery(@Param(MapperConstants.DYNAMIC_QUERY) DynamicQuery<T> dynamicQuery);
示例10: delete
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type= OurSqlBuilder.class, method= "buildDelete")
void delete(Integer id);
示例11: deleteByExample
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=UserSqlProvider.class, method="deleteByExample")
int deleteByExample(UserCriteria example);
示例12: delete
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
示例13: deleteByExample
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
* 根据Example条件删除数据
*
* @param example
* @return
*/
@DeleteProvider(type = ExampleProvider.class, method = "dynamicSQL")
int deleteByExample(Object example);
示例14: delete
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
* 根据实体属性作为条件进行删除,查询条件使用等号
*
* @param record
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int delete(T record);
示例15: deleteByPrimaryKey
import org.apache.ibatis.annotations.DeleteProvider; //导入依赖的package包/类
/**
* 根据主键字段进行删除,方法参数必须包含完整的主键属性
*
* @param key
* @return
*/
@DeleteProvider(type = BaseDeleteProvider.class, method = "dynamicSQL")
int deleteByPrimaryKey(Object key);