Codota Logo
TransformerBasedFieldTransformation.getTransformerClassName
Code IndexAdd Codota to your IDE (free)

How to use
getTransformerClassName
method
in
org.eclipse.persistence.internal.descriptors.TransformerBasedFieldTransformation

Best Java code snippets using org.eclipse.persistence.internal.descriptors.TransformerBasedFieldTransformation.getTransformerClassName (Showing top 9 results out of 315)

  • Common ways to obtain TransformerBasedFieldTransformation
private void myMethod () {
TransformerBasedFieldTransformation t =
  • Codota Iconnew TransformerBasedFieldTransformation()
  • Codota IconFieldTransformer aTransformer;new TransformerBasedFieldTransformation(aTransformer)
  • Smart code suggestions by Codota
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

} catch (ConversionException ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
} catch (Exception ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

if (transformation instanceof TransformerBasedFieldTransformation) {
  TransformerBasedFieldTransformation transformer = (TransformerBasedFieldTransformation)transformation;
  String transformerClassName = transformer.getTransformerClassName(); 
  if (transformerClassName == null) {
    return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

} catch (ConversionException ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
} catch (Exception ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
origin: com.haulmont.thirdparty/eclipselink

} catch (ConversionException ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
} catch (Exception ex) {
  if (transformation instanceof TransformerBasedFieldTransformation) {
    transformerClassName = ((TransformerBasedFieldTransformation)transformation).getTransformerClassName();
origin: org.eclipse.persistence/org.eclipse.persistence.core

if (transformation instanceof TransformerBasedFieldTransformation) {
  TransformerBasedFieldTransformation transformer = (TransformerBasedFieldTransformation)transformation;
  String transformerClassName = transformer.getTransformerClassName();
  if (transformerClassName == null) {
    return;
origin: com.haulmont.thirdparty/eclipselink

if (transformation instanceof TransformerBasedFieldTransformation) {
  TransformerBasedFieldTransformation transformer = (TransformerBasedFieldTransformation)transformation;
  String transformerClassName = transformer.getTransformerClassName(); 
  if (transformerClassName == null) {
    return;
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void addTransformationMappingLines(NonreflectiveMethodDefinition method, String mappingName, TransformationMapping mapping) {
  if (!mapping.isWriteOnly()) {
    if (mapping.getAttributeMethodName() != null) {
      method.addLine(mappingName + ".setAttributeTransformation(\"" + mapping.getAttributeMethodName() + "\");");
    } else {
      method.addLine(mappingName + ".setAttributeTransformer(new " + mapping.getAttributeTransformerClassName() + "());");
    }
  }
  Iterator fieldTransformations = mapping.getFieldTransformations().iterator();
  while (fieldTransformations.hasNext()) {
    FieldTransformation trans = (FieldTransformation)fieldTransformations.next();
    String fieldName = trans.getFieldName();
    if (trans instanceof MethodBasedFieldTransformation) {
      String methodName = ((MethodBasedFieldTransformation)trans).getMethodName();
      method.addLine(mappingName + ".addFieldTransformation(\"" + fieldName + "\", \"" + methodName + "\");");
    } else {
      String transformerClass = ((TransformerBasedFieldTransformation)trans).getTransformerClassName();
      method.addLine(mappingName + ".addFieldTransformer(\"" + fieldName + "\", new " + transformerClass + "());");
    }
  }
  IndirectionPolicy policy = mapping.getIndirectionPolicy();
  if (policy instanceof ContainerIndirectionPolicy) {
    String containerClassName = ((ContainerIndirectionPolicy)policy).getContainerClassName();
    method.addLine(mappingName + ".useContainerIndirection(" + containerClassName + ".class);");
  } else if (policy instanceof BasicIndirectionPolicy) {
    method.addLine(mappingName + ".useBasicIndirection();");
  }
  method.addLine(mappingName + ".setIsMutable(" + mapping.isMutable() + ");");
}
origin: com.haulmont.thirdparty/eclipselink

protected void addTransformationMappingLines(NonreflectiveMethodDefinition method, String mappingName, TransformationMapping mapping) {
  if (!mapping.isWriteOnly()) {
    if (mapping.getAttributeMethodName() != null) {
      method.addLine(mappingName + ".setAttributeTransformation(\"" + mapping.getAttributeMethodName() + "\");");
    } else {
      method.addLine(mappingName + ".setAttributeTransformer(new " + mapping.getAttributeTransformerClassName() + "());");
    }
  }
  Iterator fieldTransformations = mapping.getFieldTransformations().iterator();
  while (fieldTransformations.hasNext()) {
    FieldTransformation trans = (FieldTransformation)fieldTransformations.next();
    String fieldName = trans.getFieldName();
    if (trans instanceof MethodBasedFieldTransformation) {
      String methodName = ((MethodBasedFieldTransformation)trans).getMethodName();
      method.addLine(mappingName + ".addFieldTransformation(\"" + fieldName + "\", \"" + methodName + "\");");
    } else {
      String transformerClass = ((TransformerBasedFieldTransformation)trans).getTransformerClassName();
      method.addLine(mappingName + ".addFieldTransformer(\"" + fieldName + "\", new " + transformerClass + "());");
    }
  }
  IndirectionPolicy policy = mapping.getIndirectionPolicy();
  if (policy instanceof ContainerIndirectionPolicy) {
    String containerClassName = ((ContainerIndirectionPolicy)policy).getContainerClassName();
    method.addLine(mappingName + ".useContainerIndirection(" + containerClassName + ".class);");
  } else if (policy instanceof BasicIndirectionPolicy) {
    method.addLine(mappingName + ".useBasicIndirection();");
  }
  method.addLine(mappingName + ".setIsMutable(" + mapping.isMutable() + ");");
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected void addTransformationMappingLines(NonreflectiveMethodDefinition method, String mappingName, TransformationMapping mapping) {
  if (!mapping.isWriteOnly()) {
    if (mapping.getAttributeMethodName() != null) {
      method.addLine(mappingName + ".setAttributeTransformation(\"" + mapping.getAttributeMethodName() + "\");");
    } else {
      method.addLine(mappingName + ".setAttributeTransformer(new " + mapping.getAttributeTransformerClassName() + "());");
    }
  }
  Iterator fieldTransformations = mapping.getFieldTransformations().iterator();
  while (fieldTransformations.hasNext()) {
    FieldTransformation trans = (FieldTransformation)fieldTransformations.next();
    String fieldName = trans.getFieldName();
    if (trans instanceof MethodBasedFieldTransformation) {
      String methodName = ((MethodBasedFieldTransformation)trans).getMethodName();
      method.addLine(mappingName + ".addFieldTransformation(\"" + fieldName + "\", \"" + methodName + "\");");
    } else {
      String transformerClass = ((TransformerBasedFieldTransformation)trans).getTransformerClassName();
      method.addLine(mappingName + ".addFieldTransformer(\"" + fieldName + "\", new " + transformerClass + "());");
    }
  }
  IndirectionPolicy policy = mapping.getIndirectionPolicy();
  if (policy instanceof ContainerIndirectionPolicy) {
    String containerClassName = ((ContainerIndirectionPolicy)policy).getContainerClassName();
    method.addLine(mappingName + ".useContainerIndirection(" + containerClassName + ".class);");
  } else if (policy instanceof BasicIndirectionPolicy) {
    method.addLine(mappingName + ".useBasicIndirection();");
  }
  method.addLine(mappingName + ".setIsMutable(" + mapping.isMutable() + ");");
}
org.eclipse.persistence.internal.descriptorsTransformerBasedFieldTransformationgetTransformerClassName

Popular methods of TransformerBasedFieldTransformation

  • <init>
  • getField
  • getTransformerClass
  • setField
  • setTransformerClass
  • setTransformerClassName

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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