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

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

Best Java code snippets using org.eclipse.persistence.descriptors.MethodClassExtractor.setDescriptor (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.descriptorsMethodClassExtractorsetDescriptor

Javadoc

INTERNAL: Set the descriptor.

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.
  • setClassExtractionMethod
    INTERNAL:
  • setClassExtractionMethodName
    PUBLIC: A class extraction method can be registered with the descriptor to override the default inhe

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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