public interface LoadPlan
LoadPlan.Disposition.ENTITY_LOADER- An entity load plan for handling get/load handling. This form will typically have a single return (of type
EntityReturn) defined by
getReturns(), possibly defining fetches.
LoadPlan.Disposition.COLLECTION_INITIALIZER- A collection initializer, used to load the contents of a collection. This form will typically have a single return (of type
CollectionReturn) defined by
getReturns(), possibly defining fetches
LoadPlan.Disposition.MIXED- A query load plan which can contain multiple returns of mixed type (though all implementing
Return). Again, may possibly define fetches.
|Modifier and Type||Interface and Description|
Enumerated possibilities for describing the disposition of this LoadPlan.
|Modifier and Type||Method and Description|
Does this load plan indicate that lazy attributes are to be force fetched? Here we are talking about laziness in regards to the legacy bytecode enhancement which adds support for partial selects of an entity's state (e.g., skip loading a lob initially, wait until/if it is needed) This one would effect the SQL that needs to get generated as well as how the result set would be read.
What is the disposition of this LoadPlan, in terms of its returns.
Get the returns indicated by this LoadPlan. A
Convenient form of checking
List<? extends Return> getReturns()
LoadPlan.Disposition.ENTITY_LOADERLoadPlan would have just a single Return of type
LoadPlan.Disposition.COLLECTION_INITIALIZERLoadPlan would have just a single Return of type
LoadPlan.Disposition.MIXEDLoadPlan would contain a mix of
ScalarReturnelements, but no
QuerySpacesfor the load plan, which contains a
QuerySpacereference for each non-scalar return and for each entity, collection, and composite
FetchSource. When generating SQL, the query spaces provide data for the "from clause" including joins.
FETCH ALL PROPERTIESkey-phrase. In all other cases, this returns false.
getReturns()for scalar root returns.
getReturns()contained any scalar returns;
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.