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

项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
    Class<?> returnType = getReturnType(method);
    ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
    Results results = method.getAnnotation(Results.class);
    TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
    String resultMapId = generateResultMapName(method);
    applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
    return resultMapId;
}
项目:MybatisCode    文件:MapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
  Class<?> returnType = getReturnType(method);
  ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
  Results results = method.getAnnotation(Results.class);
  TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
  String resultMapId = generateResultMapName(method);
  applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
  return resultMapId;
}
项目:mybatis    文件:MapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
  Class<?> returnType = getReturnType(method);
  ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
  Results results = method.getAnnotation(Results.class);
  TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
  String resultMapId = generateResultMapName(method);
  applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
  return resultMapId;
}
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
    Class<?> returnType = getReturnType(method);
    ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
    Results results = method.getAnnotation(Results.class);
    TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
    String resultMapId = generateResultMapName(method);
    applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
    return resultMapId;
}
项目:mybaties    文件:MapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
  Class<?> returnType = getReturnType(method);
  ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
  Results results = method.getAnnotation(Results.class);
  TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
  String resultMapId = generateResultMapName(method);
  applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
  return resultMapId;
}
项目:play    文件:MapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
  Class<?> returnType = getReturnType(method);
  ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
  Results results = method.getAnnotation(Results.class);
  TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
  String resultMapId = generateResultMapName(method);
  applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
  return resultMapId;
}
项目:mybatis-3    文件:MapperAnnotationBuilder.java   
private String parseResultMap(Method method) {
  Class<?> returnType = getReturnType(method);
  ConstructorArgs args = method.getAnnotation(ConstructorArgs.class);
  Results results = method.getAnnotation(Results.class);
  TypeDiscriminator typeDiscriminator = method.getAnnotation(TypeDiscriminator.class);
  String resultMapId = generateResultMapName(method);
  applyResultMap(resultMapId, returnType, argsIf(args), resultsIf(results), typeDiscriminator);
  return resultMapId;
}
项目:mybatis-plus-mini    文件:MybatisMapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
    return args == null ? new Arg[0] : args.value();
}
项目:MybatisCode    文件:MapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
  return args == null ? new Arg[0] : args.value();
}
项目:MybatisCode    文件:Mapper.java   
@Select("select id, name from product where name = #{value}")
@ConstructorArgs({
  @Arg(id = true, column="id", javaType = ProductId.class, jdbcType=JdbcType.INTEGER),
  @Arg(column="name")
})
Product getProductByNameUsingConstructor(String name);
项目:mybatis    文件:MapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
  return args == null ? new Arg[0] : args.value();
}
项目:mybatis    文件:Mapper.java   
@Select("select id, name from product where name = #{value}")
@ConstructorArgs({
  @Arg(id = true, column="id", javaType = ProductId.class, jdbcType=JdbcType.INTEGER),
  @Arg(column="name")
})
Product getProductByNameUsingConstructor(String name);
项目:mybatis-plus    文件:MybatisMapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
    return args == null ? new Arg[0] : args.value();
}
项目:mybaties    文件:MapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
  return args == null ? new Arg[0] : args.value();
}
项目:play    文件:MapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
  return args == null ? new Arg[0] : args.value();
}
项目:storm-sentiment    文件:WordCountDao.java   
/**
 * 查询词频统计结果,查询频次开前的N个结果
 */
@Select("SELECT `word`,`count` FROM `wordcount` ORDER BY `count` DESC LIMIT #{N}")
@ConstructorArgs(value = { @Arg(column = "word", javaType = String.class),
        @Arg(column = "count", javaType = Integer.class) })
@ResultType(value = WordAndCount.class)
public List<WordAndCount> selectWordCountTopN(int N);
项目:mybatis-3    文件:MapperAnnotationBuilder.java   
private Arg[] argsIf(ConstructorArgs args) {
  return args == null ? new Arg[0] : args.value();
}
项目:mybatis-3    文件:Mapper.java   
@Select("select id, name from product where name = #{value}")
@ConstructorArgs({
  @Arg(id = true, column="id", javaType = ProductId.class, jdbcType=JdbcType.INTEGER),
  @Arg(column="name")
})
Product getProductByNameUsingConstructor(String name);
项目:mybatis-3    文件:InvalidNamedConstructorArgsTest.java   
@ConstructorArgs({
    @Arg(column = "id", name = "noSuchConstructorArg"),
})
@Select("select * from users ")
User select();
项目:mybatis-3    文件:InvalidNamedConstructorArgsTest.java   
@ConstructorArgs({
    @Arg(column = "id", name = "id", javaType = Integer.class),
})
@Select("select * from users ")
User select();
项目:mybatis-3    文件:InvalidNamedConstructorArgsTest.java   
@ConstructorArgs({
    @Arg(column = "id", name = "id"),
})
@Select("select * from users ")
User select();