Package com.skyline.energy.annotation

Examples of com.skyline.energy.annotation.BatchUpdate


    Update update = method.getAnnotation(Update.class);
    if (update != null) {
      updateDefinition = new JdbcUpdateDefinition(method);
    }

    BatchUpdate batchUpdate = method.getAnnotation(BatchUpdate.class);
    if (batchUpdate != null) {
      batchUpdateDefinition = new JdbcBatchUpdateDefinition(method);
    }

  }
View Full Code Here


    Map<String, Integer> batchParamIndexes = new HashMap<String, Integer>(8, 1f);
    Class<?>[] paramTypes = method.getParameterTypes();
    Annotation[][] annotations = method.getParameterAnnotations();
    parseParameterAnnotations(annotations, paramIndexes, batchParamIndexes, paramTypes);

    BatchUpdate update = method.getAnnotation(BatchUpdate.class);
    parseSql(update.value(), paramTypes, paramIndexes, batchParamIndexes);
   
    parseShardBy(method, paramIndexes, paramTypes);
  }
View Full Code Here

TOP

Related Classes of com.skyline.energy.annotation.BatchUpdate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.