congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EISDirectMapping
Code IndexAdd Tabnine to your IDE (free)

How to use
EISDirectMapping
in
org.eclipse.persistence.eis.mappings

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISDirectMapping (Showing top 20 results out of 315)

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

/**
* PUBLIC:
* Add a direct to node mapping to the receiver. The new mapping specifies that
* a variable accessed by the get and set methods of the class of objects which
* the receiver describes maps in  the default manner for its type to the indicated
* database field.
*/
public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  mapping.setSetMethodName(setMethodName);
  mapping.setGetMethodName(getMethodName);
  if (getDataFormat() == EISDescriptor.XML) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: com.haulmont.thirdparty/eclipselink

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

/**
  * PUBLIC:
  * Add a direct mapping to the receiver. The new mapping specifies that
  * an instance variable of the class of objects which the receiver describes maps in
  * the default manner for its type to the indicated database field.
  *
  * @param String instanceVariableName is the name of an instance variable of the
  * class which the receiver describes.
  * @param String fieldName is the name of the xml element or attribute which corresponds
  * with the designated instance variable.
  * @return The newly created DatabaseMapping is returned.
  */
public DatabaseMapping addDirectMapping(String attributeName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  if (getDataFormat() == EISDescriptor.XML) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Set the field name in the mapping.
 */
public void setFieldName(String fieldName) {
  setField(new DatabaseField(fieldName));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) {
  if (((EISDescriptor)this.getDescriptor()).isXMLFormat()) {
    row.put(field, fieldValue);
  } else {
    row.add(field, fieldValue);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return a new direct/basic mapping for this type of descriptor.
 */
@Override
public AbstractDirectMapping newDirectMapping() {
  return new EISDirectMapping();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC: Add a direct mapping to the receiver. The new mapping specifies
 * that an instance variable of the class of objects which the receiver
 * describes maps in the default manner for its type to the indicated
 * database field.
 *
 * @param attributeName
 *            instanceVariableName is the name of an instance variable of
 *            the class which the receiver describes.
 * @param fieldName
 *            fieldName is the name of the xml element or attribute which
 *            corresponds with the designated instance variable.
 * @return The newly created DatabaseMapping is returned.
 */
@Override
public DatabaseMapping addDirectMapping(String attributeName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  if (isXMLFormat()) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Set the field name in the mapping.
 */
public void setFieldName(String fieldName) {
  setField(new DatabaseField(fieldName));
}
origin: com.haulmont.thirdparty/eclipselink

protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) {
  if (((EISDescriptor)this.getDescriptor()).isXMLFormat()) {
    row.put(field, fieldValue);
  } else {
    row.add(field, fieldValue);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Return a new direct/basic mapping for this type of descriptor.
 */
@Override
public AbstractDirectMapping newDirectMapping() {
  return new EISDirectMapping();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Add a direct to node mapping to the receiver. The new mapping specifies that
 * a variable accessed by the get and set methods of the class of objects which
 * the receiver describes maps in  the default manner for its type to the indicated
 * database field.
 */
@Override
public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  mapping.setSetMethodName(setMethodName);
  mapping.setGetMethodName(getMethodName);
  if (isXMLFormat()) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC: Add a direct mapping to the receiver. The new mapping specifies
 * that an instance variable of the class of objects which the receiver
 * describes maps in the default manner for its type to the indicated
 * database field.
 *
 * @param attributeName
 *            instanceVariableName is the name of an instance variable of
 *            the class which the receiver describes.
 * @param fieldName
 *            fieldName is the name of the xml element or attribute which
 *            corresponds with the designated instance variable.
 * @return The newly created DatabaseMapping is returned.
 */
@Override
public DatabaseMapping addDirectMapping(String attributeName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  if (isXMLFormat()) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Set the field name in the mapping.
 */
public void setFieldName(String fieldName) {
  setField(new DatabaseField(fieldName));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) {
  if (((EISDescriptor)this.getDescriptor()).getDataFormat() == EISDescriptor.XML) {
    row.put(field, fieldValue);
  } else {
    row.add(field, fieldValue);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Get the XPath String associated with this Mapping
 * @return String the XPath String associated with this Mapping
 */
public String getXPath() {
  return getFieldName();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Add a direct to node mapping to the receiver. The new mapping specifies that
 * a variable accessed by the get and set methods of the class of objects which
 * the receiver describes maps in  the default manner for its type to the indicated
 * database field.
 */
@Override
public DatabaseMapping addDirectMapping(String attributeName, String getMethodName, String setMethodName, String fieldName) {
  EISDirectMapping mapping = new EISDirectMapping();
  mapping.setAttributeName(attributeName);
  mapping.setSetMethodName(setMethodName);
  mapping.setGetMethodName(getMethodName);
  if (isXMLFormat()) {
    mapping.setXPath(fieldName);
  } else {
    mapping.setFieldName(fieldName);
  }
  return addMapping(mapping);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Set the Mapping field name attribute to the given XPath String.
 * @param xpathString String
 */
public void setXPath(String xpathString) {
  setField(new XMLField(xpathString));
}
origin: com.haulmont.thirdparty/eclipselink

  /**
   * INTERNAL:
   * We override this method in order to set the session on the record if the data
   * format is XML.
   * 
   * Get a value from the object and set that in the respective field of the row.
   */
  @Override
  public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) {
    if (((EISDescriptor) this.getDescriptor()).isXMLFormat()) {
      ((XMLRecord) row).setSession(session);
    }
    super.writeFromObjectIntoRow(object, row, session, writeType);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

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

/**
 * Set the Mapping field name attribute to the given XPath String.
 * @param xpathString String
 */
public void setXPath(String xpathString) {
  setField(new XMLField(xpathString));
}
org.eclipse.persistence.eis.mappingsEISDirectMapping

Javadoc

EIS Direct Mappings map a simple Java attribute to and from an EIS Record according to its descriptor's record type.

Record Type Description
Indexed Ordered collection of record elements. The indexed record EIS format enables Java class attribute values to be retreived by position or index.
Mapped Key-value map based representation of record elements. The mapped record EIS format enables Java class attribute values to be retreived by an object key.
XML Record/Map representation of an XML DOM element.

Most used methods

  • <init>
  • getDescriptor
  • getFieldName
  • setAttributeName
  • setField
  • setFieldName
    PUBLIC: Set the field name in the mapping.
  • setGetMethodName
  • setSetMethodName
  • setXPath
    Set the Mapping field name attribute to the given XPath String.

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 15 Vim Plugins
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