Tabnine Logo
EISOneToManyMapping.isPrivateOwned
Code IndexAdd Tabnine to your IDE (free)

How to use
isPrivateOwned
method
in
org.eclipse.persistence.eis.mappings.EISOneToManyMapping

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISOneToManyMapping.isPrivateOwned (Showing top 18 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Return whether any process leading to object modification
 * should also affect its parts.
 * Used by write, insert, update, and delete.
 */
protected boolean shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query) {
  if (isForeignKeyRelationship()) {
    return super.shouldObjectModifyCascadeToParts(query);
  } else {
    if (this.isReadOnly()) {
      return false;
    }
    if (this.isPrivateOwned()) {
      return true;
    }
    return query.shouldCascadeAllParts();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return whether any process leading to object modification
 * should also affect its parts.
 * Used by write, insert, update, and delete.
 */
@Override
protected boolean shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query) {
  if (isForeignKeyRelationship()) {
    return super.shouldObjectModifyCascadeToParts(query);
  } else {
    if (this.isReadOnly()) {
      return false;
    }
    if (this.isPrivateOwned()) {
      return true;
    }
    return query.shouldCascadeAllParts();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return whether any process leading to object modification
 * should also affect its parts.
 * Used by write, insert, update, and delete.
 */
@Override
protected boolean shouldObjectModifyCascadeToParts(ObjectLevelModifyQuery query) {
  if (isForeignKeyRelationship()) {
    return super.shouldObjectModifyCascadeToParts(query);
  } else {
    if (this.isReadOnly()) {
      return false;
    }
    if (this.isPrivateOwned()) {
      return true;
    }
    return query.shouldCascadeAllParts();
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Compare the non-null elements and return true if they are alike.
 */
public boolean compareElements(Object element1, Object element2, AbstractSession session) {
  if (!isForeignKeyRelationship()) {
    return false;
  }
  Object primaryKey1 = getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element1, session);
  Object primaryKey2 = getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element2, session);
  if (!primaryKey1.equals(primaryKey2)) {
    return false;
  }
  if (this.isPrivateOwned()) {
    return session.compareObjects(element1, element2);
  } else {
    return true;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
@Override
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Compare the non-null elements and return true if they are alike.
 */
public boolean compareElements(Object element1, Object element2, AbstractSession session) {
  if (!isForeignKeyRelationship()) {
    return false;
  }
  Object primaryKey1 = getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element1, session);
  Object primaryKey2 = getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element2, session);
  if (!primaryKey1.equals(primaryKey2)) {
    return false;
  }
  if (this.isPrivateOwned()) {
    return session.compareObjects(element1, element2);
  } else {
    return true;
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Used to verify whether the specified object is deleted or not.
 */
@Override
public boolean verifyDelete(Object object, AbstractSession session) throws DatabaseException {
  if (this.isPrivateOwned()) {
    Object objects = this.getRealCollectionAttributeValueFromObject(object, session);
    ContainerPolicy containerPolicy = getContainerPolicy();
    for (Object iter = containerPolicy.iteratorFor(objects); containerPolicy.hasNext(iter);) {
      if (!session.verifyDelete(containerPolicy.next(iter, session))) {
        return false;
      }
    }
  }
  return true;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (!isForeignKeyRelationship) {
  if (targetQuery.isObjectLevelReadQuery() && (sourceQuery.shouldCascadeAllParts() || (sourceQuery.shouldCascadePrivateParts() && isPrivateOwned()) || (sourceQuery.shouldCascadeByMapping() && this.cascadeRefresh))) {
    targetQuery = (ObjectLevelReadQuery)targetQuery.clone();
    ((ObjectLevelReadQuery)targetQuery).setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult());
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Compare the non-null elements and return true if they are alike.
 */
public boolean compareElements(Object element1, Object element2, AbstractSession session) {
  if (!isForeignKeyRelationship()) {
    return false;
  }
  Vector primaryKey1 = this.getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element1, session);
  Vector primaryKey2 = this.getReferenceDescriptor().getObjectBuilder().extractPrimaryKeyFromObject(element2, session);
  CacheKey cacheKey1 = new CacheKey(primaryKey1);
  CacheKey cacheKey2 = new CacheKey(primaryKey2);
  if (!cacheKey1.equals(cacheKey2)) {
    return false;
  }
  if (this.isPrivateOwned()) {
    return session.compareObjects(element1, element2);
  } else {
    return true;
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (!this.isForeignKeyRelationship) {
  if (targetQuery.isObjectLevelReadQuery() && (sourceQuery.shouldCascadeAllParts() || (sourceQuery.shouldCascadePrivateParts() && isPrivateOwned()) || (sourceQuery.shouldCascadeByMapping() && this.cascadeRefresh))) {
    targetQuery = (ObjectLevelReadQuery)targetQuery.clone();
    ((ObjectLevelReadQuery)targetQuery).setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult());
origin: com.haulmont.thirdparty/eclipselink

if (!this.isForeignKeyRelationship) {
  if (targetQuery.isObjectLevelReadQuery() && (sourceQuery.shouldCascadeAllParts() || (sourceQuery.shouldCascadePrivateParts() && isPrivateOwned()) || (sourceQuery.shouldCascadeByMapping() && this.cascadeRefresh))) {
    targetQuery = (ObjectLevelReadQuery)targetQuery.clone();
    ((ObjectLevelReadQuery)targetQuery).setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult());
origin: org.eclipse.persistence/org.eclipse.persistence.core

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
origin: com.haulmont.thirdparty/eclipselink

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
origin: org.eclipse.persistence/org.eclipse.persistence.core

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
origin: com.haulmont.thirdparty/eclipselink

for (Object iter = cp.iteratorFor(objects); cp.hasNext(iter);) {
  Object object = cp.next(iter, query.getSession());
  if (this.isPrivateOwned()) {
org.eclipse.persistence.eis.mappingsEISOneToManyMappingisPrivateOwned

Popular methods of EISOneToManyMapping

  • addForeignKeyField
    PUBLIC: Define the source foreign key relationship in the one-to-many mapping. This method is used f
  • buildAddedElementFromChangeSet
    INTERNAL: Build and return a new element based on the change set.
  • buildChangeSet
    INTERNAL: Build and return a change set for the specified element.
  • buildElementFromChangeSet
    Build and return a new element based on the change set.
  • buildElementFromElement
    INTERNAL: Build and return a new element based on the specified element.
  • buildRemovedElementFromChangeSet
    INTERNAL: Build and return a new element based on the change set.
  • compareElements
    INTERNAL: Compare the non-null elements and return true if they are alike.
  • compareElementsForChange
    INTERNAL: Compare the non-null elements and return true if they are alike. Here we use object identi
  • compareObjectsAndWrite
  • compareObjectsWithoutPrivateOwned
  • deleteAll
    Delete all the reference objects.
  • deleteReferenceObjectsLeftOnDatabase
    This method will make sure that all the records privately owned by this mapping are actually removed
  • deleteAll,
  • deleteReferenceObjectsLeftOnDatabase,
  • extractKeyRowFromReferenceObject,
  • getAttributeName,
  • getAttributeValueFromObject,
  • getContainerPolicy,
  • getDeleteAllQuery,
  • getDescriptor,
  • getForeignKeyGroupingElement,
  • getForeignKeyRows

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now