1 | public class NativeSQLQueryCollectionReturn extends NativeSQLQueryNonScalarReturn {↵ | | 1 | public class NativeSQLQueryJoinReturn extends NativeSQLQueryNonScalarReturn {↵
|
2 | private String ownerEntityName;↵ | | 2 | private String ownerAlias;↵
|
3 | private String ownerProperty;↵ | | 3 | private String ownerProperty;↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Construct a native-sql return representing a collection initializer↵ | | 5 | * Construct a return descriptor representing some form of fetch.↵
|
6 | *↵ | | 6 | *↵
|
7 | * @param alias The result alias↵ | | 7 | * @param alias The result alias↵
|
8 | * @param ownerEntityName The entity-name of the entity owning the collection↵ | | 8 | * @param owner↵
|
9 | * to be initialized.↵ | | 9 | Alias The owner's result alias↵
|
10 | * @param ownerProperty The property name (on the owner) which represents↵ | | 10 | * @param ownerProperty The owner's property ↵
|
11 | * the collection to be initialized.↵ | | 11 | representing the thing to be fetched↵
|
12 | * @param propertyResults Any user-supplied column->property mappings↵ | | 12 | * @param propertyResults Any user-supplied column->property mappings↵
|
13 | * @param lockMode The lock mode to apply to the collection.↵ | | 13 | * @param lockMode The lock mode to apply↵
|
14 | */↵ | | 14 | */↵
|
15 | public NativeSQLQueryCollectionReturn(↵ | | 15 | public NativeSQLQueryJoinReturn(↵
|
16 | String alias,↵ | | 16 | String alias,↵
|
17 | String ownerEntityName,↵ | | 17 | String ownerAlias,↵
|
18 | String ownerProperty,↵ | | 18 | String ownerProperty,↵
|
19 | Map propertyResults,↵ | | 19 | Map propertyResults,↵
|
20 | LockMode lockMode) {↵ | | 20 | LockMode lockMode) {↵
|
21 | super( alias, propertyResults, lockMode );↵ | | 21 | super( alias, propertyResults, lockMode );↵
|
22 | this.ownerEntityName = ownerEntityName;↵ | | 22 | this.ownerAlias = ownerAlias;↵
|
23 | this.ownerProperty = ownerProperty;↵ | | 23 | this.ownerProperty = ownerProperty;↵
|
24 | }↵ | | 24 | }↵
|
|
25 | /**↵ | | 25 | /**↵
|
26 | * Returns the class owning the collection.↵ | | 26 | * Retrieve the alias of the owner of this fetched association.↵
|
27 | *↵ | | 27 | *↵
|
28 | * @return The class owning the collection.↵ | | 28 | * @return The owner's alias.↵
|
29 | */↵ | | 29 | */↵
|
30 | public String getOwnerEntityName() {↵ | | 30 | public String getOwnerAlias() {↵
|
31 | return ownerEntityName;↵ | | 31 | return ownerAlias;↵
|
32 | }↵ | | 32 | }↵
|
|
33 | /**↵ | | 33 | /**↵
|
34 | * Returns the name of the property representing the collection from the {@link #getOwnerEntityName}.↵ | | 34 | * Ret↵
|
35 | *↵ | | |
|
36 | * @return The name of the property representing the collection on the owner class↵ | | 35 | rieve the property name (relative to the owner) which maps to↵
|
| | | 36 | * the association to be fetched.↵
|
| | | 37 | *↵
|
37 | .↵ | | 38 | * @return The property name.↵
|
38 | */↵ | | 39 | */↵
|
39 | public String getOwnerProperty() {↵ | | 40 | public String getOwnerProperty() {↵
|
40 | return ownerProperty | | 41 | return ownerProperty
|