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

org.hibernate.engine.spi.EntityEntryExtraState 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.engine.spi;

/**
 * Navigation methods for extra state objects attached to {@link org.hibernate.engine.spi.EntityEntry}.
 *
 * @author Emmanuel Bernard
 */
public interface EntityEntryExtraState {

	/**
	 * Attach additional state to the core state of {@link org.hibernate.engine.spi.EntityEntry}
	 * 

* Implementations must delegate to the next state or add it as next state if last in line. */ void addExtraState(EntityEntryExtraState extraState); /** * Retrieve additional state by class type or null if no extra state of that type is present. *

* Implementations must return self if they match or delegate discovery to the next state in line. */ T getExtraState(Class extraStateType); //a remove method is ugly to define and has not real use case that we found: left out }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy