public abstract class FetchReturn extends NonScalarReturn { private final NonScalarReturn owner; private final String ownerProperty; /** * Creates a return descriptor for an association fetch. * * @param owner The return descriptor for the owner of the fetch * @param ownerProperty The name of the property represernting the association being fetched * @param alias The alias for the fetch * @param lockMode The lock mode to apply to the fetched association. */ public FetchReturn( NonScalarReturn owner, String ownerProperty, String alias, LockMode lockMode) { super( alias, lockMode ); this.owner = owner; this.ownerProperty = ownerProperty; } /** * Retrieves the return descriptor for the owner of this fetch. * * @return The owner */ public NonScalarReturn getOwner() { return owner; } /** * The name of the property on the owner which represents this association. * * @return The property name. */ public String getOwnerProperty() { return ownerProperty;
public class RootReturn extends NonScalarReturn { private final String entityName; private final EntityAliases entityAliases; public RootReturn( String alias, String entityName, EntityAliases entityAliases, LockMode lockMode) { super( alias, lockMode ); this.entityName = entityName; this.entityAliases = entityAliases; } public String getEntityName() { return entityName; } public EntityAliases getEntityAliases() { return entityAliases;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/custom/FetchReturn.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/loader/custom/RootReturn.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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;
38
	
21
	
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