Package org.hibernate.event.spi

Examples of org.hibernate.event.spi.ResolveNaturalIdEvent


    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here


    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

      naturalIdParameters.put( attributeName, value );
      return this;
    }

    protected Serializable resolveNaturalId() {
      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );
      return event.getEntityId();
    }
View Full Code Here

      return this.getIdentifierLoadAccess().load( entityId );
    }

    private Serializable resolveNaturalId(Object naturalIdValue) {
      final Map<String,Object> naturalIdValueMap = Collections.singletonMap( naturalIdAttributeName, naturalIdValue );
      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdValueMap, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );
      return event.getEntityId();
    }
View Full Code Here

    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

        querySpaces.add( querySpace );
      }
     
      autoFlushIfRequired( querySpaces );
     
      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );
      return event.getEntityId();
    }
View Full Code Here

    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

    }

    protected final Serializable resolveNaturalId(Map<String, Object> naturalIdParameters) {
      performAnyNeededCrossReferenceSynchronizations();

      final ResolveNaturalIdEvent event =
          new ResolveNaturalIdEvent( naturalIdParameters, entityPersister, SessionImpl.this );
      fireResolveNaturalId( event );

      if ( event.getEntityId() == PersistenceContext.NaturalIdHelper.INVALID_NATURAL_ID_REFERENCE ) {
        return null;
      }
      else {
        return event.getEntityId();
      }
    }
View Full Code Here

TOP

Related Classes of org.hibernate.event.spi.ResolveNaturalIdEvent

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.