Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 6 | 2 | 0.982 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 422 | Closure/closure/goog/gears/database.js |
2 | 5 | 437 | Closure/closure/goog/gears/database.js |
3 | 5 | 454 | Closure/closure/goog/gears/database.js |
4 | 5 | 471 | Closure/closure/goog/gears/database.js |
5 | 5 | 487 | Closure/closure/goog/gears/database.js |
6 | 5 | 502 | 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)); } ; |
| ||||
/** * 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)); } ; |
| ||||
/** * 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)); } ; |
| ||||
/** * 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)); } ; |
| ||||
/** * 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)); } ; |
| ||||
/** * 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)); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#571ce1a0]] | queryArray |
1 | 2 | [[#571ce1a0]] | queryObject |
1 | 3 | [[#571ce1a0]] | queryValue |
1 | 4 | [[#571ce1a0]] | queryValueArray |
1 | 5 | [[#571ce1a0]] | queryObjectArray |
1 | 6 | [[#571ce1a0]] | queryArrays |
2 | 1 | [[#571ce120]] | resultSetToArray |
2 | 2 | [[#571ce120]] | resultSetToObject |
2 | 3 | [[#571ce120]] | resultSetToValue |
2 | 4 | [[#571ce120]] | resultSetToValueArray |
2 | 5 | [[#571ce120]] | resultSetToObjectArray |
2 | 6 | [[#571ce120]] | resultSetToArrays |