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

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

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISCompositeObjectMapping.buildCompositeRow (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.mappingsEISCompositeObjectMappingbuildCompositeRow

Popular methods of EISCompositeObjectMapping

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

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • String (java.lang)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
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