Tabnine Logo
MethodClassExtractor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.persistence.descriptors.MethodClassExtractor
constructor

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * ADVANCED:
 * A class extraction method can be registered with the descriptor to override the default inheritance mechanism.
 * This allows for a user defined class indicator in place of providing an explicit class indicator field.
 * The method registered must be a static method on the class which has that descriptor. The method must take Record 
 * as an argument (for example, a DatabaseRecord), and must return the class to use for that record.
 * This method will be used to decide which class to instantiate when reading from the database.
 * It is the application's responsibility to populate any typing information in the database required
 * to determine the class from the record.
 * If this method is used then the class indicator field and mapping cannot be used, and in addition, 
 * the descriptor's withAllSubclasses and onlyInstances expressions must also be set up correctly.
 *
 * @see #setWithAllSubclassesExpression(Expression)
 * @see #setOnlyInstancesExpression(Expression)
 */
public void setClassExtractionMethodName(String staticClassClassExtractionMethod) {
  if ((staticClassClassExtractionMethod == null) || (staticClassClassExtractionMethod.length() == 0)) {
    return;
  }
  if (!(getClassExtractor() instanceof MethodClassExtractor)) {
    setClassExtractor(new MethodClassExtractor());
  }
  ((MethodClassExtractor)getClassExtractor()).setClassExtractionMethodName(staticClassClassExtractionMethod);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * ADVANCED:
 * A class extraction method can be registered with the descriptor to override the default inheritance mechanism.
 * This allows for a user defined class indicator in place of providing an explicit class indicator field.
 * The method registered must be a static method on the class which has that descriptor. The method must take Record 
 * as an argument (for example, a DatabaseRecord), and must return the class to use for that record.
 * This method will be used to decide which class to instantiate when reading from the database.
 * It is the application's responsibility to populate any typing information in the database required
 * to determine the class from the record.
 * If this method is used then the class indicator field and mapping cannot be used, and in addition, 
 * the descriptor's withAllSubclasses and onlyInstances expressions must also be set up correctly.
 *
 * @see #setWithAllSubclassesExpression(Expression)
 * @see #setOnlyInstancesExpression(Expression)
 */
public void setClassExtractionMethodName(String staticClassClassExtractionMethod) {
  if ((staticClassClassExtractionMethod == null) || (staticClassClassExtractionMethod.length() == 0)) {
    return;
  }
  if (!(getClassExtractor() instanceof MethodClassExtractor)) {
    setClassExtractor(new MethodClassExtractor());
  }
  ((MethodClassExtractor)getClassExtractor()).setClassExtractionMethodName(staticClassClassExtractionMethod);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * ADVANCED:
 * A class extraction method can be registered with the descriptor to override the default inheritance mechanism.
 * This allows for a user defined class indicator in place of providing an explicit class indicator field.
 * The method registered must be a static method on the class which has that descriptor. The method must take Record
 * as an argument (for example, a DatabaseRecord), and must return the class to use for that record.
 * This method will be used to decide which class to instantiate when reading from the database.
 * It is the application's responsibility to populate any typing information in the database required
 * to determine the class from the record.
 * If this method is used then the class indicator field and mapping cannot be used, and in addition,
 * the descriptor's withAllSubclasses and onlyInstances expressions must also be set up correctly.
 *
 * @see #setWithAllSubclassesExpression(Expression)
 * @see #setOnlyInstancesExpression(Expression)
 */
public void setClassExtractionMethodName(String staticClassClassExtractionMethod) {
  if ((staticClassClassExtractionMethod == null) || (staticClassClassExtractionMethod.length() == 0)) {
    return;
  }
  if (!(getClassExtractor() instanceof MethodClassExtractor)) {
    setClassExtractor(new MethodClassExtractor());
  }
  ((MethodClassExtractor)getClassExtractor()).setClassExtractionMethodName(staticClassClassExtractionMethod);
}
org.eclipse.persistence.descriptorsMethodClassExtractor<init>

Popular methods of MethodClassExtractor

  • 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
  • setDescriptor
    INTERNAL: Set the descriptor.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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