Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » util » [javadoc | source]
org.hibernate.util
public final class: ReflectHelper [javadoc | source]
java.lang.Object
   org.hibernate.util.ReflectHelper
Utility class for various reflection operations.
Field Summary
public static final  Class[] NO_PARAM_SIGNATURE     
public static final  Object[] NO_PARAMS     
public static final  Class[] SINGLE_OBJECT_PARAM_SIGNATURE     
Method from org.hibernate.util.ReflectHelper Summary:
classForName,   classForName,   extractEqualsMethod,   extractHashCodeMethod,   getConstantValue,   getConstructor,   getDefaultConstructor,   getGetter,   getMethod,   implementsInterface,   isAbstractClass,   isFinalClass,   isPublic,   isPublic,   overridesEquals,   overridesHashCode,   reflectedPropertyClass
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.util.ReflectHelper Detail:
 public static Class classForName(String name) throws ClassNotFoundException 
 public static Class classForName(String name,
    Class caller) throws ClassNotFoundException 
 public static Method extractEqualsMethod(Class clazz) throws NoSuchMethodException 
    Encapsulation of getting hold of a class's equals method.
 public static Method extractHashCodeMethod(Class clazz) throws NoSuchMethodException 
    Encapsulation of getting hold of a class's hashCode method.
 public static Object getConstantValue(String name) 
    Resolve a constant to its actual value.
 public static Constructor getConstructor(Class clazz,
    Type[] types) throws PropertyNotFoundException 
    Retrieve a constructor for the given class, with arguments matching the specified Hibernate mapping types .
 public static Constructor getDefaultConstructor(Class clazz) throws PropertyNotFoundException 
    Retrieve the default (no arg) constructor from the given class.
 public static Getter getGetter(Class theClass,
    String name) throws MappingException 
 public static Method getMethod(Class clazz,
    Method method) 
 public static boolean implementsInterface(Class clazz,
    Class intf) 
    Determine if the given class implements the given interface.
 public static boolean isAbstractClass(Class clazz) 
    Determine if the given class is declared abstract.
 public static boolean isFinalClass(Class clazz) 
    Determine is the given class is declared final.
 public static boolean isPublic(Member member) 
 public static boolean isPublic(Class clazz,
    Member member) 
    Is this member publicly accessible.
 public static boolean overridesEquals(Class clazz) 
 public static boolean overridesHashCode(Class clazz) 
 public static Class reflectedPropertyClass(String className,
    String name) throws MappingException 
    Attempt to resolve the specified property type through reflection.