congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EISDirectMapping.setAttributeName
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.persistence.eis.mappings.EISDirectMapping.setAttributeName (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.mappingsEISDirectMappingsetAttributeName

Popular methods of EISDirectMapping

  • <init>
  • getDescriptor
  • getFieldName
  • 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

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Permission (java.security)
    Legacy security code; do not use.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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