Examples of removeEntry()


Examples of org.hibernate.engine.spi.PersistenceContext.removeEntry()

    //postDelete:
    // After actually deleting a row, record the fact that the instance no longer
    // exists on the database (needed for identity-column key generation), and
    // remove it from the session cache
    final PersistenceContext persistenceContext = session.getPersistenceContext();
    EntityEntry entry = persistenceContext.removeEntry( instance );
    if ( entry == null ) {
      throw new AssertionFailure( "possible nonthreadsafe access to session" );
    }
    entry.postDelete();
View Full Code Here

Examples of org.hibernate.engine.spi.PersistenceContext.removeEntry()

      persistenceContext.removeProxy( key );

      if ( !li.isUninitialized() ) {
        final Object entity = persistenceContext.removeEntity( key );
        if ( entity != null ) {
          EntityEntry e = persistenceContext.removeEntry( entity );
          doEvict( entity, key, e.getPersister(), event.getSession() );
        }
      }
      li.unsetSession();
    }
View Full Code Here

Examples of org.hibernate.engine.spi.PersistenceContext.removeEntry()

        }
      }
      li.unsetSession();
    }
    else {
      EntityEntry e = persistenceContext.removeEntry( object );
      if ( e != null ) {
        persistenceContext.removeEntity( e.getEntityKey() );
        doEvict( object, e.getEntityKey(), e.getPersister(), source );
      }
      else {
View Full Code Here

Examples of org.infinispan.loaders.bucket.Bucket.removeEntry()

      assert !b.getEntries().isEmpty();

      assert new File(fcs.root, b.getBucketIdAsString()).exists();

      b.removeEntry("test");
      assert b.getEntries().isEmpty();

      fcs.updateBucket(b);
      checkBucketExists(b);
   }
View Full Code Here

Examples of org.infinispan.persistence.support.Bucket.removeEntry()

   protected boolean removeKeyFromBucket(Object key, Integer bucketId) {
      Bucket bucket = loadBucket(bucketId);
      if (bucket == null) {
         return false;
      } else {
         boolean success = bucket.removeEntry(key);
         if (success) {
            updateBucket(bucket);
         }
         return success;
      }
View Full Code Here

Examples of org.infinispan.persistence.support.Bucket.removeEntry()

   protected boolean removeKeyFromBucket(Object key, Integer bucketId) {
      Bucket bucket = loadBucket(bucketId);
      if (bucket == null) {
         return false;
      } else {
         boolean success = bucket.removeEntry(key);
         if (success) {
            updateBucket(bucket);
         }
         return success;
      }
View Full Code Here

Examples of org.jboss.security.acl.ACL.removeEntry()

      acl = this.strategy.getACL(this.resources[0]);
      assertEquals("Invalid number of entries", entriesNumber, acl.getEntries().size());

      // now remove one of the entries.
      ACLEntry entry = acl.getEntries().iterator().next();
      acl.removeEntry(entry);
      assertTrue("Failed to update the ACL", this.strategy.updateACL(acl));

      // retrieve the ACL again and check it has one less entry.
      acl = this.strategy.getACL(this.resources[0]);
      assertEquals("Invalid number of entries", entriesNumber - 1, acl.getEntries().size());
View Full Code Here

Examples of org.jboss.security.acl.ACLImpl.removeEntry()

         acl1.addEntry(entry4);
         acl1.addEntry(entry5);

         acl2 = this.entityManager.merge(this.persistedACLs.get(1));
         acl2.addEntry(entry6);
         acl2.removeEntry(this.persistedEntries.get(0));
         transaction.commit();
      }
      catch (RuntimeException re)
      {
         re.printStackTrace();
View Full Code Here

Examples of org.jdesktop.wonderland.runner.DeploymentPlan.removeEntry()

        // filter by location
        if (location != null) {
            for (DeploymentEntry de : dp.getEntries().toArray(new DeploymentEntry[0])) {
                if (!location.equals(de.getLocation())) {
                    dp.removeEntry(de);
                }
            }
        }

        ResponseBuilder rb = Response.ok(dp);
View Full Code Here

Examples of org.jitterbit.integration.data.structure.database.DbFields.removeEntry()

        DbFields fields = new DbFields();
        Collection<DatabaseColumn> keys = ui.getSelectedColumns();
        fields.addUpdateKeys(keys);
        s.setDbFields(fields);
        if (keys.isEmpty()) {
            fields.removeEntry(DbFields.SOURCE_UPDATE_VALUES);
        }
    }

    @Override
    public void setStructureToEdit(StructureToEdit toEdit) {
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.