Examples of removeEntity()


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

    if ( entry == null ) {
      throw new AssertionFailure( "possible nonthreadsafe access to session" );
    }
    entry.postDelete();

    persistenceContext.removeEntity( entry.getEntityKey() );
    persistenceContext.removeProxy( entry.getEntityKey() );
   
    if ( persister.hasCache() ) {
      persister.getCacheAccessStrategy().remove( ck );
    }
View Full Code Here

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

      final EntityPersister persister = source.getFactory().getEntityPersister( li.getEntityName() );
      final EntityKey key = source.generateEntityKey( id, persister );
      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() );
        }
      }
View Full Code Here

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

      li.unsetSession();
    }
    else {
      EntityEntry e = persistenceContext.removeEntry( object );
      if ( e != null ) {
        persistenceContext.removeEntity( e.getEntityKey() );
        doEvict( object, e.getEntityKey(), e.getPersister(), source );
      }
      else {
        // see if the passed object is even an entity, and if not throw an exception
        //     this is different than legacy Hibernate behavior, but what JPA 2.1 is calling for
View Full Code Here

Examples of org.jdesktop.mtgame.Entity.removeEntity()

                    try {
                        Entity child = getEntity();
                        Entity parent = child.getParent();
                        if (parent!=null)
                            parent.removeEntity(child);
                        else
                            ClientContextJME.getWorldManager().removeEntity(child);
                        cleanupSceneGraph(child);
                    } catch(Exception e) {
                        System.err.println("NPE in "+this);
View Full Code Here

Examples of org.jdesktop.mtgame.Entity.removeEntity()

    public void detachFromViewEntity () {
        if (!attached) return;

        Entity viewEntity = view.getEntity();
        if (viewEntity == null) return;
        viewEntity.removeEntity(frameEntity);
        RenderComponent rcFrame = (RenderComponent) frameEntity.getComponent(RenderComponent.class);
        if (rcFrame != null) {
            rcFrame.setAttachPoint(null);
        }
        if (header != null) {
View Full Code Here

Examples of org.jdesktop.mtgame.WorldManager.removeEntity()

        }

        // If we want to make the affordance invisible and it already is
        // visible, then make it invisible
        if (visible == false && isVisible == true) {
            wm.removeEntity(this);
            isVisible = false;
            return;
        }
    }
View Full Code Here

Examples of org.jdesktop.mtgame.WorldManager.removeEntity()

        t.start();

        // Remove entities, once we create the cells on the server we
        // will be sent the client cells
        for (ImportedModel model : imports) {
            wm.removeEntity(model.getEntity());
        }

        tableModel.setRowCount(0);
        imports.clear();
    }
View Full Code Here

Examples of org.jdesktop.mtgame.WorldManager.removeEntity()

}//GEN-LAST:event_loadImportGroupMIActionPerformed

private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
    WorldManager wm = ClientContextJME.getWorldManager();
    for (ImportedModel model : imports) {
        wm.removeEntity(model.getEntity());
    }
    imports.clear();
    tableModel.setRowCount(0);
    importTable.repaint();
    setVisible(false);
View Full Code Here

Examples of org.jdesktop.mtgame.WorldManager.removeEntity()

        }

        // If we want to make the affordance invisible and it already is
        // visible, then make it invisible
        if (visible == false && isVisible == true) {
            wm.removeEntity(this);
            isVisible = false;
            return;
        }
    }
View Full Code Here

Examples of rakama.worldtools.canvas.WorldCanvas.removeEntity()

       
        // remove existing entities from target region
        List<Entity> removeEntities = destCanvas.getEntities(xDest, yDest, zDest,
                xDest+width-1, yDest+height-1, zDest+length-1);
        for(Entity e : new ArrayList<Entity>(removeEntities))
            destCanvas.removeEntity(e);

        // remove existing tile entities from target region
        List<TileEntity> removeTiles = destCanvas.getTileEntities(xDest, yDest, zDest,
                xDest+width-1, yDest+height-1, zDest+length-1);
        for(TileEntity e : new ArrayList<TileEntity>(removeTiles))
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.