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

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

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

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

  /**
   * INTERNAL:
   * Select one object of any concrete subclass.
   */
  @Override
  protected Object selectOneObject(ReadObjectQuery query) throws DescriptorException {
    if (this.descriptor.isAbstract()) {
      return null;
    }
    return super.selectOneObject(query);
  }
}
origin: com.haulmont.thirdparty/eclipselink

  /**
   * INTERNAL:
   * Select one object of any concrete subclass.
   */
  @Override
  protected Object selectOneObject(ReadObjectQuery query) throws DescriptorException {
    if (this.descriptor.isAbstract()) {
      return null;
    }
    return super.selectOneObject(query);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Select one object of any concrete subclass.
 */
public Object selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query) throws DatabaseException, QueryException {
  int size = this.childDescriptors.size();
  for (int index = 0; index < size; index++) {
    ClassDescriptor descriptor = this.childDescriptors.get(index);
    Object object = descriptor.getInterfacePolicy().selectOneObject(query);
    if (object != null) {
      return object;
    }
  }
  return null;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Select one object of any concrete subclass.
 */
public Object selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query) throws DatabaseException, QueryException {
  int size = this.childDescriptors.size();
  for (int index = 0; index < size; index++) {
    ClassDescriptor descriptor = this.childDescriptors.get(index);
    Object object = descriptor.getInterfacePolicy().selectOneObject(query);
    if (object != null) {
      return object;
    }
  }
  return null;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Select one object of any concrete subclass.
 */
public Object selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query) throws DatabaseException, QueryException {
  Object object = null;
  for (Enumeration childDescriptors = getChildDescriptors().elements(); childDescriptors.hasMoreElements() && (object == null);) {
    ClassDescriptor descriptor = (ClassDescriptor)childDescriptors.nextElement();
    object = descriptor.getInterfacePolicy().selectOneObject(query);
  }
  return object;
}
org.eclipse.persistence.descriptorsInterfacePolicyselectOneObject

Javadoc

INTERNAL: Select one object of any concrete subclass.

Popular methods of InterfacePolicy

  • <init>
    INTERNAL: Create a new policy. Only descriptor involved in interface should have a policy.
  • addChildDescriptor
    INTERNAL: Add child descriptor to the parent descriptor.
  • 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:
  • isInterfaceChildDescriptor,
  • isTablePerClassPolicy,
  • selectAllObjects,
  • selectAllObjectsUsingMultipleTableSubclassRead,
  • selectOneObjectUsingMultipleTableSubclassRead,
  • setDescriptor,
  • usesImplementorDescriptor,
  • prepareQuery,
  • addParentInterfaceName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JComboBox (javax.swing)
  • JFileChooser (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
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