public class NativeSQLQueryCollectionReturn extends NativeSQLQueryNonScalarReturn { private String ownerEntityName; private String ownerProperty; /** * Construct a native-sql return representing a collection initializer * * @param alias The result alias * @param ownerEntityName The entity-name of the entity owning the collection * to be initialized. * @param ownerProperty The property name (on the owner) which represents * the collection to be initialized. * @param propertyResults Any user-supplied column->property mappings * @param lockMode The lock mode to apply to the collection. */ public NativeSQLQueryCollectionReturn( String alias, String ownerEntityName, String ownerProperty, Map propertyResults, LockMode lockMode) { super( alias, propertyResults, lockMode ); this.ownerEntityName = ownerEntityName; this.ownerProperty = ownerProperty; } /** * Returns the class owning the collection. * * @return The class owning the collection. */ public String getOwnerEntityName() { return ownerEntityName; } /** * Returns the name of the property representing the collection from the {@link #getOwnerEntityName}. * * @return The name of the property representing the collection on the owner class. */ public String getOwnerProperty() { return ownerProperty
public class NativeSQLQueryJoinReturn extends NativeSQLQueryNonScalarReturn { private String ownerAlias; private String ownerProperty; /** * Construct a return descriptor representing some form of fetch. * * @param alias The result alias * @param ownerAlias The owner's result alias * @param ownerProperty The owner's property representing the thing to be fetched * @param propertyResults Any user-supplied column->property mappings * @param lockMode The lock mode to apply */ public NativeSQLQueryJoinReturn( String alias, String ownerAlias, String ownerProperty, Map propertyResults, LockMode lockMode) { super( alias, propertyResults, lockMode ); this.ownerAlias = ownerAlias; this.ownerProperty = ownerProperty; } /** * Retrieve the alias of the owner of this fetched association. * * @return The owner's alias. */ public String getOwnerAlias() { return ownerAlias; } /** * Retrieve the property name (relative to the owner) which maps to * the association to be fetched. * * @return The property name. */ public String getOwnerProperty() { return ownerProperty
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryCollectionReturn.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/sql/NativeSQLQueryJoinReturn.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0