Examples of findDirty()


Examples of org.hibernate.Interceptor.findDirty()

                                    String[] propertyNames, Type[] types) {
        int[] result = null;
        for (Iterator iterator = _interceptors.iterator(); iterator.hasNext();) {
            Interceptor interceptor = (Interceptor) iterator.next();
            result =
                interceptor.findDirty(entity, id, currentState, previousState, propertyNames, types);
            if (result != null) {
                /* If any interceptor has returned something not null,
                 * stop the chain
                 */
                break;
View Full Code Here

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

      int[] dirtyProperties;
      if ( event.hasDatabaseSnapshot() ) {
        dirtyProperties = persister.findModified( event.getDatabaseSnapshot(), values, entity, session );
      }
      else {
        dirtyProperties = persister.findDirty( values, entry.getLoadedState(), entity, session );
      }
      event.setDirtyProperties(dirtyProperties);
    }
   
    return intercepted;
View Full Code Here

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

      interceptorHandledDirtyCheck = false;
     
      cannotDirtyCheck = loadedState==null; // object loaded by update()
      if ( !cannotDirtyCheck ) {
        // dirty check against the usual snapshot of the entity
        dirtyProperties = persister.findDirty( values, loadedState, entity, session );
       
      }
      else {
        // dirty check against the database snapshot, if possible/necessary
        final Object[] databaseSnapshot = getDatabaseSnapshot(session, persister, id);
View Full Code Here

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

      int[] dirtyProperties;
      if ( event.hasDatabaseSnapshot() ) {
        dirtyProperties = persister.findModified( event.getDatabaseSnapshot(), values, entity, session );
      }
      else {
        dirtyProperties = persister.findDirty( values, entry.getLoadedState(), entity, session );
      }
      event.setDirtyProperties( dirtyProperties );
    }

    return intercepted;
View Full Code Here

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

        interceptorHandledDirtyCheck = false;
        // object loaded by update()
        cannotDirtyCheck = loadedState == null;
        if ( !cannotDirtyCheck ) {
          // dirty check against the usual snapshot of the entity
          dirtyProperties = persister.findDirty( values, loadedState, entity, session );
        }
        else if ( entry.getStatus() == Status.DELETED && !event.getEntityEntry().isModifiableEntity() ) {
          // A non-modifiable (e.g., read-only or immutable) entity needs to be have
          // references to transient entities set to null before being deleted. No other
          // fields should be updated.
View Full Code Here

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

          // - currentState contains the entity's current property values.
          // - entry.getDeletedState() contains the entity's current property values with
          //   references to transient entities set to null.
          // - dirtyProperties will only contain properties that refer to transient entities
          final Object[] currentState = persister.getPropertyValues( event.getEntity() );
          dirtyProperties = persister.findDirty( entry.getDeletedState(), currentState, entity, session );
          cannotDirtyCheck = false;
        }
        else {
          // dirty check against the database snapshot, if possible/necessary
          final Object[] databaseSnapshot = getDatabaseSnapshot( session, persister, id );
View Full Code Here

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

      int[] dirtyProperties;
      if ( event.hasDatabaseSnapshot() ) {
        dirtyProperties = persister.findModified( event.getDatabaseSnapshot(), values, entity, session );
      }
      else {
        dirtyProperties = persister.findDirty( values, entry.getLoadedState(), entity, session );
      }
      event.setDirtyProperties(dirtyProperties);
    }
   
    return intercepted;
View Full Code Here

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

      interceptorHandledDirtyCheck = false;
     
      cannotDirtyCheck = loadedState==null; // object loaded by update()
      if ( !cannotDirtyCheck ) {
        // dirty check against the usual snapshot of the entity
        dirtyProperties = persister.findDirty( values, loadedState, entity, session );
       
      }
      else {
        // dirty check against the database snapshot, if possible/necessary
        final Object[] databaseSnapshot = getDatabaseSnapshot(session, persister, id);
View Full Code Here

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

      int[] dirtyProperties;
      if ( event.hasDatabaseSnapshot() ) {
        dirtyProperties = persister.findModified( event.getDatabaseSnapshot(), values, entity, session );
      }
      else {
        dirtyProperties = persister.findDirty( values, entry.getLoadedState(), entity, session );
      }
      event.setDirtyProperties(dirtyProperties);
    }
   
    return intercepted;
View Full Code Here

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

      interceptorHandledDirtyCheck = false;
     
      cannotDirtyCheck = loadedState==null; // object loaded by update()
      if ( !cannotDirtyCheck ) {
        // dirty check against the usual snapshot of the entity
        dirtyProperties = persister.findDirty( values, loadedState, entity, session );
       
      }
      else {
        // dirty check against the database snapshot, if possible/necessary
        final Object[] databaseSnapshot = getDatabaseSnapshot(session, persister, id);
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.