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

How to use
getCandidateClass
method
in
javax.jdo.Extent

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

origin: tzaeschke/zoodb

@SuppressWarnings("rawtypes")
@Override
public void setCandidates(Extent pcs) {
  checkUnmodifiable();
  this.ext = pcs;
  if (pcs.getCandidateClass() != candCls) {
    setClass( pcs.getCandidateClass() );
    resetQuery();
  }
}
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

/**
 * Construct a query instance with the candidate Extent specified; the
 * candidate class is taken from the Extent.
 * @param cln The extent to query
 * @return The query
 */
public synchronized Query newQuery(Extent cln)
{
  Query query = newQuery();
  query.setClass(cln.getCandidateClass());
  query.setCandidates(cln);
  return query;
}
origin: org.datanucleus/datanucleus-api-jdo

/**
 * Construct a query instance with the candidate Extent specified; the
 * candidate class is taken from the Extent.
 * @param cln The extent to query
 * @return The query
 * @param <T> Candidate type for the query
 */
public <T> Query<T> newQuery(Extent<T> cln)
{
  Query query = newQuery();
  query.setClass(cln.getCandidateClass());
  query.setCandidates(cln);
  return query;
}
origin: tzaeschke/zoodb

checkUnmodifiable();
ext = new CollectionExtent(pcs, pm, ignoreCache);
if (ext.getCandidateClass() != candCls) {
  setClass(ext.getCandidateClass());
  resetQuery();
origin: jpox/jpox

/**
 * Construct a query instance with the candidate Extent and filter
 * specified. The candidate class is taken from the Extent.
 * @param cln The extent to query
 * @param filter A filter to apply
 * @return The query
 */
public synchronized Query newQuery(Extent cln, String filter)
{
  Query query = newQuery();
  query.setClass(cln.getCandidateClass());
  query.setCandidates(cln);
  query.setFilter(filter);
  return query;
}
origin: org.datanucleus/datanucleus-api-jdo

/**
 * Construct a query instance with the candidate Extent and filter
 * specified. The candidate class is taken from the Extent.
 * @param cln The extent to query
 * @param filter A filter to apply
 * @return The query
 * @param <T> Candidate type for the query
 */
public <T> Query<T> newQuery(Extent<T> cln, String filter)
{
  Query query = newQuery();
  query.setClass(cln.getCandidateClass());
  query.setCandidates(cln);
  query.setFilter(filter);
  return query;
}
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(TestClass.class, ext.getCandidateClass());
assertTrue(ext.hasSubclasses());
javax.jdoExtentgetCandidateClass

Javadoc

An Extent contains all instances of a particular class or interface in the data store; this method returns the Class of the instances represented by this Extent.

Popular methods of Extent

  • iterator
    Returns an iterator over all the instances in the Extent. The behavior of the returned iterator migh
  • hasSubclasses
    Returns whether this Extent was defined to contain subclasses.
  • 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

  • Making http requests using okhttp
  • setContentView (Activity)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Notification (javax.management)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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