congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MethodBasedFieldTransformation.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.internal.descriptors.MethodBasedFieldTransformation
constructor

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

Popular methods of MethodBasedFieldTransformation

  • getField
  • getMethodName
  • setField
  • setMethodName

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • 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
  • Github Copilot 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