Package org.hibernate.property
Class PropertyAccessorFactory
java.lang.Object
org.hibernate.property.PropertyAccessorFactory
A factory for building/retrieving PropertyAccessor instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyAccessorgetDom4jPropertyAccessor(String nodeName, Type type, SessionFactoryImplementor factory) static PropertyAccessorstatic PropertyAccessorgetPropertyAccessor(Class optionalClass, String type) static PropertyAccessorgetPropertyAccessor(String type) static PropertyAccessorgetPropertyAccessor(Property property, EntityMode mode) Retrieves a PropertyAccessor instance based on the given property definition and entity mode.
-
Method Details
-
getPropertyAccessor
public static PropertyAccessor getPropertyAccessor(Property property, EntityMode mode) throws MappingException Retrieves a PropertyAccessor instance based on the given property definition and entity mode.- Parameters:
property- The property for which to retrieve an accessor.mode- The mode for the resulting entity.- Returns:
- An appropriate accessor.
- Throws:
MappingException
-
getDynamicMapPropertyAccessor
- Throws:
MappingException
-
getDom4jPropertyAccessor
public static PropertyAccessor getDom4jPropertyAccessor(String nodeName, Type type, SessionFactoryImplementor factory) throws MappingException - Throws:
MappingException
-
getPropertyAccessor
public static PropertyAccessor getPropertyAccessor(Class optionalClass, String type) throws MappingException - Throws:
MappingException
-
getPropertyAccessor
- Throws:
MappingException
-