org.hibernate.property
Class PropertyAccessorFactory
java.lang.Object
org.hibernate.property.PropertyAccessorFactory
public final class PropertyAccessorFactory
- extends Object
A factory for building/retrieving PropertyAccessor instances.
- Author:
- Gavin King, Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
public static PropertyAccessor getDynamicMapPropertyAccessor()
throws MappingException
- 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
public static PropertyAccessor getPropertyAccessor(String type)
throws MappingException
- Throws:
MappingException