Package org.hibernate.engine.internal

Examples of org.hibernate.engine.internal.EntityEntryExtraStateHolder


  }

  private static final Object[] DEFAULT_DELETED_STATE = null;

  public Object[] getDeletedState() {
    EntityEntryExtraStateHolder extra = getExtraState( EntityEntryExtraStateHolder.class );
    return extra != null ? extra.getDeletedState() : DEFAULT_DELETED_STATE;
  }
View Full Code Here


    EntityEntryExtraStateHolder extra = getExtraState( EntityEntryExtraStateHolder.class );
    return extra != null ? extra.getDeletedState() : DEFAULT_DELETED_STATE;
  }

  public void setDeletedState(Object[] deletedState) {
    EntityEntryExtraStateHolder extra = getExtraState( EntityEntryExtraStateHolder.class );
    if ( extra == null && deletedState == DEFAULT_DELETED_STATE ) {
      //this is the default value and we do not store the extra state
      return;
    }
    if ( extra == null ) {
      extra = new EntityEntryExtraStateHolder();
      addExtraState( extra );
    }
    extra.setDeletedState( deletedState );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.internal.EntityEntryExtraStateHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.