Tabnine Logo
InterfacePolicy.addChildDescriptor
Code IndexAdd Tabnine to your IDE (free)

How to use
addChildDescriptor
method
in
org.eclipse.persistence.descriptors.InterfacePolicy

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Allow the descriptor to initialize any dependencies on this session.
 */
public void preInterfaceInitialization(AbstractSession session) throws DescriptorException {
  if (isInterfaceInitialized(PREINITIALIZED)) {
    return;
  }
  setInterfaceInitializationStage(PREINITIALIZED);
  assignDefaultValues(session);
  if (isInterfaceChildDescriptor()) {
    for (Iterator<Class> interfaces = getInterfacePolicy().getParentInterfaces().iterator();
         interfaces.hasNext();) {
      Class parentInterface = interfaces.next();
      ClassDescriptor parentDescriptor = session.getDescriptor(parentInterface);
      if ((parentDescriptor == null) || (parentDescriptor.getJavaClass() == getJavaClass()) || parentDescriptor.getInterfacePolicy().usesImplementorDescriptor()) {
        session.getProject().getDescriptors().put(parentInterface, this);
        session.clearLastDescriptorAccessed();
      } else if (!parentDescriptor.isDescriptorForInterface()) {
        throw DescriptorException.descriptorForInterfaceIsMissing(parentInterface.getName());
      } else {
        parentDescriptor.preInterfaceInitialization(session);
        parentDescriptor.getInterfacePolicy().addChildDescriptor(this);
        getInterfacePolicy().addParentDescriptor(parentDescriptor);
      }
    }
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Allow the descriptor to initialize any dependencies on this session.
 */
public void preInterfaceInitialization(AbstractSession session) throws DescriptorException {
  if (isInterfaceInitialized(PREINITIALIZED)) {
    return;
  }
  setInterfaceInitializationStage(PREINITIALIZED);
  assignDefaultValues(session);
  
  if (isInterfaceChildDescriptor()) {
    for (Enumeration interfaces = getInterfacePolicy().getParentInterfaces().elements();
         interfaces.hasMoreElements();) {
      Class parentInterface = (Class)interfaces.nextElement();
      ClassDescriptor parentDescriptor = session.getDescriptor(parentInterface);
      if ((parentDescriptor == null) || (parentDescriptor.getJavaClass() == getJavaClass()) || parentDescriptor.getInterfacePolicy().usesImplementorDescriptor()) {
        session.getProject().getDescriptors().put(parentInterface, this);
        session.clearLastDescriptorAccessed();
      } else if (!parentDescriptor.isDescriptorForInterface()) {
        throw DescriptorException.descriptorForInterfaceIsMissing(parentInterface.getName());
      } else {
        parentDescriptor.preInterfaceInitialization(session);
        parentDescriptor.getInterfacePolicy().addChildDescriptor(this);
        getInterfacePolicy().addParentDescriptor(parentDescriptor);
      }
    }
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Allow the descriptor to initialize any dependencies on this session.
 */
public void preInterfaceInitialization(AbstractSession session) throws DescriptorException {
  if (isInterfaceInitialized(PREINITIALIZED)) {
    return;
  }
  setInterfaceInitializationStage(PREINITIALIZED);
  assignDefaultValues(session);
  
  if (isInterfaceChildDescriptor()) {
    for (Iterator<Class> interfaces = getInterfacePolicy().getParentInterfaces().iterator();
         interfaces.hasNext();) {
      Class parentInterface = interfaces.next();
      ClassDescriptor parentDescriptor = session.getDescriptor(parentInterface);
      if ((parentDescriptor == null) || (parentDescriptor.getJavaClass() == getJavaClass()) || parentDescriptor.getInterfacePolicy().usesImplementorDescriptor()) {
        session.getProject().getDescriptors().put(parentInterface, this);
        session.clearLastDescriptorAccessed();
      } else if (!parentDescriptor.isDescriptorForInterface()) {
        throw DescriptorException.descriptorForInterfaceIsMissing(parentInterface.getName());
      } else {
        parentDescriptor.preInterfaceInitialization(session);
        parentDescriptor.getInterfacePolicy().addChildDescriptor(this);
        getInterfacePolicy().addParentDescriptor(parentDescriptor);
      }
    }
  }
}
org.eclipse.persistence.descriptorsInterfacePolicyaddChildDescriptor

Javadoc

INTERNAL: Add child descriptor to the parent descriptor.

Popular methods of InterfacePolicy

  • <init>
    INTERNAL: Create a new policy. Only descriptor involved in interface should have a policy.
  • addParentDescriptor
    INTERNAL: Add parent descriptor.
  • convertClassNamesToClasses
    INTERNAL: Convert all the class-name-based settings in this InheritancePolicy to actual class-based
  • getChildDescriptors
    INTERNAL: Return all the child descriptors.
  • getImplementorDescriptor
    INTERNAL: Returns the implementor descriptor class.
  • getParentDescriptors
    INTERNAL: Return all the parent descriptors.
  • getParentInterfaceNames
  • getParentInterfaces
    INTERNAL: Return the vector of parent interfaces.
  • initialize
    INTERNAL: Set the vector to store parent interfaces.
  • isInterfaceChildDescriptor
    INTERNAL: Check if it is a child descriptor.
  • isTablePerClassPolicy
    INTERNAL:
  • selectAllObjects
    INTERNAL: Select all objects for a concrete descriptor.
  • isTablePerClassPolicy,
  • selectAllObjects,
  • selectAllObjectsUsingMultipleTableSubclassRead,
  • selectOneObject,
  • selectOneObjectUsingMultipleTableSubclassRead,
  • setDescriptor,
  • usesImplementorDescriptor,
  • prepareQuery,
  • addParentInterfaceName

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • Top Vim 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