Review Board 1.7.22


Sqoop2: Add cloning ability to model classes

Review Request #10886 - Created May 1, 2013 and updated

Vasanth kumar RJ
SQOOP-995
Reviewers
Sqoop
sqoop-sqoop2
Cloning Model classes by introduce clone method in model classes.
Updated related test classes.
common/src/main/java/org/apache/sqoop/model/MClonable.java
New File

    
   
1
/**

    
   
2
 * Licensed to the Apache Software Foundation (ASF) under one

    
   
3
 * or more contributor license agreements.  See the NOTICE file

    
   
4
 * distributed with this work for additional information

    
   
5
 * regarding copyright ownership.  The ASF licenses this file

    
   
6
 * to you under the Apache License, Version 2.0 (the

    
   
7
 * "License"); you may not use this file except in compliance

    
   
8
 * with the License.  You may obtain a copy of the License at

    
   
9
 *

    
   
10
 *     http://www.apache.org/licenses/LICENSE-2.0

    
   
11
 *

    
   
12
 * Unless required by applicable law or agreed to in writing, software

    
   
13
 * distributed under the License is distributed on an "AS IS" BASIS,

    
   
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    
   
15
 * See the License for the specific language governing permissions and

    
   
16
 * limitations under the License.

    
   
17
 */

    
   
18
package org.apache.sqoop.model;

    
   
19

   

    
   
20
public interface MClonable {

    
   
21
  /**

    
   
22
   * Clone object

    
   
23
   * Invoke with value true for cloning value

    
   
24
   * @param cloneWithValue

    
   
25
   * @return

    
   
26
   */

    
   
27
  public Object clone(boolean cloneWithValue);

    
   
28
}
common/src/main/java/org/apache/sqoop/model/MConnection.java
Revision c31eafd New Change
 
common/src/main/java/org/apache/sqoop/model/MConnectionForms.java
Revision d289a02 New Change
 
common/src/main/java/org/apache/sqoop/model/MConnector.java
Revision 9207c62 New Change
 
common/src/main/java/org/apache/sqoop/model/MEnumInput.java
Revision 12705a6 New Change
 
common/src/main/java/org/apache/sqoop/model/MForm.java
Revision 76998dd New Change
 
common/src/main/java/org/apache/sqoop/model/MFormList.java
Revision 3bf508d New Change
 
common/src/main/java/org/apache/sqoop/model/MFramework.java
Revision f5252ef New Change
 
common/src/main/java/org/apache/sqoop/model/MInput.java
Revision 7d6215f New Change
 
common/src/main/java/org/apache/sqoop/model/MIntegerInput.java
Revision d23ac31 New Change
 
common/src/main/java/org/apache/sqoop/model/MJob.java
Revision 5b50bfd New Change
 
common/src/main/java/org/apache/sqoop/model/MJobForms.java
Revision bce646f New Change
 
common/src/main/java/org/apache/sqoop/model/MMapInput.java
Revision 704c1f8 New Change
 
common/src/main/java/org/apache/sqoop/model/MStringInput.java
Revision a437a25 New Change
 
common/src/test/java/org/apache/sqoop/model/TestMConnection.java
Revision c3469ff New Change
 
common/src/test/java/org/apache/sqoop/model/TestMConnector.java
Revision 716b124 New Change
 
common/src/test/java/org/apache/sqoop/model/TestMJob.java
Revision dbc791e New Change
 
  1. common/src/main/java/org/apache/sqoop/model/MClonable.java: Loading...
  2. common/src/main/java/org/apache/sqoop/model/MConnection.java: Loading...
  3. common/src/main/java/org/apache/sqoop/model/MConnectionForms.java: Loading...
  4. common/src/main/java/org/apache/sqoop/model/MConnector.java: Loading...
  5. common/src/main/java/org/apache/sqoop/model/MEnumInput.java: Loading...
  6. common/src/main/java/org/apache/sqoop/model/MForm.java: Loading...
  7. common/src/main/java/org/apache/sqoop/model/MFormList.java: Loading...
  8. common/src/main/java/org/apache/sqoop/model/MFramework.java: Loading...
  9. common/src/main/java/org/apache/sqoop/model/MInput.java: Loading...
  10. common/src/main/java/org/apache/sqoop/model/MIntegerInput.java: Loading...
  11. common/src/main/java/org/apache/sqoop/model/MJob.java: Loading...
  12. common/src/main/java/org/apache/sqoop/model/MJobForms.java: Loading...
  13. common/src/main/java/org/apache/sqoop/model/MMapInput.java: Loading...
  14. common/src/main/java/org/apache/sqoop/model/MStringInput.java: Loading...
  15. common/src/test/java/org/apache/sqoop/model/TestMConnection.java: Loading...
  16. common/src/test/java/org/apache/sqoop/model/TestMConnector.java: Loading...
  17. common/src/test/java/org/apache/sqoop/model/TestMJob.java: Loading...