cn.gtmap.estateplat.utils
类 AnnotationsUtils

java.lang.Object
  继承者 cn.gtmap.estateplat.utils.AnnotationsUtils

public class AnnotationsUtils
extends Object

Created with IntelliJ IDEA. User: zx Date: 15-3-25 Time: 下午8:14 Des:获取注释 To change this template use File | Settings | File Templates.


构造方法摘要
AnnotationsUtils()
           
 
方法摘要
static List<Field> getAnnotationField(Object obj, Class annotationClass)
          zdd 获取对象上注解类为annotationClass的 对象属性字段
static String getAnnotationFieldName(Object obj, Class annotationClass)
          zdd 获取对象上注解类为annotationClass的 对象属性名称
static Method getAnnotationsName(Object vo)
          返回vo对象中主键的get方法
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AnnotationsUtils

public AnnotationsUtils()
方法详细信息

getAnnotationsName

public static Method getAnnotationsName(Object vo)
返回vo对象中主键的get方法

参数:
vo -
返回:

getAnnotationFieldName

public static String getAnnotationFieldName(Object obj,
                                            Class annotationClass)
zdd 获取对象上注解类为annotationClass的 对象属性名称

参数:
obj -
annotationClass -
返回:

getAnnotationField

public static List<Field> getAnnotationField(Object obj,
                                             Class annotationClass)
zdd 获取对象上注解类为annotationClass的 对象属性字段

参数:
obj -
annotationClass -
返回:


Copyright © 2015–2017 cn.gtmap. All rights reserved.