本文整理汇总了Java中org.apache.ibatis.annotations.InsertProvider类的典型用法代码示例。如果您正苦于以下问题:Java InsertProvider类的具体用法?Java InsertProvider怎么用?Java InsertProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InsertProvider类属于org.apache.ibatis.annotations包,在下文中一共展示了InsertProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
示例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);
}
示例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));
}
示例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);
}
示例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);
}
示例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);
示例7: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type =BaseProvider.class,method = "insert")
long insert(T t);
示例8: insertSelective
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SqlServerProvider.class, method = "dynamicSQL")
int insertSelective(T record);
示例9: insert
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type = SqlProvider.class, method = "insert")
public int insert(Map<String,Object> paramter);
示例10: insertSelective
import org.apache.ibatis.annotations.InsertProvider; //导入依赖的package包/类
@InsertProvider(type=UserSqlProvider.class, method="insertSelective")
int insertSelective(User record);
示例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);
示例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);
示例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);
示例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);
示例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);