Top Description Methods
org.hibernate.property

public Interface PropertyAccessor

Known Direct Implementers
org.hibernate.property.BackrefPropertyAccessor, org.hibernate.property.BasicPropertyAccessor, org.hibernate.property.ChainedPropertyAccessor, org.hibernate.property.DirectPropertyAccessor, org.hibernate.property.Dom4jAccessor, org.hibernate.property.EmbeddedPropertyAccessor, org.hibernate.property.IndexPropertyAccessor, org.hibernate.property.MapAccessor, org.hibernate.property.NoopAccessor
Imports
org.hibernate.PropertyNotFoundException

Abstracts the notion of a "property". Defines a strategy for accessing the value of an attribute.
Author
Gavin King

Method Summary

Modifier and TypeMethod and Description
public Getter

Returns:

An appropriate getter.
getGetter
(Class<T>
The class on which the property is defined.
theClass
,
String
The name of the property.
propertyName
)

Create a "getter" for the named attribute

public Setter

Returns:

An appropriate setter
getSetter
(Class<T>
The class on which the property is defined.
theClass
,
String
The name of the property.
propertyName
)

Create a "setter" for the named attribute

Method Detail

getGetterback to summary
public Getter getGetter(Class<T> theClass, String propertyName) throws PropertyNotFoundException

Create a "getter" for the named attribute

Parameters
theClass:Class<T>

The class on which the property is defined.

propertyName:String

The name of the property.

Returns:Getter

An appropriate getter.

Exceptions
PropertyNotFoundException:
Indicates a problem interpretting the propertyName
getSetterback to summary
public Setter getSetter(Class<T> theClass, String propertyName) throws PropertyNotFoundException

Create a "setter" for the named attribute

Parameters
theClass:Class<T>

The class on which the property is defined.

propertyName:String

The name of the property.

Returns:Setter

An appropriate setter

Exceptions
PropertyNotFoundException:
Indicates a problem interpretting the propertyName