Package com.avaje.ebeaninternal.api

Examples of com.avaje.ebeaninternal.api.SpiTransaction.depth()


   * </p>
   */
  private void deleteAssocMany(PersistRequestBean<?> request) {

    SpiTransaction t = request.getTransaction();
    t.depth(-1);

    BeanDescriptor<?> desc = request.getBeanDescriptor();
    EntityBean parentBean = request.getEntityBean();

    BeanPropertyAssocOne<?>[] expOnes = desc.propertiesOneExportedDelete();
View Full Code Here


        deleteManyDetails(t, desc, parentBean, manys[i], null);
      }
    }

    // restore the depth
    t.depth(+1);
  }

  /**
   * Delete the 'many' detail beans for a given parent bean.
   * <p>
 
View Full Code Here

          } else if (prop.isSaveRecurseSkippable(detailBean)) {
            // we can skip saving this bean

          } else {
            SpiTransaction t = request.getTransaction();
            t.depth(-1);
            saveRecurse(detailBean, t, null, insertMode);
            t.depth(+1);
          }
        }
      }
View Full Code Here

          } else {
            SpiTransaction t = request.getTransaction();
            t.depth(-1);
            saveRecurse(detailBean, t, null, insertMode);
            t.depth(+1);
          }
        }
      }
    }
  }
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.