1 | public abstract class FetchReturn extends NonScalarReturn {↵ | | 1 | public class RootReturn extends NonScalarReturn {↵
|
2 | private final NonScalarReturn owner;↵ | | 2 | private final ↵
|
3 | private final String ownerProperty;↵ | | |
|
|
4 | /**↵ | | |
|
5 | * Creates a return descriptor for an association fetch.↵ | | |
|
6 | *↵ | | |
|
7 | * @param owner The return descriptor for the owner of the fetch↵ | | |
|
8 | * @param ownerProperty The name of the property represernting the association being fetched↵ | | |
|
9 | * @param alias The alias for the fetch↵ | | |
|
10 | * @param lockMode The lock mode to apply to the fetched association.↵ | | |
|
11 | */↵ | | 3 | String entityName;↵
|
| | | 4 | private final EntityAliases entityAliases;↵
|
|
12 | public FetchReturn(↵ | | 5 | public RootReturn(↵
|
13 | NonScalarReturn owner,↵ | | 6 | ↵
|
14 | String ownerProperty,↵ | | |
|
15 | String a↵ | | 7 | String alias,↵
|
| | | 8 | String entityName,↵
|
16 | lias,↵ | | 9 | EntityAliases entityAliases,↵
|
17 | LockMode lockMode) {↵ | | 10 | LockMode lockMode) {↵
|
18 | super( alias, lockMode );↵ | | 11 | super( alias, lockMode );↵
|
19 | this.owner = owner;↵ | | 12 | this.↵
|
20 | this.ownerProperty = ownerProperty;↵ | | |
|
21 | }↵ | | |
|
|
22 | /**↵ | | |
|
23 | * Retrieves the return descriptor for the owner of this fetch.↵ | | |
|
24 | *↵ | | |
|
25 | * @return The owner↵ | | |
|
26 | */↵ | | |
|
27 | public NonScalarReturn getOwner() {↵ | | |
|
28 | return owner;↵ | | |
|
29 | }↵ | | |
|
|
30 | /**↵ | | |
|
31 | * The name of the property on the owner which represents this association.↵ | | |
|
32 | *↵ | | |
|
33 | * @return The property name.↵ | | |
|
34 | */↵ | | |
|
35 | public String getOwnerProperty↵ | | 13 | entityName = entityName;↵
|
| | | 14 | this.entityAliases = entityAliases;↵
|
| | | 15 | }↵
|
|
| | | 16 | public String getEntityName() {↵
|
| | | 17 | return entityName;↵
|
| | | 18 | }↵
|
|
36 | () {↵ | | 19 | public EntityAliases getEntityAliases() {↵
|
37 | return ownerProperty | | 20 | return entityAliases
|