@Override protected Class<?> executeForIntermediateField(String field, Class<?> result) { // get chained field class Getter getter = propertyAccessor.getGetter(result, field); return getter.getReturnType(); } }.resolve(alias, i);
public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectGetter( getField(theClass, propertyName), theClass, propertyName ); }
public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectSetter( getField(theClass, propertyName), theClass, propertyName ); }
public Setter getSetter(Class clazz) throws PropertyNotFoundException, MappingException { return getPropertyAccessor(clazz).getSetter(clazz, name); }
public void setPropertyValues(Object component, Object[] values) throws HibernateException { for ( int i = 0; i < propertySpan; i++ ) { setters[i].set( component, values[i], null ); } }
/** * Directly retrieve the {@link Getter} reference via the {@link BasicPropertyAccessor}. * * @param theClass The class owning the property * @param name The name of the property * @return The getter. * @throws MappingException Indicates we were unable to locate the property. */ public static Getter getGetter(Class theClass, String name) throws MappingException { return BASIC_PROPERTY_ACCESSOR.getGetter( theClass, name ); }
/** * {@inheritDoc} */ public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) { return get( target ); }
/** * {@inheritDoc} */ public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new MapGetter(propertyName); }
/** * {@inheritDoc} */ public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) { return get( target ); }
private PropertyAccessor buildPropertyAccessor(AttributeBinding mappedProperty) { // TODO: fix when backrefs are working in new metamodel //if ( mappedProperty.isBackRef() ) { // return mappedProperty.getPropertyAccessor( null ); //} //else { return PropertyAccessorFactory.getDynamicMapPropertyAccessor(); //} }
/** * {@inheritDoc} */ public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) { return get( target ); }
/** * {@inheritDoc} */ public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new MapSetter(propertyName); }
public static PropertyAccessor getDom4jPropertyAccessor(String nodeName, Type type, SessionFactoryImplementor factory) throws MappingException { //TODO: need some caching scheme? really comes down to decision // regarding amount of state (if any) kept on PropertyAccessors return new Dom4jAccessor( nodeName, type, factory ); }
public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectGetter( getField(theClass, propertyName), theClass, propertyName ); }
public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectSetter( getField(theClass, propertyName), theClass, propertyName ); }
public void setPropertyValues(Object component, Object[] values) throws HibernateException { for ( int i = 0; i < propertySpan; i++ ) { setters[i].set( component, values[i], null ); } }
/** * {@inheritDoc} */ public Object getForInsert(Object target, Map mergeMap, SessionImplementor session) { return get( target ); }
public static PropertyAccessor getDom4jPropertyAccessor(String nodeName, Type type, SessionFactoryImplementor factory) throws MappingException { //TODO: need some caching scheme? really comes down to decision // regarding amount of state (if any) kept on PropertyAccessors return new Dom4jAccessor( nodeName, type, factory ); }
public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectGetter( getField(theClass, propertyName), theClass, propertyName ); }
public Setter getSetter(Class theClass, String propertyName) throws PropertyNotFoundException { return new DirectSetter( getField(theClass, propertyName), theClass, propertyName ); }