Examples of discard()


Examples of org.apache.qpid.server.queue.QueueEntry.discard()

                    branch.addPostTransactionAcion(new ServerTransaction.Action()
                    {

                        public void postCommit()
                        {
                            entry.discard();
                        }

                        public void onRollback()
                        {
                            entry.release();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.discard()

    catch (Exception e)
    {
      cw.rollback();
      throw new SQLException(e);
    }
    cw.discard();
    return res;
  }

  /**
   * Get the number of database objects of class clazz that satisfy the
View Full Code Here

Examples of org.cytoscape.ClusterViz.internal.ResultPanel.discard()

      CyNetwork network = e.getNetwork();
      Set resultIds = this.mcodeUtil.getNetworkResults(network.getSUID().longValue());

      for (Iterator localIterator = resultIds.iterator(); localIterator.hasNext(); ) { int id = ((Integer)localIterator.next()).intValue();
       ResultPanel panel = this.mcodeUtil.getResultPanel(id);
        if (panel != null) panel.discard(false);
      }
    }
  }
}
View Full Code Here

Examples of org.jboss.as.ejb3.component.entity.EntityBeanComponentInstance.discard()

                throw ex;
            }
            if (ex instanceof RuntimeException || ex instanceof RemoteException) {
                if (ROOT_LOGGER.isTraceEnabled())
                    ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of exception", ex);
                instance.discard();
            }
            throw ex;
        } catch (final Error e) {
            if (ROOT_LOGGER.isTraceEnabled())
                ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of error", e);
View Full Code Here

Examples of org.jboss.as.ejb3.component.entity.EntityBeanComponentInstance.discard()

            }
            throw ex;
        } catch (final Error e) {
            if (ROOT_LOGGER.isTraceEnabled())
                ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of error", e);
            instance.discard();
            throw e;
        } catch (final Throwable t) {
            if (ROOT_LOGGER.isTraceEnabled())
                ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of Throwable", t);
            instance.discard();
View Full Code Here

Examples of org.jboss.as.ejb3.component.entity.EntityBeanComponentInstance.discard()

            instance.discard();
            throw e;
        } catch (final Throwable t) {
            if (ROOT_LOGGER.isTraceEnabled())
                ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of Throwable", t);
            instance.discard();
            throw new RuntimeException(t);
        } finally {
            // the StatefulSessionSynchronizationInterceptor will take care of releasing
            context.putPrivateData(ComponentInstance.class, null);
        }
View Full Code Here

Examples of org.jboss.ejb.InstancePool.discard()

         }
         catch (RemoteException e)
         {
            // Discard instance
            cache.remove(methodID);
            pool.discard(ctx);
            validContext = false;

            throw e;
         }
         catch (RuntimeException e)
View Full Code Here

Examples of org.jboss.ejb.InstancePool.discard()

         }
         catch (RuntimeException e)
         {
            // Discard instance
            cache.remove(methodID);
            pool.discard(ctx);
            validContext = false;

            throw e;
         }
         catch (Error e)
View Full Code Here

Examples of org.jboss.ejb.InstancePool.discard()

         }
         catch (Error e)
         {
            // Discard instance
            cache.remove(methodID);
            pool.discard(ctx);
            validContext = false;

            throw e;
         }
         finally
View Full Code Here

Examples of org.jboss.ejb3.pool.Pool.discard()

      finally
      {
         container.popContext();
         ejb.setTargetObject(null);
         ejb.setBeanContext(null);
         if (discard) pool.discard(ctx);
         else pool.release(ctx);
      }
   }
}
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.