Package org.springframework.data.simpledb.annotation

Examples of org.springframework.data.simpledb.annotation.Attributes


  @SuppressWarnings("unchecked")
  public static Map<String, String> getAttributes(Object object) {
    Class<?> clazz = object.getClass();
    for(Field f : clazz.getDeclaredFields()) {
      Attributes attributes = f.getAnnotation(Attributes.class);
      if(attributes != null) {
        try {
          f.setAccessible(true);
          return (Map<String, String>) f.get(object);
        } catch(IllegalAccessException e) {
View Full Code Here


  public static Field getAttributesField(Object object) {
    Class<?> clazz = object.getClass();
    for(Field f : clazz.getDeclaredFields()) {
      // annotated with Attributes
      Attributes attributes = f.getAnnotation(Attributes.class);
      if(attributes != null) {
        return f;
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.simpledb.annotation.Attributes

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.