org.hibernate.loader.plan.spi.LoadPlan.Disposition#ENTITY_LOADER - An entity load plan for
handling get/load handling. This form will typically have a single return (of type org.hibernate.loader.plan.spi.EntityReturn )
defined by getReturns(), possibly defining fetches.
org.hibernate.loader.plan.spi.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 org.hibernate.loader.plan.spi.CollectionReturn ) defined by getReturns(), possibly defining fetches
org.hibernate.loader.plan.spi.LoadPlan.Disposition#MIXED - A query load plan which can contain
multiple returns of mixed type (though all implementing org.hibernate.loader.plan.spi.Return ). Again, may possibly define fetches.
todo : would also like to see "call back" style access for handling "subsequent actions" such as...
| Modifier and Type | Class and Description |
|---|---|
| public static enum | LoadPlan.Disposition
Enumerated possibilities for describing the disposition of this LoadPlan. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: Whether or not toDoes this load plan indicate that lazy attributes are to be force fetched? |
| public LoadPlan. | Returns: The LoadPlan's dispositionWhat is the disposition of this LoadPlan, in terms of its returns. |
| public QuerySpaces | Returns: The QuerySpacesGets the |
| public List | |
| public boolean |
| areLazyAttributesForceFetched | back to summary |
|---|---|
| public boolean areLazyAttributesForceFetched() 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. What is the disposition of this LoadPlan, in terms of its returns.
| |
| getQuerySpaces | back to summary |
|---|---|
| public QuerySpaces getQuerySpaces() Gets the When generating SQL, the query spaces provide data for the "from clause" including joins.
| |
| getReturns | back to summary |
|---|---|
| public List 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() Convenient form of checking
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LoadPlan. | COLLECTION_INITIALIZER
This is a "collection initializer" load plan, which describes a plan for loading one or more entity instances of the same collection type. |
| public static final LoadPlan. | ENTITY_LOADER
This is an "entity loader" load plan, which describes a plan for loading one or more entity instances of the same entity type. |
| public static final LoadPlan. | MIXED
We have a mixed load plan, which will have one or more returns of |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LoadPlan. | |
| public static LoadPlan. |
| COLLECTION_INITIALIZER | back to summary |
|---|---|
| public static final LoadPlan. This is a "collection initializer" load plan, which describes a plan for loading one or more entity instances of
the same collection type. There is a single return, which will be of type | |
| ENTITY_LOADER | back to summary |
|---|---|
| public static final LoadPlan. This is an "entity loader" load plan, which describes a plan for loading one or more entity instances of
the same entity type. There is a single return, which will be of type | |
| MIXED | back to summary |
|---|---|
| public static final LoadPlan. We have a mixed load plan, which will have one or more returns of | |
| Disposition | back to summary |
|---|---|
| private Disposition() | |
| valueOf | back to summary |
|---|---|
| public static LoadPlan. | |
| values | back to summary |
|---|---|
| public static LoadPlan. | |