Examples of instantiate()


Examples of org.hibernate.event.spi.EventSource.instantiate()

        null;
    if ( copyCache.containsKey( entity ) ) {
      persister.setIdentifier( copyCache.get( entity ), id, source );
    }
    else {
      ( (EventCache) copyCache ).put( entity, source.instantiate( persister, id ), true ); //before cascade!
    }
    final Object copy = copyCache.get( entity );

    // cascade first, so that all unsaved objects get their
    // copy created before we actually copy
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

      }
    }
    else {
      final Object optionalObject = event.getInstanceToLoad();
      entity = optionalObject == null
          ? session.instantiate( subclassPersister, entityId )
          : optionalObject;
    }

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( entityId, subclassPersister );
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

      );
    }

    EntityPersister subclassPersister = factory.getEntityPersister( entry.getSubclass() );
    Object result = optionalObject == null ?
        session.instantiate( subclassPersister, id ) : optionalObject;

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( id, subclassPersister );
    TwoPhaseLoad.addUninitializedCachedEntity(
        entityKey,
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

          MessageHelper.infoString( persister, id, factory ) );
    }

    EntityPersister subclassPersister = factory.getEntityPersister( entry.getSubclass() );
    Object result = optionalObject == null ?
        session.instantiate( subclassPersister, id ) : optionalObject;

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( id, subclassPersister );
    TwoPhaseLoad.addUninitializedCachedEntity(
        entityKey,
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

          MessageHelper.infoString( persister, id, factory ) );
    }

    EntityPersister subclassPersister = factory.getEntityPersister( entry.getSubclass() );
    Object result = optionalObject == null ?
        session.instantiate( subclassPersister, id ) : optionalObject;

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( id, subclassPersister );
    TwoPhaseLoad.addUninitializedCachedEntity(
        entityKey,
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

      }
    }
    else {
      final Object optionalObject = event.getInstanceToLoad();
      entity = optionalObject == null
          ? session.instantiate( subclassPersister, entityId )
          : optionalObject;
    }

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( entityId, subclassPersister );
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

          MessageHelper.infoString( persister, id, factory ) );
    }

    EntityPersister subclassPersister = factory.getEntityPersister( entry.getSubclass() );
    Object result = optionalObject == null ?
        session.instantiate( subclassPersister, id ) : optionalObject;

    // make it circular-reference safe
    final EntityKey entityKey = session.generateEntityKey( id, subclassPersister );
    TwoPhaseLoad.addUninitializedCachedEntity(
        entityKey,
View Full Code Here

Examples of org.hibernate.event.spi.EventSource.instantiate()

            null;
    if ( copyCache.containsKey( entity ) ) {
      persister.setIdentifier( copyCache.get( entity ), id, source );
    }
    else {
      ( ( EventCache ) copyCache ).put( entity, source.instantiate( persister, id ), true ); //before cascade!
    }
    final Object copy = copyCache.get( entity );

    // cascade first, so that all unsaved objects get their
    // copy created before we actually copy
View Full Code Here

Examples of org.hibernate.hql.HolderInstantiator.instantiate()

    // meant to handle dynamic instantiation queries...
    HolderInstantiator holderInstantiator = HolderInstantiator.getHolderInstantiator(selectNewTransformer, resultTransformer, queryReturnAliases);
    if ( holderInstantiator.isRequired() ) {
      for ( int i = 0; i < results.size(); i++ ) {
        Object[] row = ( Object[] ) results.get( i );
        Object result = holderInstantiator.instantiate(row);
        results.set( i, result );
      }

      if(!hasSelectNew() && resultTransformer!=null) {
        return resultTransformer.transformList(results);
View Full Code Here

Examples of org.hibernate.hql.HolderInstantiator.instantiate()

    // meant to handle dynamic instantiation queries...
    HolderInstantiator holderInstantiator = HolderInstantiator.getHolderInstantiator(selectNewTransformer, resultTransformer, queryReturnAliases);
    if ( holderInstantiator.isRequired() ) {
      for ( int i = 0; i < results.size(); i++ ) {
        Object[] row = ( Object[] ) results.get( i );
        Object result = holderInstantiator.instantiate(row);
        results.set( i, result );
      }

      if(!hasSelectNew() && resultTransformer!=null) {
        return resultTransformer.transformList(results);
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.