Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: FetchType.java 11282 2007-03-14 22:05:59Z epbernard $
2
//EJB3 Specification Copyright 2004-2006 Sun Microsystems, Inc.
3
package javax.persistence;
4
 
5
/**
6
 * Defines strategies for fetching data from the database.
7
 * The EAGER strategy is a requirement on the persistence provider runtime that data must
8
 * be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime that
9
 * data should be fetched lazily when it is first accessed. The implementation is permitted to
10
 * eagerly fetch data for which the LAZY strategy hint has been specified. In particular, lazy
11
 * fetching might only be available for Basic mappings for which property-based access is used.
12
 *
13
 * @author Emmanuel Bernard
14
 */
15
public enum FetchType {
16
        /**
17
         * Defines that data must be lazily fetched
18
         */
19
        LAZY,
20
        /**
21
         * Defines that data must be eagerly fetched
22
         */
23
        EAGER
24
};