Package org.hibernate.action.internal

Examples of org.hibernate.action.internal.AbstractEntityInsertAction


        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here


        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

        persister.getPropertyUpdateability(),
        values,
        source
    );

    AbstractEntityInsertAction insert = addInsertAction(
        values, id, entity, persister, useIdentityColumn, source, shouldDelayIdentityInserts
    );

    // postpone initializing id in case the insert has non-nullable transient dependencies
    // that are not resolved until cascadeAfterSave() is executed
    cascadeAfterSave( source, persister, entity, anything );
    if ( useIdentityColumn && insert.isEarlyInsert() ) {
      if ( !EntityIdentityInsertAction.class.isInstance( insert ) ) {
        throw new IllegalStateException(
            "Insert should be using an identity column, but action is of unexpected type: " +
                insert.getClass().getName()
        );
      }
      id = ((EntityIdentityInsertAction) insert).getGeneratedId();

      insert.handleNaturalIdPostSaveNotifications( id );
    }

    markInterceptorDirty( entity, persister, source );

    EntityEntry newEntry = source.getPersistenceContext().getEntry( entity );
View Full Code Here

TOP

Related Classes of org.hibernate.action.internal.AbstractEntityInsertAction

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.