Code example for EntityEntryExtraState

Methods: addExtraState

0
	public void addExtraState(EntityEntryExtraState extraState) {
		if ( next == null ) {
			next = extraState;
		} 
		else { 
			next.addExtraState( extraState );
		} 
	} 
 
	@Override 
	@SuppressWarnings("unchecked") 
	public <T extends EntityEntryExtraState> T getExtraState(Class<T> extraStateType) {
		if ( next == null ) {
			return null; 
		} 
		if ( extraStateType.isAssignableFrom( next.getClass() ) ) {
			return (T) next;
		} 
		else { 
			return next.getExtraState( extraStateType );