congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EISOneToManyMapping.isReadOnly
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISOneToManyMapping.isReadOnly (Showing top 17 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: 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/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Write fields needed for insert into the template for with null values.
 */
@Override
public void writeInsertFieldsIntoRow(AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeInsertFieldsIntoRow(row, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Write fields needed for insert into the template for with null values.
 */
public void writeInsertFieldsIntoRow(AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeInsertFieldsIntoRow(row, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
public void writeFromObjectIntoRowForShallowInsert(Object object, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsert(object, row, session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
@Override
public void writeFromObjectIntoRowForShallowInsert(Object object, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsert(object, row, session);
  }
}
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

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
@Override
public void writeFromObjectIntoRowForShallowInsert(Object object, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsert(object, row, session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
@Override
public void writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsertWithChangeRecord(changeRecord, row, session);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Write fields needed for insert into the template for with null values.
 */
@Override
public void writeInsertFieldsIntoRow(AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeInsertFieldsIntoRow(row, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
public void writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsertWithChangeRecord(changeRecord, row, session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This row is built for shallow insert which happens in case of bidirectional inserts.
 * The foreign keys must be set to null to avoid constraints.
 */
@Override
public void writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session) {
  if (isForeignKeyRelationship() && !isReadOnly()) {
    if (getForeignKeyGroupingElement() != null) {
      row.put(getForeignKeyGroupingElement(), null);
    } else if (this.getSourceForeignKeyFields().size() > 0) {
      row.put(getSourceForeignKeyFields().get(0), null);
    }
  } else {
    super.writeFromObjectIntoRowForShallowInsertWithChangeRecord(changeRecord, row, session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * This row is built for update after shallow insert which happens in case of bidirectional inserts.
 * It contains the foreign keys with non null values that were set to null for shallow insert.
 * If mapping overrides writeFromObjectIntoRowForShallowInsert method it must override this one, too.
 */
public void writeFromObjectIntoRowForUpdateAfterShallowInsert(Object object, AbstractRecord row, AbstractSession session, DatabaseTable table) {
  if (isReadOnly() || !isForeignKeyRelationship()) {
    return;
  }
  if (getForeignKeyGroupingElement() != null) {
    if (!getForeignKeyGroupingElement().getTable().equals(table)) {
      return;
    }
  } else if (this.getSourceForeignKeyFields().size() > 0) {
    if (!getSourceForeignKeyFields().get(0).getTable().equals(table)) {
      return;
    }
  }
  writeFromObjectIntoRow(object, row, session, WriteType.UPDATE);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * This row is built for update after shallow insert which happens in case of bidirectional inserts.
 * It contains the foreign keys with non null values that were set to null for shallow insert.
 * If mapping overrides writeFromObjectIntoRowForShallowInsert method it must override this one, too.
 */
public void writeFromObjectIntoRowForUpdateAfterShallowInsert(Object object, AbstractRecord row, AbstractSession session, DatabaseTable table) {
  if (isReadOnly() || !isForeignKeyRelationship()) {
    return;
  }
  if (getForeignKeyGroupingElement() != null) {
    if (!getForeignKeyGroupingElement().getTable().equals(table)) {
      return;
    }
  } else if (this.getSourceForeignKeyFields().size() > 0) {
    if (!getSourceForeignKeyFields().get(0).getTable().equals(table)) {
      return;
    }
  }
  writeFromObjectIntoRow(object, row, session, WriteType.UPDATE);
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (this.isReadOnly()) {
  return;
origin: com.haulmont.thirdparty/eclipselink

if (this.isReadOnly()) {
  return;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (this.isReadOnly()) {
  return;
org.eclipse.persistence.eis.mappingsEISOneToManyMappingisReadOnly

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

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFrame (javax.swing)
  • Best plugins for Eclipse
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