org.hibernate.property

Class BasicPropertyAccessor

Implemented Interfaces:
PropertyAccessor

public class BasicPropertyAccessor
extends java.lang.Object
implements PropertyAccessor

Accesses property values via a get/set pair, which may be nonpublic. The default (and recommended strategy).
Author:
Gavin King

Nested Class Summary

static class
BasicPropertyAccessor.BasicGetter
static class
BasicPropertyAccessor.BasicSetter

Method Summary

static Getter
createGetter(Class theClass, String propertyName)
Getter
getGetter(Class theClass, String propertyName)
Setter
getSetter(Class theClass, String propertyName)

Method Details

createGetter

public static Getter createGetter(Class theClass,
                                  String propertyName)
            throws PropertyNotFoundException

getGetter

public Getter getGetter(Class theClass,
                        String propertyName)
            throws PropertyNotFoundException
Specified by:
getGetter in interface PropertyAccessor

getSetter

public Setter getSetter(Class theClass,
                        String propertyName)
            throws PropertyNotFoundException
Specified by:
getSetter in interface PropertyAccessor