Tabnine Logo
MethodBasedFieldTransformation.setMethodName
Code IndexAdd Tabnine to your IDE (free)

How to use
setMethodName
method
in
org.eclipse.persistence.internal.descriptors.MethodBasedFieldTransformation

Best Java code snippets using org.eclipse.persistence.internal.descriptors.MethodBasedFieldTransformation.setMethodName (Showing top 6 results out of 315)

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

/**
 * PUBLIC:
 * Add the field and the name of the method
 * that returns the value to be placed in said field
 * when the object is written to the database.
 * The method may take zero arguments, or it may
 * take a single argument of type
 * <code>org.eclipse.persistence.sessions.Session</code>.
 */
public void addFieldTransformation(DatabaseField field, String methodName) {
  MethodBasedFieldTransformation transformation = new MethodBasedFieldTransformation();
  transformation.setField(field);
  transformation.setMethodName(methodName);
  getFieldTransformations().add(transformation);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Add the field and the name of the method
 * that returns the value to be placed in said field
 * when the object is written to the database.
 * The method may take zero arguments, or it may
 * take a single argument of type
 * <code>org.eclipse.persistence.sessions.Session</code>.
 */
public void addFieldTransformation(DatabaseField field, String methodName) {
  MethodBasedFieldTransformation transformation = new MethodBasedFieldTransformation();
  transformation.setField(field);
  transformation.setMethodName(methodName);
  getFieldTransformations().add(transformation);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Add the field and the name of the method
 * that returns the value to be placed in said field
 * when the object is written to the database.
 * The method may take zero arguments, or it may
 * take a single argument of type
 * <code>org.eclipse.persistence.sessions.Session</code>.
 */
public void addFieldTransformation(DatabaseField field, String methodName) {
  MethodBasedFieldTransformation transformation = new MethodBasedFieldTransformation();
  transformation.setField(field);
  transformation.setMethodName(methodName);
  getFieldTransformations().addElement(transformation);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * needed for backwards compatibility
 */
public void setFieldNameToMethodNameAssociations(Vector associations) {
  setFieldTransformations(org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(associations.size()));
  for (Iterator source = associations.iterator(); source.hasNext();) {
    Association ass = (Association)source.next();
    MethodBasedFieldTransformation tf = new MethodBasedFieldTransformation();
    tf.setField(new DatabaseField((String)ass.getKey()));
    tf.setMethodName((String)ass.getValue());
    getFieldTransformations().add(tf);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * needed for backwards compatibility
 */
public void setFieldNameToMethodNameAssociations(Vector associations) {
  setFieldTransformations(org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(associations.size()));
  for (Iterator source = associations.iterator(); source.hasNext();) {
    Association ass = (Association)source.next();
    MethodBasedFieldTransformation tf = new MethodBasedFieldTransformation();
    tf.setField(new DatabaseField((String)ass.getKey()));
    tf.setMethodName((String)ass.getValue());
    getFieldTransformations().add(tf);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * needed for backwards compatibility
 */
public void setFieldNameToMethodNameAssociations(Vector associations) {
  setFieldTransformations(org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(associations.size()));
  for (Iterator source = associations.iterator(); source.hasNext();) {
    Association ass = (Association)source.next();
    MethodBasedFieldTransformation tf = new MethodBasedFieldTransformation();
    tf.setField(new DatabaseField((String)ass.getKey()));
    tf.setMethodName((String)ass.getValue());
    getFieldTransformations().addElement(tf);
  }
}
org.eclipse.persistence.internal.descriptorsMethodBasedFieldTransformationsetMethodName

Popular methods of MethodBasedFieldTransformation

  • <init>
  • getField
  • getMethodName
  • setField

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Top plugins for WebStorm
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