public class

IndexPropertyAccessor

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

Class Overview

Represents a "back-reference" to the index of a collection.

Summary

Nested Classes
class IndexPropertyAccessor.IndexGetter The Getter implementation for index backrefs. 
class IndexPropertyAccessor.IndexSetter The Setter implementation for index backrefs. 
Public Constructors
IndexPropertyAccessor(String collectionRole, String entityName)
Constructs a new instance of IndexPropertyAccessor.
Public Methods
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 IndexPropertyAccessor (String collectionRole, String entityName)

Constructs a new instance of IndexPropertyAccessor.

Parameters
collectionRole The collection role which this back ref references.
entityName The name of the entity owning the collection.

Public Methods

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