org.norther.tammi.root.hibernate.util
Class VariableAccessor

java.lang.Object
  extended by org.hibernate.property.BasicPropertyAccessor
      extended by org.norther.tammi.root.hibernate.util.VariableAccessor
All Implemented Interfaces:
org.hibernate.property.PropertyAccessor

public class VariableAccessor
extends org.hibernate.property.BasicPropertyAccessor

A property accessor for variables that extends the basic property accessor to support plain Java objects also. This accessor accepts both capitalized (JMX) and non-capitalized (Beans) property names. Collections represented as arrays are converted automatically, which means that the lazy attribute should be false for the corresponding properties.

Author:
Ilkka Priha

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.property.BasicPropertyAccessor
org.hibernate.property.BasicPropertyAccessor.BasicGetter, org.hibernate.property.BasicPropertyAccessor.BasicSetter
 
Constructor Summary
VariableAccessor()
          Constructs a new accessor.
 
Method Summary
 org.hibernate.property.Getter getGetter(Class clazz, String field)
           
 org.hibernate.property.Setter getSetter(Class clazz, String field)
           
 
Methods inherited from class org.hibernate.property.BasicPropertyAccessor
createGetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableAccessor

public VariableAccessor()
Constructs a new accessor.

Method Detail

getGetter

public org.hibernate.property.Getter getGetter(Class clazz,
                                               String field)
                                        throws org.hibernate.PropertyNotFoundException
Specified by:
getGetter in interface org.hibernate.property.PropertyAccessor
Overrides:
getGetter in class org.hibernate.property.BasicPropertyAccessor
Throws:
org.hibernate.PropertyNotFoundException

getSetter

public org.hibernate.property.Setter getSetter(Class clazz,
                                               String field)
                                        throws org.hibernate.PropertyNotFoundException
Specified by:
getSetter in interface org.hibernate.property.PropertyAccessor
Overrides:
getSetter in class org.hibernate.property.BasicPropertyAccessor
Throws:
org.hibernate.PropertyNotFoundException


Copyright © 2004 The Norther Organization. All rights reserved.