Tabnine Logo
EISDirectMapping.setXPath
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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: 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:
* 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: 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 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);
}
org.eclipse.persistence.eis.mappingsEISDirectMappingsetXPath

Javadoc

Set the Mapping field name attribute to the given XPath String.

Popular methods of EISDirectMapping

  • <init>
  • getDescriptor
  • getFieldName
  • setAttributeName
  • setField
  • setFieldName
    PUBLIC: Set the field name in the mapping.
  • setGetMethodName
  • setSetMethodName

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Permission (java.security)
    Legacy security code; do not use.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Notification (javax.management)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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