Tabnine Logo
MethodClassExtractor.setClassExtractionMethod
Code IndexAdd Tabnine to your IDE (free)

How to use
setClassExtractionMethod
method
in
org.eclipse.persistence.descriptors.MethodClassExtractor

Best Java code snippets using org.eclipse.persistence.descriptors.MethodClassExtractor.setClassExtractionMethod (Showing top 3 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Setup the default classExtractionMethod, or if one was specified by the user make sure it is valid.
 */
public void initialize(ClassDescriptor descriptor, Session session) throws DescriptorException {
  setDescriptor(descriptor);
  Class[] declarationParameters = new Class[1];
  declarationParameters[0] = ClassConstants.DatabaseRow_Class;
  try {
    setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
  } catch (NoSuchMethodException ignore) {
    declarationParameters[0] = ClassConstants.Record_Class;
    try {
      setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
    } catch (NoSuchMethodException exception) {
      throw DescriptorException.noSuchMethodWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
    }
  } catch (SecurityException exception) {
    throw DescriptorException.securityWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
  }
  // CR#2818667 Ensure the method is static.
  if (!Modifier.isStatic(getClassExtractionMethod().getModifiers())) {
    throw DescriptorException.classExtractionMethodMustBeStatic(getClassExtractionMethodName(), descriptor);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Setup the default classExtractionMethod, or if one was specified by the user make sure it is valid.
 */
public void initialize(ClassDescriptor descriptor, Session session) throws DescriptorException {
  setDescriptor(descriptor);
  Class[] declarationParameters = new Class[1];
  declarationParameters[0] = ClassConstants.DatabaseRow_Class;
  try {
    setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
  } catch (NoSuchMethodException ignore) {
    declarationParameters[0] = ClassConstants.Record_Class;
    try {
      setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
    } catch (NoSuchMethodException exception) {
      throw DescriptorException.noSuchMethodWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
    } catch (SecurityException exception) {
      throw DescriptorException.securityWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
    }
  } catch (SecurityException exception) {
    throw DescriptorException.securityWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
  }
  // CR#2818667 Ensure the method is static.
  if (!Modifier.isStatic(getClassExtractionMethod().getModifiers())) {
    throw DescriptorException.classExtractionMethodMustBeStatic(getClassExtractionMethodName(), descriptor);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Setup the default classExtractionMethod, or if one was specified by the user make sure it is valid.
 */
public void initialize(ClassDescriptor descriptor, Session session) throws DescriptorException {
  setDescriptor(descriptor);
  Class[] declarationParameters = new Class[1];
  declarationParameters[0] = ClassConstants.DatabaseRow_Class;
  try {
    setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
  } catch (NoSuchMethodException ignore) {
    declarationParameters[0] = ClassConstants.Record_Class;
    try {
      setClassExtractionMethod(Helper.getDeclaredMethod(descriptor.getJavaClass(), getClassExtractionMethodName(), declarationParameters));
    } catch (NoSuchMethodException exception) {
      throw DescriptorException.noSuchMethodWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
    } catch (SecurityException exception) {
      throw DescriptorException.securityWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
    }
  } catch (SecurityException exception) {
    throw DescriptorException.securityWhileInitializingClassExtractionMethod(getClassExtractionMethodName(), descriptor, exception);
  }
  // CR#2818667 Ensure the method is static.
  if (!Modifier.isStatic(getClassExtractionMethod().getModifiers())) {
    throw DescriptorException.classExtractionMethodMustBeStatic(getClassExtractionMethodName(), descriptor);
  }
}
org.eclipse.persistence.descriptorsMethodClassExtractorsetClassExtractionMethod

Javadoc

INTERNAL:

Popular methods of MethodClassExtractor

  • <init>
  • getClassExtractionMethod
    INTERNAL: Return all the classExtractionMethod
  • getClassExtractionMethodName
    PUBLIC: A class extraction method can be registered with the descriptor to override the default inhe
  • getDescriptor
    INTERNAL: Return the descriptor.
  • setClassExtractionMethodName
    PUBLIC: A class extraction method can be registered with the descriptor to override the default inhe
  • setDescriptor
    INTERNAL: Set the descriptor.

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JTable (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ plugins
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