Remove underscore from _buildReplaceFields

*Remove underscore from _buildReplaceFields because it is a protected method subject to override by subclasses.
This commit is contained in:
Amir Jafarian 2016-01-14 12:46:14 -05:00
parent 48931922c3
commit b16f9e0169
1 changed files with 2 additions and 2 deletions

View File

@ -952,7 +952,7 @@ SQLConnector.prototype.buildFields = function(model, data, excludeIds) {
* @param {Boolean} excludeIds Exclude id properties or not, default to false * @param {Boolean} excludeIds Exclude id properties or not, default to false
* @returns {{names: Array, values: Array, properties: Array}} * @returns {{names: Array, values: Array, properties: Array}}
*/ */
SQLConnector.prototype._buildReplaceFields = function(model, data, excludeIds) { SQLConnector.prototype.buildReplaceFields = function(model, data, excludeIds) {
var props = this.getModelDefinition(model).properties; var props = this.getModelDefinition(model).properties;
var keys = Object.keys(props); var keys = Object.keys(props);
return this._buildFieldsForKeys(model, data, keys, excludeIds); return this._buildFieldsForKeys(model, data, keys, excludeIds);
@ -1025,7 +1025,7 @@ SQLConnector.prototype.buildFieldsForReplace = function(model, data, excludeIds)
if (excludeIds === undefined) { if (excludeIds === undefined) {
excludeIds = true; excludeIds = true;
} }
var fields = this._buildReplaceFields(model, data, excludeIds); var fields = this.buildReplaceFields(model, data, excludeIds);
return this._constructUpdateParameterizedSQL(fields); return this._constructUpdateParameterizedSQL(fields);
}; };