CloneSet168


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5620.982ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15422
Closure/closure/goog/gears/database.js
25437
Closure/closure/goog/gears/database.js
35454
Closure/closure/goog/gears/database.js
45471
Closure/closure/goog/gears/database.js
55487
Closure/closure/goog/gears/database.js
65502
Closure/closure/goog/gears/database.js
Clone Instance
1
Line Count
5
Source Line
422
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and builds a two dimensional array
 * containing the result.
 *
 * @param {string} sql The SQL statement.
 * @param {...Object} var_args Query params. An array or multiple arguments.
 * @return {Array} An array of arrays containing the results of the query.
 */
goog.gears.Database.prototype.queryArrays=  function (sql, var_args){
  return /** @type {Array} */
                              (this.queryObject_(sql,
      goog.gears.Database.resultSetToArrays,
      arguments,
      1));
                                                                    } ;


Clone Instance
2
Line Count
5
Source Line
437
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and builds an array containing hashes
 *
 * @param {string} sql Ths SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {Array} An array of hashes containing the results of the query.
 */
goog.gears.Database.prototype.queryObjectArray=  function (sql, var_args){
  return /** @type {Array} */
                              (this.queryObject_(sql,
      goog.gears.Database.resultSetToObjectArray,
      arguments,
      1));
                                                                         } ;


Clone Instance
3
Line Count
5
Source Line
454
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and returns an array containing the values
 * in the first column. This is useful if the result set only contains one
 * column.
 *
 * @param {string} sql SQL statement.
 * @param {...Object} var_args query params. An array or multiple arguments.
 * @return {Array} The values in the first column.
 */
goog.gears.Database.prototype.queryValueArray=  function (sql, var_args){
  return /** @type {Array} */
                              (this.queryObject_(sql,
    goog.gears.Database.resultSetToValueArray,
    arguments,
    1));
                                                                        } ;


Clone Instance
4
Line Count
5
Source Line
471
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and returns the first value in the first
 * row.
 *
 * @param {string} sql SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {(number,string,null)} The first value in
 *     the first row.
 */
goog.gears.Database.prototype.queryValue=  function (sql, var_args){
  return /** @type {(number,string,null)} */
                                             (this.queryObject_(sql,
      goog.gears.Database.resultSetToValue,
      arguments,
      1));
                                                                   } ;


Clone Instance
5
Line Count
5
Source Line
487
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and returns the first row as a hash map
 * where the keys are the column names.
 *
 * @param {string} sql SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {Object} The first row as a hash map.
 */
goog.gears.Database.prototype.queryObject=  function (sql, var_args){
  return /** @type {Object} */
                               (this.queryObject_(sql,
      goog.gears.Database.resultSetToObject,
      arguments,
      1));
                                                                    } ;


Clone Instance
6
Line Count
5
Source Line
502
Source File
Closure/closure/goog/gears/database.js

/**
 * This calls query on the database and returns the first row as an array
 *
 * @param {string} sql SQL statement.
 * @param {...Object} var_args query params. An array or multiple arguments.
 * @return {Array} The first row as an array.
 */
goog.gears.Database.prototype.queryArray=  function (sql, var_args){
  return /** @type {Array} */
                              (this.queryObject_(sql,
      goog.gears.Database.resultSetToArray,
      arguments,
      1));
                                                                   } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * This calls query on the database and returns the first row as an array
 *
 * @param {string} sql SQL statement.
 * @param {...Object} var_args query params. An array or multiple arguments.
 * @return {Array} The first row as an array.
 */
/**
 * This calls query on the database and returns the first row as a hash map
 * where the keys are the column names.
 *
 * @param {string} sql SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {Object} The first row as a hash map.
 */
/**
 * This calls query on the database and returns the first value in the first
 * row.
 *
 * @param {string} sql SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {(number,string,null)} The first value in
 *     the first row.
 */
/**
 * This calls query on the database and returns an array containing the values
 * in the first column. This is useful if the result set only contains one
 * column.
 *
 * @param {string} sql SQL statement.
 * @param {...Object} var_args query params. An array or multiple arguments.
 * @return {Array} The values in the first column.
 */
/**
 * This calls query on the database and builds an array containing hashes
 *
 * @param {string} sql Ths SQL statement.
 * @param {...*} var_args query params. An array or multiple arguments.
 * @return {Array} An array of hashes containing the results of the query.
 */
/**
 * This calls query on the database and builds a two dimensional array
 * containing the result.
 *
 * @param {string} sql The SQL statement.
 * @param {...Object} var_args Query params. An array or multiple arguments.
 * @return {Array} An array of arrays containing the results of the query.
 */
goog.gears.Database.prototype. [[#variable571ce1a0]]= function (sql,var_args)
                                                      { return /** @type {Array} */ /** @type {Object} */ /** @type {(number,string,null)} */
                                                        (this.queryObject_(sql,goog.gears.Database. [[#variable571ce120]],arguments,1));
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#571ce1a0]]
queryArray 
12[[#571ce1a0]]
queryObject 
13[[#571ce1a0]]
queryValue 
14[[#571ce1a0]]
queryValueArray 
15[[#571ce1a0]]
queryObjectArray 
16[[#571ce1a0]]
queryArrays 
21[[#571ce120]]
resultSetToArray 
22[[#571ce120]]
resultSetToObject 
23[[#571ce120]]
resultSetToValue 
24[[#571ce120]]
resultSetToValueArray 
25[[#571ce120]]
resultSetToObjectArray 
26[[#571ce120]]
resultSetToArrays