Examples of deleteObjectInternal()


Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

          // Element is waiting to be deleted so flush it (it has the FK)
          ObjectProvider elementSM = ec.findObjectProvider(element);
          elementSM.flush();
        } else {
          if (deleteElements) {
            ec.deleteObjectInternal(element);
          } else {
            // TODO Null this out (in parent)
          }
        }
      }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

    if (ec.getApiAdapter().isPersistable(elementToRemove) && ec.getApiAdapter().isDeleted(elementToRemove)) {
      // Element is waiting to be deleted so flush it (it has the FK)
      elementOP.flush();
    } else {
      if (deleteElements) {
        ec.deleteObjectInternal(elementToRemove);
      } else {
        // TODO Null it out
      }
    }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

      if (relatedObjectsToDelete != null && !relatedObjectsToDelete.isEmpty()) {
        // Delete any related objects that need deleting after the delete of this object
        Iterator iter = relatedObjectsToDelete.iterator();
        while (iter.hasNext()) {
          Object relatedObject = iter.next();
          ec.deleteObjectInternal(relatedObject);
        }
      }
      if (ec.getStatistics() != null) {
        ec.getStatistics().incrementDeleteCount();
      }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

    if (relatedObjectsToDelete != null && !relatedObjectsToDelete.isEmpty()) {
      // Delete any related objects that need deleting after the delete of this object
      Iterator iter = relatedObjectsToDelete.iterator();
      while (iter.hasNext()) {
        Object relatedObject = iter.next();
        ec.deleteObjectInternal(relatedObject);
      }
    }
    if (ec.getStatistics() != null) {
      ec.getStatistics().incrementDeleteCount();
    }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

          // Element is waiting to be deleted so flush it (it has the FK)
          ObjectProvider objSM = ec.findObjectProvider(element);
          objSM.flush();
        } else {
          if (deleteElements) {
            ec.deleteObjectInternal(element);
          }
        }
      }
    }
  }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

          }
        } else {
          updateElementFk(ownerOP, element, null, -1);
          if (deleteElementsOnRemoveOrClear()) {
            // TODO If present elsewhere in List then don't delete the element from persistence
            ec.deleteObjectInternal(element);
          }
        }
      }
      else {
        // Delete the element
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

          }
        }
      }
      else {
        // Delete the element
        ec.deleteObjectInternal(element);
      }
    }

    return true;
  }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

          }
          EntityUtils.putEntityIntoDatastore(ec, elementEntity);
        }
      } else {
        // Delete the element
        ec.deleteObjectInternal(element);
      }
    } finally {
      removing.set(false);
    }
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

                    sm.replaceFieldMakeDirty(fieldNumber, null);
                    storeMgr.getPersistenceHandler().updateObject(sm, new int[]{fieldNumber});
                    if (!relatedObjectDeleted)
                    {
                        // Mark the other object for deletion since not yet tagged
                        ec.deleteObjectInternal(pc);
                    }
                }
                else
                {
                    // Can't just delete the other object since that would cause a FK constraint violation
View Full Code Here

Examples of org.datanucleus.ExecutionContext.deleteObjectInternal()

                    otherSM.replaceFieldMakeDirty(relatedMmds[0].getAbsoluteFieldNumber(), null);
                    storeMgr.getPersistenceHandler().updateObject(
                        otherSM, new int[]{relatedMmds[0].getAbsoluteFieldNumber()});
                }
                // Mark the other object for deletion
                ec.deleteObjectInternal(pc);
            }
            else if (!hasFK)
            {
                if (isNullable())
                {
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.