capint
7/31/2015 - 3:01 PM

CDO >> View >> API

CDO >> View >> API

//*** This code from AbstractCDOView get root resource from the repository
public synchronized CDOResourceImpl getRootResource()
  {
    checkActive();
    if (rootResource == null)
    {
      CDOID rootResourceID = getSession().getRepositoryInfo().getRootResourceID();
      if (rootResourceID == null || rootResourceID.isNull())
      {
        throw new IllegalStateException("RootResourceID is null; is the repository not yet initialized?");
      }

      getObject(rootResourceID);
      CheckUtil.checkState(rootResource, "rootResource");
    }

    return rootResource;
  }