public class

BasicPropertyAccessor

extends Object
implements PropertyAccessor
java.lang.Object
   ↳ org.hibernate.property.BasicPropertyAccessor

Class Overview

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

Summary

Nested Classes
class BasicPropertyAccessor.BasicGetter  
class BasicPropertyAccessor.BasicSetter  
Public Constructors
BasicPropertyAccessor()
Public Methods
static Getter createGetter(Class theClass, String propertyName)
Getter getGetter(Class theClass, String propertyName)
Create a "getter" for the named attribute
Setter getSetter(Class theClass, String propertyName)
Create a "setter" for the named attribute
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.property.PropertyAccessor

Public Constructors

public BasicPropertyAccessor ()

Public Methods

public static Getter createGetter (Class theClass, String propertyName)

public Getter getGetter (Class theClass, String propertyName)

Create a "getter" for the named attribute

Parameters
theClass The class on which the property is defined.
propertyName The name of the property.
Returns
  • An appropriate getter.

public Setter getSetter (Class theClass, String propertyName)

Create a "setter" for the named attribute

Parameters
theClass The class on which the property is defined.
propertyName The name of the property.
Returns
  • An appropriate setter