org.codehaus.groovy.grails.orm.hibernate.support
Class HibernateBeanWrapper
java.lang.Object
org.springframework.beans.PropertyEditorRegistrySupport
org.springframework.beans.AbstractPropertyAccessor
org.springframework.beans.BeanWrapperImpl
org.codehaus.groovy.grails.orm.hibernate.support.HibernateBeanWrapper
- All Implemented Interfaces:
- BeanWrapper, ConfigurablePropertyAccessor, PropertyAccessor, PropertyEditorRegistry, TypeConverter
public class HibernateBeanWrapper
- extends BeanWrapperImpl
BeanWrapper implementaion that will not lazy initialize entity properties.
Methods inherited from class org.springframework.beans.BeanWrapperImpl |
convertForProperty, convertIfNecessary, getBeanWrapperForPropertyPath, getNestedPath, getPropertyDescriptor, getPropertyDescriptorInternal, getPropertyDescriptors, getPropertyType, getPropertyTypeDescriptor, getRootClass, getRootInstance, getSecurityContext, getWrappedClass, getWrappedInstance, isAutoGrowNestedPaths, isReadableProperty, isWritableProperty, newNestedBeanWrapper, setAutoGrowNestedPaths, setIntrospectionClass, setPropertyValue, setPropertyValue, setSecurityContext, setWrappedInstance, setWrappedInstance, toString |
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport |
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, isSharedEditor, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, registerSharedEditor, setConversionService, useConfigValueEditors |
HibernateBeanWrapper
public HibernateBeanWrapper()
HibernateBeanWrapper
public HibernateBeanWrapper(boolean b)
HibernateBeanWrapper
public HibernateBeanWrapper(Object o)
HibernateBeanWrapper
public HibernateBeanWrapper(Class aClass)
HibernateBeanWrapper
public HibernateBeanWrapper(Object o,
String s,
Object o1)
getPropertyValue
public Object getPropertyValue(String name)
throws BeansException
- Checks Hibernate.isInitialized before calling super method.
- Specified by:
getPropertyValue
in interface PropertyAccessor
- Overrides:
getPropertyValue
in class BeanWrapperImpl
- Parameters:
name
- target property
- Returns:
- null if false or super'name value if true
- Throws:
BeansException
Copyright (c) 2005-2009 The Grails project