Package javax.ejb

Examples of javax.ejb.TransactionManagementType


/*     */   }
/*     */
/*     */   public void setRollbackOnly()
/*     */     throws IllegalStateException
/*     */   {
/* 329 */     TransactionManagementType type = TxUtil.getTransactionManagementType((Advisor)getContainer());
/* 330 */     if (type != TransactionManagementType.CONTAINER) throw new IllegalStateException("Container " + getContainer().getEjbName() + ": it is illegal to call setRollbackOnly from BMT: " + type);
/*     */
/*     */     try
/*     */     {
/* 334 */       TransactionManager tm = TxUtil.getTransactionManager();
View Full Code Here


/*     */   }
/*     */
/*     */   public boolean getRollbackOnly()
/*     */     throws IllegalStateException
/*     */   {
/* 352 */     TransactionManagementType type = TxUtil.getTransactionManagementType((Advisor)getContainer());
/* 353 */     if (type != TransactionManagementType.CONTAINER) {
/* 354 */       throw new IllegalStateException("Container " + getContainer().getEjbName() + ": it is illegal to call getRollbackOnly from BMT: " + type);
/*     */     }
/*     */     try
/*     */     {
View Full Code Here

/*     */   }
/*     */
/*     */   public boolean isDeliveryTransacted(Method method)
/*     */     throws NoSuchMethodException
/*     */   {
/* 168 */     TransactionManagementType mtype = TxUtil.getTransactionManagementType(this.container);
/* 169 */     if (mtype == TransactionManagementType.BEAN) return false;
/*     */
/* 172 */     TransactionAttribute attr = (TransactionAttribute)this.container.resolveAnnotation(method, TransactionAttribute.class);
/* 173 */     if (attr == null)
/*     */     {
View Full Code Here

   private void addTransactionAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName)
      throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException
   {
      if (enterpriseBean != null)
      {
         TransactionManagementType transactionType = enterpriseBean.getTransactionType();
         if (transactionType != null)
         {
            TransactionManagementImpl annotation = new TransactionManagementImpl();
            annotation.setValue(transactionType);
            addClassAnnotation(container, TransactionManagement.class, annotation);
View Full Code Here

   private void addTransactionAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName)
      throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException
   {
      if (enterpriseBean != null)
      {
         TransactionManagementType transactionType = enterpriseBean.getTransactionType();
         if (transactionType != null)
         {
            TransactionManagementImpl annotation = new TransactionManagementImpl();
            annotation.setValue(transactionType);
            addClassAnnotation(container, TransactionManagement.class, annotation);
View Full Code Here

                /*
                 * @TransactionManagement
                 */
                if (bean.getTransactionType() == null) {
                    TransactionManagement tx = getInheritableAnnotation(clazz, TransactionManagement.class);
                    TransactionManagementType transactionType = TransactionManagementType.CONTAINER;
                    if (tx != null) {
                        transactionType = tx.value();
                    }
                    switch (transactionType) {
                        case BEAN:
View Full Code Here

   private void addTransactionAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName)
      throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException
   {
      if (enterpriseBean != null)
      {
         TransactionManagementType transactionType = enterpriseBean.getTransactionType();
         if (transactionType != null)
         {
            TransactionManagementImpl annotation = new TransactionManagementImpl();
            annotation.setValue(transactionType);
            addClassAnnotation(container, TransactionManagement.class, annotation);
View Full Code Here

                /*
                 * @TransactionManagement
                 */
                if (bean.getTransactionType() == null) {
                    TransactionManagement tx = getInheritableAnnotation(clazz, TransactionManagement.class);
                    TransactionManagementType transactionType = TransactionManagementType.CONTAINER;
                    if (tx != null) {
                        transactionType = tx.value();
                    }
                    switch (transactionType) {
                        case BEAN:
View Full Code Here

    AnnotatedType<?> declType = method.getDeclaringType();
   
    TransactionManagement xaManagement
      = method.getAnnotation(TransactionManagement.class);
   
    TransactionManagementType xaManagementType = _classXaManagement;
   
    if (xaManagement != null)
      xaManagementType = xaManagement.value();

    TransactionAttribute xa = method.getAnnotation(TransactionAttribute.class);
View Full Code Here

TOP

Related Classes of javax.ejb.TransactionManagementType

Copyright © 2018 www.massapicom. 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.