edu.northwestern.at.wordhoard.swing.calculator.modelutils
Class PreloadUtils

java.lang.Object
  extended by edu.northwestern.at.wordhoard.swing.calculator.modelutils.PreloadUtils

public class PreloadUtils
extends java.lang.Object

Preload utilities.

The methods here preload object model entities using (hopefully) efficient queries all at once. This allows traversing the object model graph without requiring multiple database reads during traversal.


Constructor Summary
protected PreloadUtils()
          Don't allow instantiation but do allow overrides.
 
Method Summary
static java.util.Collection preloadReducedWordParts(java.util.Collection words)
          Preload reduced word part information for a set of words.
static java.util.Collection preloadReducedWordPartsAndSpeeches(java.util.Collection words)
          Preload reduced word part information and speeches for a set of words.
static java.util.Collection preloadWordParts(java.util.Collection words)
          Preload word part information for a set of words.
static java.util.Collection preloadWordParts(PersistenceManager pm, java.util.Collection words)
          Preload word part information for a set of words.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreloadUtils

protected PreloadUtils()
Don't allow instantiation but do allow overrides.

Method Detail

preloadWordParts

public static java.util.Collection preloadWordParts(PersistenceManager pm,
                                                    java.util.Collection words)
Preload word part information for a set of words.

Parameters:
pm - Persistence manager.
words - The words.
Returns:
Collection of preloaded objects.

preloadWordParts

public static java.util.Collection preloadWordParts(java.util.Collection words)
Preload word part information for a set of words.

Parameters:
words - The words.
Returns:
Collection of preloaded objects.

preloadReducedWordParts

public static java.util.Collection preloadReducedWordParts(java.util.Collection words)
Preload reduced word part information for a set of words.

Parameters:
words - The words.

preloadReducedWordPartsAndSpeeches

public static java.util.Collection preloadReducedWordPartsAndSpeeches(java.util.Collection words)
Preload reduced word part information and speeches for a set of words.

Parameters:
words - The words.