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

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

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

Javadoc

PUBLIC: Set the field name in the mapping.

Popular methods of EISDirectMapping

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

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • From CI to AI: The AI layer in your organization
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