Codota Logo
MethodBasedFieldTransformation.setMethodName
Code IndexAdd Codota 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)

  • Common ways to obtain MethodBasedFieldTransformation
private void myMethod () {
MethodBasedFieldTransformation m =
  • Codota Iconnew MethodBasedFieldTransformation()
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now