lib/connection/statement.js
function FileStatementPreExec(
    statementOptions, context, services, connectionConfig)
{
  // call super
  BaseStatement.apply(this, arguments);

  // add the result request headers to the context
  context.resultRequestHeaders = buildResultRequestHeadersFile();

  /**
   * Called when the statement request is successful.
   *
   * @param {Object} body
   */
  context.onStatementRequestSucc = function(body)
  {
    context.fileMetadata = body;
  };

  /**
   * Returns the file metadata generated by the statement.
   *
   * @returns {Object}
   */
  this.getFileMetadata = function()
  {
    return context.fileMetadata;
  };

  // send a request to execute the file statement
  sendRequestPreExec(context, context.onStatementRequestComp);
}
function FileStatementPreExec(
    statementOptions, context, services, connectionConfig)
{
  // call super
  BaseStatement.apply(this, arguments);

  // add the result request headers to the context
  context.resultRequestHeaders = buildResultRequestHeadersFile();

  /**
   * Called when the statement request is successful.
   *
   * @param {Object} body
   */
  context.onStatementRequestSucc = function(body)
  {
    context.fileMetadata = body;
  };

  /**
   * Returns the file metadata generated by the statement.
   *
   * @returns {Object}
   */
  this.getFileMetadata = function()
  {
    return context.fileMetadata;
  };

  // send a request to execute the file statement
  sendRequestPreExec(context, context.onStatementRequestComp);
}
function FileStatementPreExec ( statementOptions , context , services , connectionConfig ) { // call super BaseStatement . apply ( this , arguments ) ; // add the result request headers to the context context . resultRequestHeaders = buildResultRequestHeadersFile ( ) ; /**
   * Called when the statement request is successful.
   *
   * @param {Object} body
   */ context . onStatementRequestSucc = function ( body ) { context . fileMetadata = body ; } ; /**
   * Returns the file metadata generated by the statement.
   *
   * @returns {Object}
   */ this . getFileMetadata = function ( ) { return context . fileMetadata ; } ; // send a request to execute the file statement sendRequestPreExec ( context , context . onStatementRequestComp ) ; }
Creates a new FileStatementPreExec instance.

@param {Object} statementOptions
@param {Object} context
@param {Object} services
@param {Object} connectionConfig
@constructor
Creates a new FileStatementPreExec instance .