Tabnine Logo
EISCompositeObjectMapping.isReadOnly
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISCompositeObjectMapping.isReadOnly (Showing top 3 results out of 315)

origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Build the value for the database field and put it in the
 * specified database row.
 */
@Override
public void writeFromObjectIntoRow(Object object, AbstractRecord record, AbstractSession session, WriteType writeType) throws DescriptorException {
  if (this.isReadOnly()) {
    return;
  }
  Object attributeValue = this.getAttributeValueFromObject(object);
  // handle "." xpath - condition: xml data format AND xml field is "self"
  if ((((EISDescriptor)getDescriptor()).isXMLFormat()) && ((XMLField)getField()).isSelfField()) {
    XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
    objectBuilder.buildIntoNestedRow(record, attributeValue, session);
  } else {
    Object fieldValue = null;
    if (attributeValue != null) {
      fieldValue = buildCompositeRow(attributeValue, session, record, writeType);
    }
    record.put(this.getField(), fieldValue);
  }
}
 
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  /**
   * INTERNAL:
   * Build the value for the database field and put it in the
   * specified database row.
   */
  public void writeFromObjectIntoRow(Object object, AbstractRecord record, AbstractSession session) throws DescriptorException {
    if (this.isReadOnly()) {
      return;
    }

    Object attributeValue = this.getAttributeValueFromObject(object);

    // handle "." xpath - condition: xml data format AND xml field is "self"
    if ((((EISDescriptor)getDescriptor()).getDataFormat() == EISDescriptor.XML) && ((XMLField)getField()).isSelfField()) {
      XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
      objectBuilder.buildIntoNestedRow(record, attributeValue, session);
    } else {
      Object fieldValue = null;

      if (attributeValue != null) {
        fieldValue = buildCompositeRow(attributeValue, session, record);
      }

      record.put(this.getField(), fieldValue);
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Build the value for the database field and put it in the
 * specified database row.
 */
@Override
public void writeFromObjectIntoRow(Object object, AbstractRecord record, AbstractSession session, WriteType writeType) throws DescriptorException {
  if (this.isReadOnly()) {
    return;
  }
  Object attributeValue = this.getAttributeValueFromObject(object);
  // handle "." xpath - condition: xml data format AND xml field is "self"
  if ((((EISDescriptor)getDescriptor()).isXMLFormat()) && ((XMLField)getField()).isSelfField()) {
    XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
    objectBuilder.buildIntoNestedRow(record, attributeValue, session);
  } else {
    Object fieldValue = null;
    if (attributeValue != null) {
      fieldValue = buildCompositeRow(attributeValue, session, record, writeType);
    }
    record.put(this.getField(), fieldValue);
  }
}
org.eclipse.persistence.eis.mappingsEISCompositeObjectMappingisReadOnly

Popular methods of EISCompositeObjectMapping

  • buildCompositeRow
  • getAttributeValueFromObject
  • getDescriptor
  • getField
  • getObjectBuilder
  • getReferenceDescriptor
  • setField
  • <init>

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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