All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.property.access.spi.PropertyAccessStrategy Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.property.access.spi;

/**
 * Describes a strategy for persistent property access (field, JavaBean-style property, etc).
 * Acts as a factory for {@link PropertyAccess} instances.
 *
 * @author Steve Ebersole
 */
public interface PropertyAccessStrategy {
	/**
	 * Build a PropertyAccess for the indicated property
	 *
	 * @param containerJavaType The Java type that contains the property; may be {@code null} for non-pojo cases.
	 * @param propertyName The property name
	 *
	 * @return The appropriate PropertyAccess
	 */
	PropertyAccess buildPropertyAccess(Class containerJavaType, String propertyName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy