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); }
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)); }
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); }
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); }
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert") @SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class) int insert(SimpleTable simpleTable);
@InsertProvider(type =BaseProvider.class,method = "insert") long insert(T t);
@Options(useGeneratedKeys = true, keyProperty = "id") @InsertProvider(type = SqlServerProvider.class, method = "dynamicSQL") int insertSelective(T record);
@InsertProvider(type = SqlProvider.class, method = "insert") public int insert(Map<String,Object> paramter);
@InsertProvider(type=UserSqlProvider.class, method="insertSelective") int insertSelective(User record);
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert") @SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class) void insert(SimpleTable simpleTable);
@InsertProvider(type = PaymentExceptionLogSqlBuilder.class, method = "insert") @SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class) int insert(PaymentExceptionLog record);
@InsertProvider(type = WxAppSessionSqlBuilder.class, method = SqlBuilderConstant.INSERT) @SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class) int insert(WxAppSession record);
@InsertProvider(type = StatementProvider.class, method = "provideInsert") @Options(useGeneratedKeys = true, keyProperty = "id") int insert(List<S> param);
@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);
@InsertProvider(type = OurSqlBuilder.class, method = "buildInsert") void insert(User user);
@InsertProvider(type = AccountSqlProvider.class, method = "insertSql") void insert(MemAccount memAccount);
@InsertProvider(type=SqlProviderAdapter.class, method="insert") @Options(useGeneratedKeys=true, keyProperty="record.fullName") int insert(InsertStatementProvider<GeneratedAlwaysRecord> insertStatement);
@InsertProvider(type=SqlProviderAdapter.class, method="insert") int insert(InsertStatementProvider<SimpleTableRecord> insertStatement);
@InsertProvider(type=SqlProviderAdapter.class, method="insert") int insert(InsertStatementProvider<AnimalData> insertStatement);
@InsertProvider(type=SqlProviderAdapter.class, method="insertSelect") int insertSelect(InsertSelectStatementProvider insertSelectStatement);
@InsertProvider(type = UserMapperProvider.class, method = "inserAll") int insertAll(List<User> list);
@InsertProvider(type = RoleSqlProvider.class, method = "insertSql") void insert(MemAccount memAccount);
@InsertProvider(type = BusListenerSqlProvider.class, method = "insertSql") void insert(MemBusListener memBusListener);
@InsertProvider(type = BusProgressSqlProvider.class, method = "insertSql") void insert(MemBusProgress memBusProgress);