Package org.hibernate.property
Class BasicPropertyAccessor
java.lang.Object
org.hibernate.property.BasicPropertyAccessor
- All Implemented Interfaces:
PropertyAccessor
Accesses property values via a get/set pair, which may be nonpublic.
The default (and recommended strategy).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BasicPropertyAccessor
public BasicPropertyAccessor()
-
-
Method Details
-
getSetter
Description copied from interface:PropertyAccessorCreate a "setter" for the named attribute- Specified by:
getSetterin interfacePropertyAccessor- Parameters:
theClass- The class on which the property is defined.propertyName- The name of the property.- Returns:
- An appropriate setter
- Throws:
PropertyNotFoundException- Indicates a problem interpretting the propertyName
-
getGetter
Description copied from interface:PropertyAccessorCreate a "getter" for the named attribute- Specified by:
getGetterin interfacePropertyAccessor- Parameters:
theClass- The class on which the property is defined.propertyName- The name of the property.- Returns:
- An appropriate getter.
- Throws:
PropertyNotFoundException- Indicates a problem interpretting the propertyName
-
createGetter
public static Getter createGetter(Class theClass, String propertyName) throws PropertyNotFoundException - Throws:
PropertyNotFoundException
-