本文整理汇总了Java中org.apache.ibatis.annotations.InsertProvider类的典型用法代码示例。如果您正苦于以下问题:Java InsertProvider类的具体用法?Java InsertProvider怎么用?Java InsertProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InsertProvider类属于org.apache.ibatis.annotations包,在下文中一共展示了InsertProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getSqlCommandType
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的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));
}
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:24,代码来源:MybatisMapperAnnotationBuilder.java
示例2: MapperAnnotationBuilder
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的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);
}
开发者ID:txazo,项目名称:mybatis,代码行数:17,代码来源:MapperAnnotationBuilder.java
示例3: getSqlCommandType
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的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));
}
开发者ID:txazo,项目名称:mybatis,代码行数:24,代码来源:MapperAnnotationBuilder.java
示例4: MybatisMapperAnnotationBuilder
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的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);
}
开发者ID:baomidou,项目名称:mybatis-plus,代码行数:20,代码来源:MybatisMapperAnnotationBuilder.java
示例5: MybatisMapperAnnotationBuilder
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的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);
}
开发者ID:Caratacus,项目名称:mybatis-plus-mini,代码行数:17,代码来源:MybatisMapperAnnotationBuilder.java
示例6: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert")
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class)
int insert(SimpleTable simpleTable);
开发者ID:easymall,项目名称:easymall,代码行数:4,代码来源:SimpleMybatisMapper.java
示例7: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type =BaseProvider.class,method = "insert")
long insert(T t);
开发者ID:ChenXun1989,项目名称:ace,代码行数:3,代码来源:BaseMapper.java
示例8: insertSelective
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SqlServerProvider.class, method = "dynamicSQL")
int insertSelective(T record);
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:InsertSelectiveMapper.java
示例9: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = SqlProvider.class, method = "insert")
public int insert(Map<String,Object> paramter);
开发者ID:wulizhong,项目名称:mybatis-dao,代码行数:3,代码来源:DaoMapper.java
示例10: insertSelective
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=UserSqlProvider.class, method="insertSelective")
int insertSelective(User record);
开发者ID:shenhuanet,项目名称:ssm-server,代码行数:3,代码来源:UserMapper.java
示例11: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert")
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class)
void insert(SimpleTable simpleTable);
开发者ID:easymall,项目名称:easy-test,代码行数:4,代码来源:SimpleMybatisMapper.java
示例12: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = PaymentExceptionLogSqlBuilder.class, method = "insert")
@SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class)
int insert(PaymentExceptionLog record);
开发者ID:superkoh,项目名称:k-framework,代码行数:4,代码来源:PaymentExceptionLogMapper.java
示例13: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = WxAppSessionSqlBuilder.class, method = SqlBuilderConstant.INSERT)
@SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class)
int insert(WxAppSession record);
开发者ID:superkoh,项目名称:k-framework,代码行数:4,代码来源:WxAppSessionMapper.java
示例14: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = StatementProvider.class, method = "provideInsert")
@Options(useGeneratedKeys = true, keyProperty = "id")
int insert(List<S> param);
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:4,代码来源:BaseMapper.java
示例15: insertTable3_2
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=SqlProvider.class,method="insertTable3_2")
@SelectKey(statement="call next value for TestSequence", keyProperty="nameId", before=true, resultType=int.class)
int insertTable3_2(Name name);
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:4,代码来源:AnnotatedMapper.java
示例16: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = OurSqlBuilder.class, method = "buildInsert")
void insert(User user);
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:3,代码来源:Mapper.java
示例17: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = AccountSqlProvider.class, method = "insertSql")
void insert(MemAccount memAccount);
开发者ID:ogcs,项目名称:Okra-Ax,代码行数:3,代码来源:AccountMapper.java
示例18: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@Options(useGeneratedKeys=true, keyProperty="record.fullName")
int insert(InsertStatementProvider<GeneratedAlwaysRecord> insertStatement);
开发者ID:mybatis,项目名称:mybatis-dynamic-sql,代码行数:4,代码来源:GeneratedAlwaysAnnotatedMapper.java
示例19: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider<SimpleTableRecord> insertStatement);
开发者ID:mybatis,项目名称:mybatis-dynamic-sql,代码行数:3,代码来源:SimpleTableAnnotatedMapper.java
示例20: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider<AnimalData> insertStatement);
开发者ID:mybatis,项目名称:mybatis-dynamic-sql,代码行数:3,代码来源:AnimalDataMapper.java
注:本文中的org.apache.ibatis.annotations.InsertProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论