Package org.hibernate.persister.entity

Examples of org.hibernate.persister.entity.EntityPersister.load()


   
    evictCachedCollections( persister, id, source.getFactory() );
   
    String previousFetchProfile = source.getFetchProfile();
    source.setFetchProfile("refresh");
    Object result = persister.load( id, object, event.getLockMode(), source );
    source.setFetchProfile(previousFetchProfile);
   
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );

  }
View Full Code Here


    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

   
    evictCachedCollections( persister, id, source.getFactory() );
   
    String previousFetchProfile = source.getFetchProfile();
    source.setFetchProfile("refresh");
    Object result = persister.load( id, object, event.getLockMode(), source );
    source.setFetchProfile(previousFetchProfile);
   
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );

  }
View Full Code Here

    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

    evictCachedCollections( persister, id, source.getFactory() );

    String previousFetchProfile = source.getLoadQueryInfluencers().getInternalFetchProfile();
    source.getLoadQueryInfluencers().setInternalFetchProfile( "refresh" );
    Object result = persister.load( id, object, event.getLockOptions(), source );
    // Keep the same read-only/modifiable setting for the entity that it had before refreshing;
    // If it was transient, then set it to the default for the source.
    if ( result != null ) {
      if ( !persister.isMutable() ) {
        // this is probably redundant; it should already be read-only
View Full Code Here

   
    evictCachedCollections( persister, id, source.getFactory() );
   
    String previousFetchProfile = source.getFetchProfile();
    source.setFetchProfile("refresh");
    Object result = persister.load( id, object, event.getLockMode(), source );
    source.setFetchProfile(previousFetchProfile);
   
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );

  }
View Full Code Here

    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

    String previousFetchProfile = this.getFetchProfile();
    Object result = null;
    try {
      this.setFetchProfile( "refresh" );
      result = persister.load( id, entity, lockMode, this );
    }
    finally {
      this.setFetchProfile( previousFetchProfile );
    }
    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.