load(id, options, doneCallback, failCallback) {
    if (options instanceof Function) {
      failCallback = doneCallback;
      doneCallback = options;
      options = {};
    }

    return this._db.load(this._managedType.typeConstructor, id, options).then(doneCallback, failCallback);
  }
/**
   * Loads the instance for the given id, or null if the id does not exists.
   * @param {string} id The id to query
   * @param {Object} [options] The load options
   * @param {number|boolean} [options.depth=0] The object depth which will be saved. Depth 0 saves only this object,
   * <code>true</code> saves the objects by reachability.
   * @param {boolean} [options.refresh=false] Indicates whether the object should be revalidated (cache bypass).
   * @param {boolean} [options.local=false] Indicates whether the local copy (from the entity manager)
   * of an object should be returned if it exists. This value might be stale.
   * @param {binding.EntityFactory~doneCallback=} doneCallback Called when the operation succeed.
   * @param {binding.EntityFactory~failCallback=} failCallback Called when the operation failed.
   * @return {Promise<T>} A Promise that will be fulfilled when the asynchronous operation completes.
   */
Loads the instance for the given id, or null if the id does not exists.
@param {string} id The id to query
@param {Object} [options] The load options
@param {number|boolean} [options.depth=0] The object depth which will be saved. Depth 0 saves only this object,
true saves the objects by reachability.
@param {boolean} [options.refresh=false] Indicates whether the object should be revalidated (cache bypass).
@param {boolean} [options.local=false] Indicates whether the local copy (from the entity manager)
of an object should be returned if it exists. This value might be stale.
@param {binding.EntityFactory~doneCallback=} doneCallback Called when the operation succeed.
@param {binding.EntityFactory~failCallback=} failCallback Called when the operation failed.
@return {Promise} A Promise that will be fulfilled when the asynchronous operation completes.
Loads the instance for the given id or null if the id does not exists . @param { string } id The id to query @param { Object } [ options ] The load options @param { number|boolean } [ options . depth = 0 ] The object depth which will be saved . Depth 0 saves only this object true saves the objects by reachability . @param { boolean } [ options . refresh = false ] Indicates whether the object should be revalidated ( cache bypass ) . @param { boolean } [ options . local = false ] Indicates whether the local copy ( from the entity manager ) of an object should be returned if it exists . This value might be stale . @param { binding . EntityFactory~doneCallback = } doneCallback Called when the operation succeed . @param { binding . EntityFactory~failCallback = } failCallback Called when the operation failed . @return { Promise } A Promise that will be fulfilled when the asynchronous operation completes .
load(id, options, doneCallback, failCallback) {
    if (options instanceof Function) {
      failCallback = doneCallback;
      doneCallback = options;
      options = {};
    }
    return this._db.load(this._managedType.typeConstructor, id, options).then(doneCallback, failCallback);
  }
load ( id , options , doneCallback , failCallback ) { if ( options instanceof Function ) { failCallback = doneCallback ; doneCallback = options ; options = { } ; } return this . _db . load ( this . _managedType . typeConstructor , id , options ) . then ( doneCallback , failCallback ) ; }
Loads the instance for the given id, or null if the id does not exists.
Loads the instance for the given id or null if the id does not exists .