org.norther.tammi.root.hibernate.util
Class VariableAccessor
java.lang.Object
org.hibernate.property.BasicPropertyAccessor
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 classes/interfaces inherited from class org.hibernate.property.BasicPropertyAccessor |
org.hibernate.property.BasicPropertyAccessor.BasicGetter, org.hibernate.property.BasicPropertyAccessor.BasicSetter |
| 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 |
VariableAccessor
public VariableAccessor()
- Constructs a new accessor.
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.