Example #1
0
  /**
   * @return cached object
   * @throws DataException
   */
  private IResultObject loadObject() throws DataException {
    if (rsMeta == null) {
      getResultClass();
    }
    if (loadUtil == null) {
      loadUtil = CacheUtilFactory.createLoadUtil(getCacheObject(), this.session);
    }

    IResultObject cacheObject = loadUtil == null ? null : loadUtil.loadObject();

    if (cacheObject == null) {
      return cacheObject;
    }

    if (addedTempComputedColumn != null && addedTempComputedColumn.size() > 0) {
      ResultObject resultObject = new ResultObject(getResultClass(), getAllObjects(cacheObject));

      return resultObject;
    } else {
      return cacheObject;
    }
  }
Example #2
0
  /**
   * @return IResultClass
   * @throws DataException
   */
  private IResultClass loadResultClass() throws DataException {
    if (loadUtil == null)
      loadUtil = CacheUtilFactory.createLoadUtil(getCacheObject(), this.session);

    return loadUtil.loadResultClass();
  }