org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* 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 http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.bytecode.enhance.spi.interceptor;
import java.util.Set;
import org.hibernate.Incubating;
/**
* @author Steve Ebersole
*/
@Incubating
public interface BytecodeLazyAttributeInterceptor extends SessionAssociableInterceptor {
/**
* The name of the entity this interceptor is meant to intercept
*/
String getEntityName();
/**
* The id of the entity instance this interceptor is associated with
*/
Object getIdentifier();
/**
* The names of all lazy attributes which have been initialized
*/
@Override
Set getInitializedLazyAttributeNames();
/**
* Callback from the enhanced class that an attribute has been read or written
*/
void attributeInitialized(String name);
boolean isAttributeLoaded(String fieldName);
boolean hasAnyUninitializedAttributes();
}