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

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Return the name of the field mapped by the mapping.
 */
public String getFieldName() {
  return this.getField().getName();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Get the XPath String
 *
 * @return String the XPath String associated with this Mapping
 *
 */
public String getXPath() {
  return getField().getName();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Return the name of the field mapped by the mapping.
 */
public String getFieldName() {
  return this.getField().getName();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Return the name of the field mapped by the mapping.
 */
public String getFieldName() {
  return this.getField().getName();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Get the XPath String
 *
 * @return String the XPath String associated with this Mapping
 *
 */
public String getXPath() {
  return getField().getName();
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Get the XPath String
 *
 * @return String the XPath String associated with this Mapping
 *
 */
public String getXPath() {
  return getField().getName();
}
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);
  }
}
origin: com.haulmont.thirdparty/eclipselink

@Override
protected Object buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord record, WriteType writeType) {
  if (((EISDescriptor)getDescriptor()).isXMLFormat()) {
    XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
    return objectBuilder.buildRow(attributeValue, session, getField(), (XMLRecord)record);
  } else {
    AbstractRecord nestedRow = this.getObjectBuilder(attributeValue, session).buildRow(attributeValue, session, writeType);
    return this.getReferenceDescriptor(attributeValue, session).buildFieldValueFromNestedRow(nestedRow, session);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
protected Object buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord record, WriteType writeType) {
  if (((EISDescriptor)getDescriptor()).isXMLFormat()) {
    XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
    return objectBuilder.buildRow(attributeValue, session, getField(), (XMLRecord)record);
  } else {
    AbstractRecord nestedRow = this.getObjectBuilder(attributeValue, session).buildRow(attributeValue, session, writeType);
    return this.getReferenceDescriptor(attributeValue, session).buildFieldValueFromNestedRow(nestedRow, session);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected Object buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord record) {
  if (((EISDescriptor)getDescriptor()).getDataFormat() == EISDescriptor.XML) {
    XMLObjectBuilder objectBuilder = (XMLObjectBuilder)getReferenceDescriptor(attributeValue, session).getObjectBuilder();
    return objectBuilder.buildRow(attributeValue, session, getField(), (XMLRecord)record);
  } else {
    AbstractRecord nestedRow = this.getObjectBuilder(attributeValue, session).buildRow(attributeValue, session);
    return this.getReferenceDescriptor(attributeValue, session).buildFieldValueFromNestedRow(nestedRow, session);
  }
}
org.eclipse.persistence.eis.mappingsEISCompositeObjectMappinggetField

Javadoc

PUBLIC: Return the name of the field mapped by the mapping.

Popular methods of EISCompositeObjectMapping

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm 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