org.hibernate.property

Class IndexPropertyAccessor

Implemented Interfaces:
PropertyAccessor

public class IndexPropertyAccessor
extends java.lang.Object
implements PropertyAccessor

Represents a "back-reference" to the index of a collection.
Author:
Gavin King

Nested Class Summary

class
IndexPropertyAccessor.IndexGetter
The Getter implementation for index backrefs.
static class
IndexPropertyAccessor.IndexSetter
The Setter implementation for index backrefs.

Constructor Summary

IndexPropertyAccessor(String collectionRole, String entityName)
Constructs a new instance of IndexPropertyAccessor.

Method Summary

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

Constructor Details

IndexPropertyAccessor

public IndexPropertyAccessor(String collectionRole,
                             String entityName)
Constructs a new instance of IndexPropertyAccessor.
Parameters:
collectionRole - The collection role which this back ref references.

Method Details

getGetter

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

getSetter

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