com.marringtons.object
Class Search.Load

java.lang.Object
  extended bycom.marringtons.object.Search.Load
Enclosing class:
Search

public static class Search.Load
extends Object

Static fields in this class are used as part of Search initialisation to define whether loading from the search is to be lazy or eager.

See Also:
Search.Search(DAO, Search.Load, Search.Access)

Field Summary
static Search.Load eager
          Search uses Search.Load.eager to force loading of all inner DAOs when the instances of the outer DAO are found.
static Search.Load lazy
          Search uses Search.Load.lazy if loading of inner DAOs is to be deferred until they are needed.
 
Constructor Summary
Search.Load()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lazy

public static final Search.Load lazy
Search uses Search.Load.lazy if loading of inner DAOs is to be deferred until they are needed. This makes for faster reading of large data graphs, but inner DAOs must be retrieved with a load method before being used.


eager

public static final Search.Load eager
Search uses Search.Load.eager to force loading of all inner DAOs when the instances of the outer DAO are found. This is the most common and transparent method, but can be unnecessarily expensive if you have large data graphs. It would be better to use this and not have large data graphs, but that is not always possible in complex systems.

Constructor Detail

Search.Load

public Search.Load()


Copyright © 2005 Paul Marrington http://library.marringtons.com