org.hibernate.engine.spi.EntityEntryExtraState 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
The core O/RM functionality as provided by Hibernate
                
             The 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 - 2025 Weber Informatics LLC | Privacy Policy