Tabnine Logo
Extent.hasSubclasses
Code IndexAdd Tabnine to your IDE (free)

How to use
hasSubclasses
method
in
javax.jdo.Extent

Best Java code snippets using javax.jdo.Extent.hasSubclasses (Showing top 3 results out of 315)

origin: tzaeschke/zoodb

@SuppressWarnings("rawtypes")
public QueryImpl(PersistenceManagerImpl pm, Extent ext, String filter) {
  this(pm);
  this.ext = ext;
  setClass( this.ext.getCandidateClass() );
  this.filter = filter;
  this.subClasses = ext.hasSubclasses();
}
origin: jpox/jpox

/**
 * Set the candidate Extent to query.
 *
 * @param pcs the Candidate Extent.
 * @see javax.jdo.Query#setCandidates(javax.jdo.Extent)
 */
public void setCandidates(Extent pcs)
{
  discardCompiled();
  assertIsModifiable();
  if (pcs == null)
  {
    JPOXLogger.JDO_QUERY.warn(LOCALISER.msg("Candidates.ExtentCantBeNull"));
    return;
  }
  if (!(pcs instanceof Queryable))
  {
    throw new JDOUnsupportedOptionException(LOCALISER.msg("JDOQL.ExtentNotQueryableError",pcs.getClass().getName()));
  }
  setSubclasses(pcs.hasSubclasses());
  setClass(pcs.getCandidateClass());
  candidateExtent = pcs;
  candidateCollection = null; // We have an Extent, so remove any collection
}
origin: tzaeschke/zoodb

assertEquals(pm, ext.getPersistenceManager());
assertEquals(TestClass.class, ext.getCandidateClass());
assertTrue(ext.hasSubclasses());
assertFalse(ext.hasSubclasses());
ext = pm.getExtent(TestClass.class);
assertFalse( ext.iterator().hasNext() );
assertTrue(ext.hasSubclasses());
javax.jdoExtenthasSubclasses

Javadoc

Returns whether this Extent was defined to contain subclasses.

Popular methods of Extent

  • getCandidateClass
    An Extent contains all instances of a particular class or interface in the data store; this method r
  • iterator
    Returns an iterator over all the instances in the Extent. The behavior of the returned iterator migh
  • closeAll
    Close all Iterators associated with this Extent instance.Iterators closed by this method will return
  • getFetchPlan
    Get the fetch plan associated with this Extent.
  • getPersistenceManager
    An Extent is managed by a PersistenceManager; this method gives access to the owning PersistenceMana

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • putExtra (Intent)
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • From CI to AI: The AI layer in your organization
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