Examples of removeProxy()


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

      if ( id == null ) {
        throw new IllegalArgumentException("null identifier");
      }

      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 );
View Full Code Here

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

      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.removeProxy()

      if ( id == null ) {
        throw new IllegalArgumentException("null identifier");
      }

      final EntityKey key = source.generateEntityKey( id, persister );
      persistenceContext.removeProxy( key );

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

Examples of org.jboss.modcluster.ModClusterServiceMBean.removeProxy()

                    service.addProxy(host, port);

                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            service.removeProxy(host, port);
                        }
                    });
                }
            }, OperationContext.Stage.RUNTIME);
        }
View Full Code Here

Examples of org.jboss.modcluster.ModClusterServiceMBean.removeProxy()

                        InetAddress.getByName(host);
                    } catch (UnknownHostException e) {
                        throw new OperationFailedException(ModClusterLogger.ROOT_LOGGER.couldNotResolveProxyIpAddress(), e);
                    }

                    service.removeProxy(host, port);

                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            // TODO What if mod_cluster was never aware of this proxy?
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.