Package org.hibernate.property

Examples of org.hibernate.property.PropertyAccessor


    if ( parentPropertyName == null ) {
      parentSetter = null;
      parentGetter = null;
    }
    else {
      PropertyAccessor pa = PropertyAccessorFactory.getPropertyAccessor( null );
      parentSetter = pa.getSetter( componentClass, parentPropertyName );
      parentGetter = pa.getGetter( componentClass, parentPropertyName );
    }

    if ( hasCustomAccessors || !Environment.useReflectionOptimizer() ) {
      optimizer = null;
    }
View Full Code Here


    private void initialize(String[] aliases) {
        if (instantiationPolicy == null) {
            instantiationPolicy = new DefaultPropertyInstantiationPolicy();
        }
        PropertyAccessor propertyAccessor = new NestedPropertyAccessor(resultClass, instantiationPolicy);
        this.aliases = new String[aliases.length];
        setters = new Setter[aliases.length];
        for (int i = 0; i < aliases.length; ++i) {
            String alias = aliases[i];
            if (alias != null) {
                this.aliases[i] = alias;
                setters[i] = propertyAccessor.getSetter(resultClass, alias);
            }
        }
        isInitialized = true;
    }
View Full Code Here

TOP

Related Classes of org.hibernate.property.PropertyAccessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.