| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final LoadPlan. | |
| private final QuerySpaces | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | LoadPlanImpl(List<? extends Return> returns, QuerySpaces querySpaces, LoadPlan.
|
| public | LoadPlanImpl(EntityReturn
The EntityReturn representation of the entity being loaded. rootReturn, QuerySpaces The QuerySpaces containing all the query space references
required for querySpaces)rootReturn and joined entity, collection,
and composite references.Creates a |
| public | LoadPlanImpl(CollectionReturn
The CollectionReturn representation of the collection being initialized. rootReturn, QuerySpaces The QuerySpaces containing all the query space references
required for querySpaces)rootReturn and joined entity, collection,
and composite references.Creates a |
| public | LoadPlanImpl(List<? extends Return>
The mixed Return references returns, QuerySpaces The QuerySpaces containing all the query space references
required for querySpaces, boolean rootReturn and joined entity, collection,
and composite references.Should lazy attributes (bytecode enhanced laziness) be fetched also? This
effects the eventual SQL SELECT-clause which is why we have it here. Currently this is "all-or-none"; you
can request that all lazy properties across all entities in the loadplan be force fetched or none. There is
no entity-by-entity option. areLazyAttributesForceFetched)FETCH ALL PROPERTIES is the way this is requested in HQL. Would be nice to
consider this entity-by-entity, as opposed to all-or-none. For example, "fetch the LOB value for the Item.image
attribute, but no others (leave them lazy)". Not too concerned about having it at the attribute level.Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | areLazyAttributesForceFetched()
Implements org. |
| public LoadPlan. | getDisposition()
Implements org. |
| public QuerySpaces | getQuerySpaces()
Implements org. QuerySpaces for the load plan, which contains a QuerySpace
reference for each non-scalar return and for each entity, collection, and composite
FetchSource.
|
| public List | getReturns()
Implements org. |
| public boolean | hasAnyScalarReturns()
Implements org. getReturns() for scalar root returns.
|
| areLazyAttributesForceFetched | back to summary |
|---|---|
| private final boolean areLazyAttributesForceFetched | |
| disposition | back to summary |
|---|---|
| private final LoadPlan. | |
| querySpaces | back to summary |
|---|---|
| private final QuerySpaces querySpaces | |
| returns | back to summary |
|---|---|
| private final List<? extends Return> returns | |
| LoadPlanImpl | back to summary |
|---|---|
| protected LoadPlanImpl(List<? extends Return> returns, QuerySpaces querySpaces, LoadPlan. | |
| LoadPlanImpl | back to summary |
|---|---|
| public LoadPlanImpl(EntityReturn rootReturn, QuerySpaces querySpaces) Creates a
| |
| LoadPlanImpl | back to summary |
|---|---|
| public LoadPlanImpl(CollectionReturn rootReturn, QuerySpaces querySpaces) Creates a
| |
| LoadPlanImpl | back to summary |
|---|---|
| public LoadPlanImpl(List<? extends Return> returns, QuerySpaces querySpaces, boolean areLazyAttributesForceFetched) Creates a
| |
| areLazyAttributesForceFetched | back to summary |
|---|---|
| public boolean areLazyAttributesForceFetched() Implements org. Doc from org. 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. Therefore we make this part of the LoadPlan contract.
NOTE that currently this is only relevant for HQL loaders when the HQL has specified the
| |
| getDisposition | back to summary |
|---|---|
| public LoadPlan. Implements org. Doc from org. What is the disposition of this LoadPlan, in terms of its returns.
| |
| getQuerySpaces | back to summary |
|---|---|
| public QuerySpaces getQuerySpaces() Implements org. Doc from org. Gets the When generating SQL, the query spaces provide data for the "from clause" including joins.
| |
| getReturns | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the returns indicated by this LoadPlan.
When generating SQL, the Returns provide columns/formulas used in the "select clause". | |
| hasAnyScalarReturns | back to summary |
|---|---|
| public boolean hasAnyScalarReturns() Implements org. Doc from org. Convenient form of checking
| |