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

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

Best Java code snippets using org.eclipse.persistence.internal.descriptors.MethodBasedFieldTransformation.setField (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.descriptorsMethodBasedFieldTransformationsetField

Popular methods of MethodBasedFieldTransformation

  • <init>
  • getField
  • getMethodName
  • setMethodName

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Table (org.hibernate.mapping)
    A relational table
  • 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