createEntityManager(useSharedTokenStorage) {
    var em = new EntityManager(this);

    if (this.isReady) {
      em.connected(this._connector, this._connectData, useSharedTokenStorage? this.tokenStorage: new util.TokenStorage(this._connector.origin));
    } else {
      em.withLock(() => {
        return this.ready().then(() => {
          em.connected(this._connector, this._connectData, useSharedTokenStorage? this.tokenStorage: new util.TokenStorage(this._connector.origin));
        });
      }, true);
    }

    return em;
  }
/**
   * Create a new application-managed EntityManager.
   *
   * @param {boolean=} useSharedTokenStorage The token storage to persist the authorization token, or
   * <code>true</code> To use the shared token storage of the emf.
   * <code>false</code> To use a instance based storage.
   *
   * @returns {EntityManager} a new entityManager
   */
Create a new application-managed EntityManager.
@param {boolean=} useSharedTokenStorage The token storage to persist the authorization token, or
true To use the shared token storage of the emf.
false To use a instance based storage.

@returns {EntityManager} a new entityManager
Create a new application - managed EntityManager . @param { boolean = } useSharedTokenStorage The token storage to persist the authorization token or true To use the shared token storage of the emf . false To use a instance based storage . @returns { EntityManager } a new entityManager
createEntityManager(useSharedTokenStorage) {
    var em = new EntityManager(this);
    if (this.isReady) {
      em.connected(this._connector, this._connectData, useSharedTokenStorage? this.tokenStorage: new util.TokenStorage(this._connector.origin));
    } else {
      em.withLock(() => {
        return this.ready().then(() => {
          em.connected(this._connector, this._connectData, useSharedTokenStorage? this.tokenStorage: new util.TokenStorage(this._connector.origin));
        });
      }, true);
    }
    return em;
  }
createEntityManager ( useSharedTokenStorage ) { var em = new EntityManager ( this ) ; if ( this . isReady ) { em . connected ( this . _connector , this . _connectData , useSharedTokenStorage ? this . tokenStorage : new util . TokenStorage ( this . _connector . origin ) ) ; } else { em . withLock ( ( ) => { return this . ready ( ) . then ( ( ) => { em . connected ( this . _connector , this . _connectData , useSharedTokenStorage ? this . tokenStorage : new util . TokenStorage ( this . _connector . origin ) ) ; } ) ; } , true ) ; } return em ; }
Create a new application-managed EntityManager.
Create a new application - managed EntityManager .