Package com.skyline.energy.annotation

Examples of com.skyline.energy.annotation.Update


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

    Update update = method.getAnnotation(Update.class);
    String sql = update.value();
    parseSql(sql, paramTypes, paramIndexes);

    parseShardBy(method, paramIndexes, paramTypes);
  }
View Full Code Here


    Query query = method.getAnnotation(Query.class);
    if (query != null) {
      queryDefinition = new JdbcQueryDefinition(method);
    }

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

    BatchUpdate batchUpdate = method.getAnnotation(BatchUpdate.class);
View Full Code Here

TOP

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

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.