Java 类org.apache.ibatis.annotations.InsertProvider 实例源码

项目:mybatis    文件:MapperAnnotationBuilder.java   
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);
}
项目:mybatis    文件:MapperAnnotationBuilder.java   
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));
}
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.java   
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);
}
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.java   
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));
}
项目:mybaties    文件:MapperAnnotationBuilder.java   
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);
}
项目:mybaties    文件:MapperAnnotationBuilder.java   
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));
}
项目:play    文件:MapperAnnotationBuilder.java   
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);
}
项目:play    文件:MapperAnnotationBuilder.java   
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));
}
项目:mybatis-3    文件:MapperAnnotationBuilder.java   
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);
}
项目:mybatis-3    文件:MapperAnnotationBuilder.java   
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));
}
项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.java   
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);
}
项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.java   
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));
}
项目:easymall    文件:SimpleMybatisMapper.java   
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert")
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class)
int insert(SimpleTable simpleTable);
项目:MybatisCode    文件:MapperAnnotationBuilder.java   
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);
}
项目:MybatisCode    文件:MapperAnnotationBuilder.java   
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));
}
项目:ace    文件:BaseMapper.java   
@InsertProvider(type =BaseProvider.class,method = "insert")
long insert(T t);
项目:MybatisGeneatorUtil    文件:InsertSelectiveMapper.java   
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SqlServerProvider.class, method = "dynamicSQL")
int insertSelective(T record);
项目:tk-mybatis    文件:InsertSelectiveMapper.java   
@Options(useGeneratedKeys = true, keyProperty = "id")
@InsertProvider(type = SqlServerProvider.class, method = "dynamicSQL")
int insertSelective(T record);
项目:mybatis-dao    文件:DaoMapper.java   
@InsertProvider(type = SqlProvider.class, method = "insert")
public int insert(Map<String,Object> paramter);
项目:ssm-server    文件:UserMapper.java   
@InsertProvider(type=UserSqlProvider.class, method="insertSelective")
int insertSelective(User record);
项目:easy-test    文件:SimpleMybatisMapper.java   
@InsertProvider(type = SimpleMybatisSqlProvider.class, method = "insert")
@SelectKey(statement = "SELECT LAST_INSERT_ID()", keyProperty = "id", before = false, resultType = Long.class)
void insert(SimpleTable simpleTable);
项目:k-framework    文件:PaymentExceptionLogMapper.java   
@InsertProvider(type = PaymentExceptionLogSqlBuilder.class, method = "insert")
@SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class)
int insert(PaymentExceptionLog record);
项目:k-framework    文件:WxAppSessionMapper.java   
@InsertProvider(type = WxAppSessionSqlBuilder.class, method = SqlBuilderConstant.INSERT)
@SelectKey(statement = "select last_insert_id()", keyProperty = "id", before = false, resultType = Long.class)
int insert(WxAppSession record);
项目:MybatisCode    文件:BaseMapper.java   
@InsertProvider(type = StatementProvider.class, method = "provideInsert")
@Options(useGeneratedKeys = true, keyProperty = "id")
int insert(List<S> param);
项目:MybatisCode    文件:AnnotatedMapper.java   
@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);
项目:MybatisCode    文件:Mapper.java   
@InsertProvider(type = OurSqlBuilder.class, method = "buildInsert")
void insert(User user);
项目:Okra-Ax    文件:AccountMapper.java   
@InsertProvider(type = AccountSqlProvider.class, method = "insertSql")
void insert(MemAccount memAccount);
项目:SpringbootMybatis    文件:UserMapper.java   
@InsertProvider(type=UserSqlProvider.class, method="insertSelective")
int insertSelective(User record);
项目:mybatis    文件:BaseMapper.java   
@InsertProvider(type = StatementProvider.class, method = "provideInsert")
@Options(useGeneratedKeys = true, keyProperty = "id")
int insert(List<S> param);
项目:mybatis    文件:AnnotatedMapper.java   
@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);
项目:mybatis-dynamic-sql    文件:GeneratedAlwaysAnnotatedMapper.java   
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@Options(useGeneratedKeys=true, keyProperty="record.fullName")
int insert(InsertStatementProvider<GeneratedAlwaysRecord> insertStatement);
项目:mybatis-dynamic-sql    文件:SimpleTableAnnotatedMapper.java   
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider<SimpleTableRecord> insertStatement);
项目:mybatis-dynamic-sql    文件:AnimalDataMapper.java   
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider<AnimalData> insertStatement);
项目:mybatis-dynamic-sql    文件:AnimalDataMapper.java   
@InsertProvider(type=SqlProviderAdapter.class, method="insertSelect")
int insertSelect(InsertSelectStatementProvider insertSelectStatement);
项目:mybaties    文件:AnnotatedMapper.java   
@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);
项目:play    文件:AnnotatedMapper.java   
@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);
项目:spring4-2015    文件:UserMapper.java   
@InsertProvider(type = UserMapperProvider.class, method = "inserAll")
int insertAll(List<User> list);
项目:Okra    文件:RoleMapper.java   
@InsertProvider(type = RoleSqlProvider.class, method = "insertSql")
void insert(MemAccount memAccount);
项目:Okra    文件:BusListenerMapper.java   
@InsertProvider(type = BusListenerSqlProvider.class, method = "insertSql")
void insert(MemBusListener memBusListener);
项目:Okra    文件:BusProgressMapper.java   
@InsertProvider(type = BusProgressSqlProvider.class, method = "insertSql")
void insert(MemBusProgress memBusProgress);