Top Description Fields Constructors Methods
org.hibernate.property

public final Class PropertyAccessorFactory

extends Object
Class Inheritance
Imports
java.util.Map, org.hibernate.MappingException, .EntityMode, org.hibernate.type.Type, org.hibernate.engine.SessionFactoryImplementor, org.hibernate.mapping.Property, org.hibernate.util.ReflectHelper, .StringHelper

A factory for building/retrieving PropertyAccessor instances.
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final PropertyAccessor
private static final PropertyAccessor
private static final PropertyAccessor
private static final PropertyAccessor
private static final PropertyAccessor

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PropertyAccessor
public static PropertyAccessor
private static PropertyAccessor

Returns:

An appropriate accessor.
getPojoPropertyAccessor
(String
The access strategy.
pojoAccessorStrategy
)

Retreives a PropertyAccessor specific for a PojoRepresentation with the given access strategy.

public static PropertyAccessor

Returns:

An appropriate accessor.
getPropertyAccessor
(Property
The property for which to retrieve an accessor.
property
,
EntityMode
The mode for the resulting entity.
mode
)

Retrieves a PropertyAccessor instance based on the given property definition and entity mode.

public static PropertyAccessor
getPropertyAccessor(Class<T> optionalClass, String type)

public static PropertyAccessor
private static PropertyAccessor
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASIC_PROPERTY_ACCESSORback to summary
private static final PropertyAccessor BASIC_PROPERTY_ACCESSOR
DIRECT_PROPERTY_ACCESSORback to summary
private static final PropertyAccessor DIRECT_PROPERTY_ACCESSOR
EMBEDDED_PROPERTY_ACCESSORback to summary
private static final PropertyAccessor EMBEDDED_PROPERTY_ACCESSOR
MAP_ACCESSORback to summary
private static final PropertyAccessor MAP_ACCESSOR
NOOP_ACCESSORback to summary
private static final PropertyAccessor NOOP_ACCESSOR

Constructor Detail

PropertyAccessorFactoryback to summary
private PropertyAccessorFactory()

Method Detail

getDom4jPropertyAccessorback to summary
public static PropertyAccessor getDom4jPropertyAccessor(String nodeName, Type type, SessionFactoryImplementor factory) throws MappingException
getDynamicMapPropertyAccessorback to summary
public static PropertyAccessor getDynamicMapPropertyAccessor() throws MappingException
getPojoPropertyAccessorback to summary
private static PropertyAccessor getPojoPropertyAccessor(String pojoAccessorStrategy)

Retreives a PropertyAccessor specific for a PojoRepresentation with the given access strategy.

Parameters
pojoAccessorStrategy:String

The access strategy.

Returns:PropertyAccessor

An appropriate accessor.

getPropertyAccessorback to summary
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:Property

The property for which to retrieve an accessor.

mode:EntityMode

The mode for the resulting entity.

Returns:PropertyAccessor

An appropriate accessor.

getPropertyAccessorback to summary
public static PropertyAccessor getPropertyAccessor(Class<T> optionalClass, String type) throws MappingException
getPropertyAccessorback to summary
public static PropertyAccessor getPropertyAccessor(String type) throws MappingException
resolveCustomAccessorback to summary
private static PropertyAccessor resolveCustomAccessor(String accessorName)